Mercurial > mxe-octave
annotate src/nettle.mk @ 3416:8ed872f9dbc7
nettle.mk: Avoid install errors in subdirs.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 12 Jan 2014 17:11:15 -0500 |
parents | cf6f40cededb |
children | 13be64f9f16d |
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 | 3 |
4 PKG := nettle | |
5 $(PKG)_IGNORE := | |
3261
a55be3b0022f
update to new version of nettle
John W. Eaton <jwe@octave.org>
parents:
3077
diff
changeset
|
6 $(PKG)_CHECKSUM := e17de3678b987841e88a724b7d2f6856d97ab139 |
2056 | 7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz | |
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 | 11 |
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 | 17 endef |
18 | |
3077
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
19 ifeq ($(MXE_SYSTEM),msvc) |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
20 define $(PKG)_BUILD |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
21 cd '$(1)' && ./configure \ |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
22 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
23 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
24 CCAS=gcc \ |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
25 --disable-shared \ |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
26 --prefix='$(HOST_PREFIX)' |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
27 |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
28 $(MAKE) -C '$(1)' -j '$(JOBS)' getopt.o getopt1.o |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
29 $(MAKE) -C '$(1)' -j '$(JOBS)' all-here |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
30 $(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
|
31 --install '$(INSTALL)' --libdir '$(1)' --bindir '$(1)' -lgmp |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
32 $(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
|
33 --install '$(INSTALL)' --libdir '$(1)' --bindir '$(1)' -lnettle -lgmp |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
34 $(MAKE) -C '$(1)' -j '$(JOBS)' |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
35 |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3261
diff
changeset
|
36 $(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
|
37 $(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
|
38 $(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
|
39 --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
|
40 $(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
|
41 --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
|
42 endef |
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
43 else |
2056 | 44 define $(PKG)_BUILD |
45 cd '$(1)' && ./configure \ | |
2997 | 46 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
47 $(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
|
48 $(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
|
49 --prefix='$(HOST_PREFIX)' |
3416
8ed872f9dbc7
nettle.mk: Avoid install errors in subdirs.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
50 $(MAKE) -C '$(1)' -j '$(JOBS)' SUBDIRS= |
8ed872f9dbc7
nettle.mk: Avoid install errors in subdirs.
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
51 $(MAKE) -C '$(1)' -j 1 SUBDIRS= install DESTDIR='$(3)' |
2056 | 52 endef |
3077
9c56d108c141
[MSVC] enable nettle compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
53 endif |