annotate src/gmp.mk @ 2855:47558e958113

Allow static/shared libraries to be configured in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Thu, 15 Nov 2012 16:11:45 -0500
parents 4d0f3a9da57e
children 100e618349f7
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: 2243
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.
843
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := gmp
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
2510
8a41b8f8e79f update package gmp
Mark Brand <mabrand@mabrand.nl>
parents: 2365
diff changeset
6 $(PKG)_CHECKSUM := 12a662456033e21aed3e318aef4177f4000afe3b
843
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
1499
9e587ca588dc remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents: 1354
diff changeset
9 $(PKG)_URL := ftp://ftp.gmplib.org/pub/$(PKG)-$($(PKG)_VERSION)/$($(PKG)_FILE)
1289
5bf698b5f8fb add alternative download URL for package gmp
Volker Grabsch <vog@notjusthosting.com>
parents: 843
diff changeset
10 $(PKG)_URL_2 := ftp://ftp.cs.tu-berlin.de/pub/gnu/$(PKG)/$($(PKG)_FILE)
843
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 $(PKG)_DEPS := gcc
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2510
diff changeset
14 $(WGET) -q -O- 'http://www.gmplib.org/' | \
843
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 grep '<a href="' | \
1354
5646072a0081 improved version recognition of packages: boost gmp plotutils vmime
Volker Grabsch <vog@notjusthosting.com>
parents: 1289
diff changeset
16 $(SED) -n 's,.*gmp-\([0-9][^>]*\)\.tar.*,\1,p' | \
843
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 grep -v '^4\.' | \
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 head -1
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 endef
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 define $(PKG)_BUILD
1657
19fefe2bffcd package gmp: wine confuses the native build so set CC_FOR_BUILD
Tony Theodore <tonyt@logyst.com>
parents: 1499
diff changeset
22 cd '$(1)' && CC_FOR_BUILD=gcc ./configure \
843
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 --host='$(TARGET)' \
2510
8a41b8f8e79f update package gmp
Mark Brand <mabrand@mabrand.nl>
parents: 2365
diff changeset
24 --build="`config.guess`" \
843
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --prefix='$(PREFIX)/$(TARGET)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
26 $(ENABLE_SHARED_OR_STATIC) \
1851
ff2b56abe67e enable gmpxx in package gmp
Brad Pitcher <bradpitcher@gmail.com>
parents: 1810
diff changeset
27 --enable-cxx \
843
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --without-readline
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 $(MAKE) -C '$(1)' -j '$(JOBS)'
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 $(MAKE) -C '$(1)' -j 1 install
1c974975ef2c new package: gmp
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 endef