Mercurial > mxe-octave
annotate src/gmp.mk @ 3293:cf6f40cededb
Support file list generation in packages.
For the following modules:
- arpack
- blas
- build-autoconf
- build-automake
- build-cmake
- build-gperf
- build-libtool
- build-msvctools
- build-pkg-config
- build-texinfo
- bzip2
- curl
- dbus
- expat
- fftw
- fltk
- fontconfig
- freetype
- gettext
- glpk
- gmp
- gnuplot
- gnutls
- graphicsmagick
- hdf5
- jasper
- jpeg
- lapack
- lcms
- libgcrypt
- libgpg_error
- libiconv
- libidn
- libpng
- libssh2
- libxml2
- ncurses
- nettle
- openssl
- pcre
- pstoedit
- zlib
- qhull
- qrupdate
- qscintilla
- qt
- readline
- suitesparse
- texinfo
- tiff
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Sat, 09 Nov 2013 23:28:04 -0500 |
parents | b39e8dc859f7 |
children | 13be64f9f16d |
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 | 3 |
4 PKG := gmp | |
5 $(PKG)_IGNORE := | |
2510 | 6 $(PKG)_CHECKSUM := 12a662456033e21aed3e318aef4177f4000afe3b |
843 | 7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
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) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
11 $(PKG)_DEPS := |
843 | 12 |
3076
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
13 ifeq ($(MXE_SYSTEM),msvc) |
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
14 $(PKG)_CONFIGURE_OPTIONS := CC_FOR_BUILD='$(MXE_CC)' CCAS='gcc -c' ac_cv_func_memset='yes' |
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
15 COMMA := , |
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
16 else |
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
17 $(PKG)_CONFIGURE_OPTIONS := CC_FOR_BUILD=gcc |
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
18 endif |
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
19 |
843 | 20 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2510
diff
changeset
|
21 $(WGET) -q -O- 'http://www.gmplib.org/' | \ |
843 | 22 grep '<a href="' | \ |
1354
5646072a0081
improved version recognition of packages: boost gmp plotutils vmime
Volker Grabsch <vog@notjusthosting.com>
parents:
1289
diff
changeset
|
23 $(SED) -n 's,.*gmp-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
843 | 24 grep -v '^4\.' | \ |
25 head -1 | |
26 endef | |
27 | |
28 define $(PKG)_BUILD | |
3076
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
29 $(if $(filter msvc,$(MXE_SYSTEM)), \ |
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
30 $(SED) -i -e '/^#ifdef _MSC_VER/$(COMMA)/^#endif/ {/^ *#define __GMP_EXTERN_INLINE .*/d}' '$(1)/gmp-h.in') |
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
31 cd '$(1)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
32 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3076
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
33 $($(PKG)_CONFIGURE_OPTIONS) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
34 --prefix='$(HOST_PREFIX)' \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
35 $(ENABLE_SHARED_OR_STATIC) \ |
1851
ff2b56abe67e
enable gmpxx in package gmp
Brad Pitcher <bradpitcher@gmail.com>
parents:
1810
diff
changeset
|
36 --enable-cxx \ |
3076
b39e8dc859f7
[MSVC] enable gmplib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
37 --without-readline && $(CONFIGURE_POST_HOOK) |
843 | 38 $(MAKE) -C '$(1)' -j '$(JOBS)' |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3076
diff
changeset
|
39 $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)' |
843 | 40 endef |