[vlc-commits] Contribs: add gcrypt

Jean-Baptiste Kempf git at videolan.org
Mon Jul 4 23:39:13 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jul  4 23:24:39 2011 +0200| [0ddecf1dc8cf996ec0bb0e1ebccff792ddffa70b] | committer: Jean-Baptiste Kempf

Contribs: add gcrypt

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0ddecf1dc8cf996ec0bb0e1ebccff792ddffa70b
---

 contrib/src/gcrypt/SHA512SUMS          |    1 +
 contrib/src/gcrypt/gcrypt-nodocs.patch |   11 +++++++++++
 contrib/src/gcrypt/rules.mak           |   21 +++++++++++++++++++++
 3 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/contrib/src/gcrypt/SHA512SUMS b/contrib/src/gcrypt/SHA512SUMS
new file mode 100644
index 0000000..65f63a6
--- /dev/null
+++ b/contrib/src/gcrypt/SHA512SUMS
@@ -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
index 0000000..c6ca792
--- /dev/null
+++ b/contrib/src/gcrypt/gcrypt-nodocs.patch
@@ -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
index 0000000..fda5460
--- /dev/null
+++ b/contrib/src/gcrypt/rules.mak
@@ -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 $@



More information about the vlc-commits mailing list