mxe/src/libgcrypt.mk

34 lines
1.2 KiB
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 :=
2013-04-18 21:09:07 +01:00
$(PKG)_CHECKSUM := c9998383532ba3e8bcaf690f2f0d65e814b48d2f
$(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/' | \
2008-11-08 18:49:37 +00:00
$(SED) -n 's,.*libgcrypt-\([0-9][^>]*\)\.tar.*,\1,p' | \
$(SORT) -V | \
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=
ln -sf '$(PREFIX)/$(TARGET)/bin/libgcrypt-config' '$(PREFIX)/bin/$(TARGET)-libgcrypt-config'
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libgcrypt.exe' \
`$(TARGET)-libgcrypt-config --cflags --libs`
2008-11-08 18:49:37 +00:00
endef