annotate src/gc.mk @ 3012:100e618349f7

Improve handling of prefix directories by defining HOST_PREFIX and BUILD_TOOLS_PREFIX variables in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Sun, 02 Jun 2013 10:31:04 -0400
parents 47558e958113
children bcc26ffe9a0f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 870
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
870
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := gc
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
2694
332ce0550276 update package gc
Mark Brand <mabrand@mabrand.nl>
parents: 2645
diff changeset
6 $(PKG)_CHECKSUM := b43573800e27361da78f05a2e98394521cfa04fc
2550
4133f788e558 update package gc
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-7.2
870
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_URL := http://www.hpl.hp.com/personal/Hans_Boehm/$(PKG)/$(PKG)_source/$($(PKG)_FILE)
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_DEPS := gcc
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2516
diff changeset
13 $(WGET) -q -O- 'http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/?C=M;O=D' | \
870
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 grep '<a href="gc-' | \
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 $(SED) -n 's,.*<a href="gc-\([0-9][^"]*\)\.tar.*,\1,p' | \
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 grep -v 'alpha' | \
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 head -1
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 endef
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 define $(PKG)_BUILD
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 cd '$(1)' && ./configure \
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 --host='$(TARGET)' \
2516
c71330d27be9 update package gc
Mark Brand <mabrand@mabrand.nl>
parents: 2365
diff changeset
23 --build="`config.guess`" \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
24 --prefix='$(HOST_PREFIX)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2694
diff changeset
25 $(ENABLE_SHARED_OR_STATIC) \
870
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --enable-threads=win32 \
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --enable-cplusplus
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 $(MAKE) -C '$(1)' -j '$(JOBS)'
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 $(MAKE) -C '$(1)' -j 1 install
f4fe982ce370 new package: gc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 endef