summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2011-10-28 23:34:41 (GMT)
committerMark Brand <mabrand@mabrand.nl>2011-10-28 23:34:41 (GMT)
commit35be2bbe289f58c5ddb6f660ed3caabe00d7f0f9 (patch)
treed9921f17c711c08a313ed26d58820cc5336f4f94 /src
parent159e9516485504efb958ec1e771815881fb7b88b (diff)
downloadmxe-35be2bbe289f58c5ddb6f660ed3caabe00d7f0f9.zip
mxe-35be2bbe289f58c5ddb6f660ed3caabe00d7f0f9.tar.gz
mxe-35be2bbe289f58c5ddb6f660ed3caabe00d7f0f9.tar.bz2
new package: nettle
Diffstat (limited to 'src')
-rw-r--r--src/nettle.mk28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/nettle.mk b/src/nettle.mk
new file mode 100644
index 0000000..c59284e
--- /dev/null
+++ b/src/nettle.mk
@@ -0,0 +1,28 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# nettle
+PKG := nettle
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 2.4
+$(PKG)_CHECKSUM := 1df0cd013e83f73b78a5521411a67e331de3dfa6
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.lysator.liu.se/~nisse/nettle/
+$(PKG)_URL := http://www.lysator.liu.se/~nisse/archive/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc gmp
+
+define $(PKG)_UPDATE
+ wget -q -O- 'http://www.nettle.org/download.html' | \
+ $(SED) -n 's,.*nettle-autoconf-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --enable-static \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install
+endef