annotate src/nettle.mk @ 2997:4f9b72cf7ee7

allow native builds too
author John W. Eaton <jwe@octave.org>
date Tue, 28 May 2013 17:31:59 -0400
parents 98d9839754f6
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: 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)
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
10 $(PKG)_DEPS := gcc gmp
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) \
2056
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
22 --host='$(TARGET)' \
2655
769024253d0e update package nettle
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
23 --build="`config.guess`" \
2910
ec254dafca46 restore original shared lib build rules for nettle package
John W. Eaton <jwe@octave.org>
parents: 2888
diff changeset
24 $(ENABLE_SHARED_OR_STATIC) \
2056
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
25 --prefix='$(PREFIX)/$(TARGET)'
2655
769024253d0e update package nettle
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
26 $(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
27 $(MAKE) -C '$(1)' -j '$(JOBS)'
98d9839754f6 separate build and install commands
John W. Eaton <jwe@octave.org>
parents: 2910
diff changeset
28 $(MAKE) -C '$(1)' -j 1 install
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2919
diff changeset
29
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2919
diff changeset
30 if [ -d $(PREFIX)/$(TARGET)/lib64 ]; then \
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2919
diff changeset
31 $(INSTALL) -d $(MXE_LIBDIR)/pkgconfig; \
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2919
diff changeset
32 mv $(PREFIX)/$(TARGET)/lib64/pkgconfig/* $(MXE_LIBDIR)/pkgconfig; \
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2919
diff changeset
33 rmdir $(PREFIX)/$(TARGET)/lib64/pkgconfig; \
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2919
diff changeset
34 mv $(PREFIX)/$(TARGET)/lib64/* $(MXE_LIBDIR); \
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2919
diff changeset
35 fi
2056
bec512c5f2c2 new package: nettle
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
36 endef