[vlc-commits] extras/tools: added openssl needed for native compilation on Darwin 9 / OS X 10.5
Felix Paul Kühne
git at videolan.org
Thu Jan 5 00:51:18 CET 2012
vlc/vlc-1.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Jan 4 18:25:47 2012 +0100| [725db369e900df10c96ede2411b96593316f0419] | committer: Jean-Baptiste Kempf
extras/tools: added openssl needed for native compilation on Darwin 9 / OS X 10.5
(cherry picked from commit 0921213abbe77ebe799fe8fac17f9a234bcd0fcf)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=725db369e900df10c96ede2411b96593316f0419
---
extras/tools/packages.mak | 3 +++
extras/tools/tools.mak | 18 ++++++++++++++++++
2 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/extras/tools/packages.mak b/extras/tools/packages.mak
index e3783dc..850a851 100644
--- a/extras/tools/packages.mak
+++ b/extras/tools/packages.mak
@@ -25,3 +25,6 @@ TAR_URL=$(GNU)/tar/tar-$(TAR_VERSION).tar.bz2
XZ_VERSION=5.0.3
XZ_URL=http://tukaani.org/xz/xz-$(XZ_VERSION).tar.bz2
+
+OPENSSL_VERSION=1.0.0e
+OPENSSL_URL=http://www.openssl.org/source/openssl-$(OPENSSL_VERSION).tar.gz
diff --git a/extras/tools/tools.mak b/extras/tools/tools.mak
index 0c85458..95ca38d 100644
--- a/extras/tools/tools.mak
+++ b/extras/tools/tools.mak
@@ -174,6 +174,24 @@ CLEAN_FILE += .pkg-config
CLEAN_PKG += pkgconfig
DISTCLEAN_PKG += pkg-config-$(PKGCFG_VERSION).tar.gz
+# openssl
+# we need to use -j1 here, since otherwise compilation fails (at least on Darwin)
+
+openssl-$(OPENSSL_VERSION).tar.gz:
+ $(call download,$(OPENSSL_URL))
+
+openssl: openssl-$(OPENSSL_VERSION).tar.gz
+ $(UNPACK)
+ $(MOVE)
+
+.openssl: openssl
+ (cd openssl; ./config --prefix=$(PREFIX) no-shared no-zlib && make -j1 && make test && make install)
+ touch $@
+
+CLEAN_FILE += .openssl
+CLEAN_PKG += openssl
+DISTCLEAN_PKG += openssl-$(OPENSSL_VERSION).tar.gz
+
#
#
#
More information about the vlc-commits
mailing list