mxe/src/nettle.mk

27 lines
854 B
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2011-10-29 00:34:41 +01:00
PKG := nettle
$(PKG)_IGNORE :=
2016-01-29 10:46:44 +00:00
$(PKG)_VERSION := 3.2
$(PKG)_CHECKSUM := ea4283def236413edab5a4cf9cf32adf540c8df1b9b67641cfc2302fca849d97
2011-10-29 00:34:41 +01:00
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://www.lysator.liu.se/~nisse/archive/$($(PKG)_FILE)
$(PKG)_DEPS := gcc gmp
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.lysator.liu.se/~nisse/archive/' | \
$(SED) -n 's,.*nettle-\([0-9][^>]*\)\.tar.*,\1,p' | \
2012-03-24 13:07:17 +00:00
grep -v 'pre' | \
2013-05-21 12:34:49 +01:00
grep -v 'rc' | \
tail -1
2011-10-29 00:34:41 +01:00
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS)
$(MAKE) -C '$(1)' -j '$(JOBS)' $(if $(BUILD_STATIC),getopt.o getopt1.o,) SUBDIRS=
$(MAKE) -C '$(1)' -j '$(JOBS)' install SUBDIRS=
2011-10-29 00:34:41 +01:00
endef