annotate src/nettle.mk @ 3677:24585d4f70bb

nettle: update to 2.7.1 * src/nettle.mk: update to v2.7.1
author John Donoghue
date Tue, 05 Aug 2014 07:08:53 -0400
parents 13be64f9f16d
children 0a747a64a790
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 :=
3677
24585d4f70bb nettle: update to 2.7.1
John Donoghue
parents: 3480
diff changeset
6 $(PKG)_VERSION := 2.7.1
24585d4f70bb nettle: update to 2.7.1
John Donoghue
parents: 3480
diff changeset
7 $(PKG)_CHECKSUM := e7477df5f66e650c4c4738ec8e01c2efdb5d1211
2056
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
10 $(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
11 $(PKG)_DEPS := gmp
2056
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
12
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
13 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
14 $(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
15 $(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
16 grep -v 'pre' | \
2086
009e1aaa8949 packages libffi nettle: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents: 2056
diff changeset
17 tail -1
2056
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
18 endef
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
19
3077
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
20 ifeq ($(MXE_SYSTEM),msvc)
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
21 define $(PKG)_BUILD
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
22 cd '$(1)' && ./configure \
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
23 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
24 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
25 CCAS=gcc \
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
26 --disable-shared \
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
27 --prefix='$(HOST_PREFIX)'
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
28
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
29 $(MAKE) -C '$(1)' -j '$(JOBS)' getopt.o getopt1.o
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
30 $(MAKE) -C '$(1)' -j '$(JOBS)' all-here
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
31 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_F77)' '$(1)/libnettle.a' \
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
32 --install '$(INSTALL)' --libdir '$(1)' --bindir '$(1)' -lgmp
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
33 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_F77)' '$(1)/libhogweed.a' \
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
34 --install '$(INSTALL)' --libdir '$(1)' --bindir '$(1)' -lnettle -lgmp
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
35 $(MAKE) -C '$(1)' -j '$(JOBS)'
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
36
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3261
diff changeset
37 $(MAKE) -C '$(1)' -j 1 install-info install-headers install-pkgconfig DESTDIR='$(3)'
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3261
diff changeset
38 $(MAKE) -C '$(1)/tools' -j 1 install DESTDIR='$(3)'
3077
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
39 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_F77)' '$(1)/libnettle.a' \
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3261
diff changeset
40 --install '$(INSTALL)' --libdir '$(3)$(HOST_LIBDIR)' --bindir '$(3)$(HOST_BINDIR)' -lgmp
3077
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
41 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_F77)' '$(1)/libhogweed.a' \
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3261
diff changeset
42 --install '$(INSTALL)' --libdir '$(3)$(HOST_LIBDIR)' --bindir '$(3)$(HOST_BINDIR)' -lnettle -lgmp
3077
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
43 endef
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
44 else
2056
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
45 define $(PKG)_BUILD
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
46 cd '$(1)' && ./configure \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2919
diff changeset
47 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
48 $(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
49 $(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
50 --prefix='$(HOST_PREFIX)'
3416
8ed872f9dbc7 nettle.mk: Avoid install errors in subdirs.
John W. Eaton <jwe@octave.org>
parents: 3293
diff changeset
51 $(MAKE) -C '$(1)' -j '$(JOBS)' SUBDIRS=
8ed872f9dbc7 nettle.mk: Avoid install errors in subdirs.
John W. Eaton <jwe@octave.org>
parents: 3293
diff changeset
52 $(MAKE) -C '$(1)' -j 1 SUBDIRS= install DESTDIR='$(3)'
2056
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
53 endef
3077
9c56d108c141 [MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
54 endif