mxe/src/libgcrypt.mk

28 lines
908 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.
2008-11-08 18:49:37 +00:00
PKG := libgcrypt
$(PKG)_IGNORE :=
$(PKG)_CHECKSUM := 3e776d44375dc1a710560b98ae8437d5da6e32cf
$(PKG)_SUBDIR := libgcrypt-$($(PKG)_VERSION)
$(PKG)_FILE := libgcrypt-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := ftp://ftp.gnupg.org/gcrypt/libgcrypt/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libgpg_error
2008-11-08 18:49:37 +00:00
define $(PKG)_UPDATE
wget -q -O- 'ftp://ftp.gnupg.org/gcrypt/libgcrypt/' | \
$(SED) -n 's,.*libgcrypt-\([0-9][^>]*\)\.tar.*,\1,p' | \
2011-11-26 13:22:08 +00:00
grep -v '^1\.4\.' | \
2008-11-08 18:49:37 +00:00
tail -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build="`config.guess`" \
2008-11-08 18:49:37 +00:00
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--with-gpg-error-prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef