[vlc-commits] contrib: added target for libffi since it is required to compile glib, which in turn is needed for Fluidsynth on Darwin (refs #10014)
Felix Paul Kühne
git at videolan.org
Mon Dec 9 18:35:11 CET 2013
vlc/vlc-2.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Nov 29 18:43:48 2013 +0100| [b3eed333233ffa39279adbaabd8950a20a596b30] | committer: Felix Paul Kühne
contrib: added target for libffi since it is required to compile glib, which in turn is needed for Fluidsynth on Darwin (refs #10014)
(cherry picked from commit e593e38e691434ab7cc23dd9da3843f7ca953771)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=b3eed333233ffa39279adbaabd8950a20a596b30
---
contrib/src/ffi/SHA512SUMS | 1 +
contrib/src/ffi/rules.mak | 25 +++++++++++++++++++++++++
2 files changed, 26 insertions(+)
diff --git a/contrib/src/ffi/SHA512SUMS b/contrib/src/ffi/SHA512SUMS
new file mode 100644
index 0000000..107823e
--- /dev/null
+++ b/contrib/src/ffi/SHA512SUMS
@@ -0,0 +1 @@
+fc47f5d25197c631754efe05a349edb556d072807ecef19b41f17c1a8f39c95221be64926fbd05b1f8439181df1ddff8fc01462ce3a26005b75159ddc27e6f6a libffi-3.0.13.tar.gz
diff --git a/contrib/src/ffi/rules.mak b/contrib/src/ffi/rules.mak
new file mode 100644
index 0000000..81547f5
--- /dev/null
+++ b/contrib/src/ffi/rules.mak
@@ -0,0 +1,25 @@
+# FFI
+FFI_VERSION := 3.0.13
+FFI_URL := ftp://sourceware.org/pub/libffi/libffi-$(FFI_VERSION).tar.gz
+
+ifdef HAVE_DARWIN_OS
+PKGS += ffi
+endif
+ifeq ($(call need_pkg,"libffi"),)
+PKGS_FOUND += ffi
+endif
+
+$(TARBALLS)/libffi-$(FFI_VERSION).tar.gz:
+ $(call download,$(FFI_URL))
+
+.sum-ffi: libffi-$(FFI_VERSION).tar.gz
+
+ffi: libffi-$(FFI_VERSION).tar.gz .sum-ffi
+ $(UNPACK)
+ $(MOVE)
+
+.ffi: ffi
+ $(RECONF)
+ cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+ cd $< && $(MAKE) install
+ touch $@
More information about the vlc-commits
mailing list