changeset 2056:bec512c5f2c2

new package: nettle
author Mark Brand <mabrand@mabrand.nl>
date Sat, 29 Oct 2011 01:34:41 +0200
parents c26efa95224d
children 8ad4a821fc50
files src/nettle.mk
diffstat 1 files changed, 28 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/nettle.mk	Sat Oct 29 01:34:41 2011 +0200
@@ -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