Mercurial > mxe-octave
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 |
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 := | |
2655 | 6 $(PKG)_CHECKSUM := 1061754feb69dd01354525fa7eb6154b28ac887d |
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) | |
10 $(PKG)_DEPS := gcc gmp | |
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 | |
19 define $(PKG)_BUILD | |
20 cd '$(1)' && ./configure \ | |
2997 | 21 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
2056 | 22 --host='$(TARGET)' \ |
2655 | 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 | 25 --prefix='$(PREFIX)/$(TARGET)' |
2655 | 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 | 29 |
30 if [ -d $(PREFIX)/$(TARGET)/lib64 ]; then \ | |
31 $(INSTALL) -d $(MXE_LIBDIR)/pkgconfig; \ | |
32 mv $(PREFIX)/$(TARGET)/lib64/pkgconfig/* $(MXE_LIBDIR)/pkgconfig; \ | |
33 rmdir $(PREFIX)/$(TARGET)/lib64/pkgconfig; \ | |
34 mv $(PREFIX)/$(TARGET)/lib64/* $(MXE_LIBDIR); \ | |
35 fi | |
2056 | 36 endef |