[vlc-commits] contrib: add gmp
Rémi Denis-Courmont
git at videolan.org
Tue Jul 19 19:35:38 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul 19 20:16:10 2011 +0300| [bb5818787b332b7933a9d5c0e7509f0f90ab5a43] | committer: Rémi Denis-Courmont
contrib: add gmp
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bb5818787b332b7933a9d5c0e7509f0f90ab5a43
---
contrib/src/gmp/SHA512SUMS | 1 +
contrib/src/gmp/rules.mak | 18 ++++++++++++++++++
contrib/src/nettle/rules.mak | 2 ++
3 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/contrib/src/gmp/SHA512SUMS b/contrib/src/gmp/SHA512SUMS
new file mode 100644
index 0000000..7ea8a82
--- /dev/null
+++ b/contrib/src/gmp/SHA512SUMS
@@ -0,0 +1 @@
+b53cc482e73aa91ae4f83301d9ef83a98cd85cfe53347e102a059fa477edceebded466223b436bc250314eb6ec2e53ecc4fa1528341435f09e232f0c4e305bad gmp-5.0.2.tar.bz2
diff --git a/contrib/src/gmp/rules.mak b/contrib/src/gmp/rules.mak
new file mode 100644
index 0000000..f2067ec
--- /dev/null
+++ b/contrib/src/gmp/rules.mak
@@ -0,0 +1,18 @@
+# GNU Multiple Precision Arithmetic
+
+GMP_VERSION := 5.0.2
+GMP_URL := ftp://ftp.gmplib.org/pub/gmp-$(GMP_VERSION)/gmp-$(GMP_VERSION).tar.bz2
+
+$(TARBALLS)/gmp-$(GMP_VERSION).tar.bz2:
+ $(call download,$(GMP_URL))
+
+.sum-gmp: gmp-$(GMP_VERSION).tar.bz2
+
+gmp: gmp-$(GMP_VERSION).tar.bz2 .sum-gmp
+ $(UNPACK)
+ $(MOVE)
+
+.gmp: gmp
+ cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+ cd $< && $(MAKE) install
+ touch $@
diff --git a/contrib/src/nettle/rules.mak b/contrib/src/nettle/rules.mak
index b5db62a..d02ae14 100644
--- a/contrib/src/nettle/rules.mak
+++ b/contrib/src/nettle/rules.mak
@@ -14,6 +14,8 @@ nettle: nettle-$(NETTLE_VERSION).tar.gz .sum-nettle
$(UNPACK)
$(MOVE)
+DEPS_nettle = gmp $(DEPS_gmp)
+
.nettle: nettle
cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
cd $< && $(MAKE) install
More information about the vlc-commits
mailing list