contrib: gcrypt 1.6.0
[vlc/gmpfix.git] / contrib / src / gcrypt / rules.mak
blobae55695882237a438cb0a64fa91fd4a4bcd533ef
1 # GCRYPT
2 GCRYPT_VERSION := 1.6.0
3 GCRYPT_URL := ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-$(GCRYPT_VERSION).tar.bz2
5 PKGS += gcrypt
7 $(TARBALLS)/libgcrypt-$(GCRYPT_VERSION).tar.bz2:
8 $(call download,$(GCRYPT_URL))
10 .sum-gcrypt: libgcrypt-$(GCRYPT_VERSION).tar.bz2
12 libgcrypt: libgcrypt-$(GCRYPT_VERSION).tar.bz2 .sum-gcrypt
13 $(UNPACK)
14 $(MOVE)
16 DEPS_gcrypt = gpg-error
18 GCRYPT_CONF = \
19 --enable-ciphers=aes,des,rfc2268,arcfour \
20 --enable-digests=sha1,md5,rmd160,sha256,sha512 \
21 --enable-pubkey-ciphers=dsa,rsa,ecc
22 ifdef HAVE_WIN64
23 GCRYPT_CONF += --disable-asm
24 endif
25 ifdef HAVE_IOS
26 GCRYPT_EXTRA_CFLAGS = -fheinous-gnu-extensions
27 else
28 GCRYPT_EXTRA_CFLAGS =
29 endif
30 ifdef HAVE_MACOSX
31 GCRYPT_CONF += --disable-aesni-support
32 else
33 ifdef HAVE_BSD
34 GCRYPT_CONF += --disable-asm --disable-aesni-support
35 endif
36 endif
37 ifdef HAVE_ANDROID
38 ifeq ($(ANDROID_ABI), x86)
39 GCRYPT_CONF += ac_cv_sys_symbol_underscore=no
40 endif
41 endif
43 .gcrypt: libgcrypt
44 #$(RECONF)
45 cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) $(GCRYPT_EXTRA_CFLAGS)" ./configure $(HOSTCONF) $(GCRYPT_CONF)
46 cd $< && $(MAKE) install
47 touch $@