annotate src/nettle.mk @ 3048:5ef49fb3299d

treat gcc and binutils as build tools use a separate target for building the cmake toolchain file don't unpack gcc or binutils if we are using the system compiler
author John W. Eaton <jwe@octave.org>
date Fri, 14 Jun 2013 16:51:29 -0400
parents b6c7244a2f66
children 9c56d108c141
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: 2312
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.
2056
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
3
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
4 PKG := nettle
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
5 $(PKG)_IGNORE :=
2655
769024253d0e update package nettle
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
6 $(PKG)_CHECKSUM := 1061754feb69dd01354525fa7eb6154b28ac887d
2056
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
9 $(PKG)_URL := http://www.lysator.liu.se/~nisse/archive/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
10 $(PKG)_DEPS := gmp
2056
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
11
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
13 $(WGET) -q -O- 'http://www.lysator.liu.se/~nisse/archive/' | \
2086
009e1aaa8949 packages libffi nettle: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents: 2056
diff changeset
14 $(SED) -n 's,.*nettle-\([0-9][^>]*\)\.tar.*,\1,p' | \
2312
c33580e28818 package nettle: fix update macro
Tony Theodore <tonyt@logyst.com>
parents: 2086
diff changeset
15 grep -v 'pre' | \
2086
009e1aaa8949 packages libffi nettle: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents: 2056
diff changeset
16 tail -1
2056
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
17 endef
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
18
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
19 define $(PKG)_BUILD
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
20 cd '$(1)' && ./configure \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2919
diff changeset
21 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2910
ec254dafca46 restore original shared lib build rules for nettle package
John W. Eaton <jwe@octave.org>
parents: 2888
diff changeset
23 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
24 --prefix='$(HOST_PREFIX)'
2655
769024253d0e update package nettle
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
25 $(MAKE) -C '$(1)' -j '$(JOBS)' getopt.o getopt1.o
2919
98d9839754f6 separate build and install commands
John W. Eaton <jwe@octave.org>
parents: 2910
diff changeset
26 $(MAKE) -C '$(1)' -j '$(JOBS)'
98d9839754f6 separate build and install commands
John W. Eaton <jwe@octave.org>
parents: 2910
diff changeset
27 $(MAKE) -C '$(1)' -j 1 install
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2919
diff changeset
28
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
29 if [ -d $(HOST_PREFIX)/lib64 ]; then \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
30 $(INSTALL) -d $(HOST_LIBDIR)/pkgconfig; \
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
31 mv $(HOST_PREFIX)/lib64/pkgconfig/* $(HOST_LIBDIR)/pkgconfig; \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
32 rmdir $(HOST_PREFIX)/lib64/pkgconfig; \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
33 mv $(HOST_PREFIX)/lib64/* $(HOST_LIBDIR); \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2919
diff changeset
34 fi
2056
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
35 endef