]> git.sesse.net Git - vlc/commitdiff
Contribs: add gcrypt
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 4 Jul 2011 21:24:39 +0000 (23:24 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 4 Jul 2011 21:39:02 +0000 (23:39 +0200)
contrib/src/gcrypt/SHA512SUMS [new file with mode: 0644]
contrib/src/gcrypt/gcrypt-nodocs.patch [new file with mode: 0644]
contrib/src/gcrypt/rules.mak [new file with mode: 0644]

diff --git a/contrib/src/gcrypt/SHA512SUMS b/contrib/src/gcrypt/SHA512SUMS
new file mode 100644 (file)
index 0000000..65f63a6
--- /dev/null
@@ -0,0 +1 @@
+d219b23b36870a526d378a4ce784abc044bcb3a547a5e667b8185f2aceffab707918a6be6420d8473fc0c4d293968be5824b5dcf0cc5f0ef0866490f250b101c  libgcrypt-1.4.6.tar.bz2
diff --git a/contrib/src/gcrypt/gcrypt-nodocs.patch b/contrib/src/gcrypt/gcrypt-nodocs.patch
new file mode 100644 (file)
index 0000000..c6ca792
--- /dev/null
@@ -0,0 +1,11 @@
+--- libgcrypt/Makefile.am.orig 2008-08-19 17:20:08.000000000 +0200
++++ libgcrypt/Makefile.am      2008-10-21 09:57:33.000000000 +0200
+@@ -23,7 +23,7 @@
+   --enable-ciphers=arcfour:blowfish:cast5:des:aes:twofish:serpent:rfc2268:seed:camellia
+ DIST_SUBDIRS = m4 mpi cipher random src doc tests
+-SUBDIRS = mpi cipher random src doc tests
++SUBDIRS = mpi cipher random src
+ EXTRA_DIST = autogen.sh README.SVN
+ DISTCLEANFILES = 
diff --git a/contrib/src/gcrypt/rules.mak b/contrib/src/gcrypt/rules.mak
new file mode 100644 (file)
index 0000000..fda5460
--- /dev/null
@@ -0,0 +1,21 @@
+# GCRYPT
+GCRYPT_VERSION := 1.4.6
+GCRYPT_URL := ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-$(GCRYPT_VERSION).tar.bz2
+
+PKGS += gcrypt
+
+$(TARBALLS)/libgcrypt-$(GCRYPT_VERSION).tar.bz2:
+       $(call download,$(GCRYPT_URL))
+
+.sum-gcrypt: libgcrypt-$(GCRYPT_VERSION).tar.bz2
+
+libgcrypt: libgcrypt-$(GCRYPT_VERSION).tar.bz2 .sum-gcrypt
+       $(UNPACK)
+       $(APPLY) $(SRC)/gcrypt/gcrypt-nodocs.patch
+       $(MOVE)
+
+.gcrypt: libgcrypt .gpg-error
+       #$(RECONF)
+       cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --enable-ciphers=aes,des,rfc2268,arcfour --enable-digests=sha1,md5,rmd160 --enable-pubkey-ciphers=dsa
+       cd $< && $(MAKE) install
+       touch $@