[vlc-devel] [PATCH 1/3] Add libcineform to the contribs

Emeric Grange emeric.grange at gmail.com
Tue Aug 28 16:23:46 CEST 2018


From: Emeric <emeric.grange at gmail.com>

---
 configure.ac                    |  5 +++++
 contrib/src/cineform/SHA512SUMS |  1 +
 contrib/src/cineform/rules.mak  | 23 +++++++++++++++++++++++
 3 files changed, 29 insertions(+)
 create mode 100644 contrib/src/cineform/SHA512SUMS
 create mode 100644 contrib/src/cineform/rules.mak

diff --git a/configure.ac b/configure.ac
index 1627c12b79..1422b75f90 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2642,6 +2642,11 @@ AS_IF([test "${enable_vpx}" != "no"],[
     ])])
 ])
 
+dnl
+dnl CineForm plugin
+dnl
+PKG_ENABLE_MODULES_VLC([CINEFORM], [], [libcineform >= 0.1], [CineForm SDK with decoder and encoder], [auto])
+
 dnl
 dnl twolame encoder plugin
 dnl
diff --git a/contrib/src/cineform/SHA512SUMS b/contrib/src/cineform/SHA512SUMS
new file mode 100644
index 0000000000..68ee113356
--- /dev/null
+++ b/contrib/src/cineform/SHA512SUMS
@@ -0,0 +1 @@
+9aac5a14ac3facfebcab58256ffe947e8a5a8f3bf69367202f09367b5eef5232914d943e8bfcef1c37a06c35f9ce16c80cd4c3517f7428cc26811211ff664767  libcineform-0.1.tar.gz
diff --git a/contrib/src/cineform/rules.mak b/contrib/src/cineform/rules.mak
new file mode 100644
index 0000000000..f5392bc816
--- /dev/null
+++ b/contrib/src/cineform/rules.mak
@@ -0,0 +1,23 @@
+# cineform
+
+CINEFORM_VERSION := 0.1
+CINEFORM_URL := $(GITHUB)emericg/libcineform/archive/$(CINEFORM_VERSION).tar.gz
+
+PKGS += cineform
+ifeq ($(call need_pkg,"libcineform"),)
+PKGS_FOUND += cineform
+endif
+
+$(TARBALLS)/libcineform-$(CINEFORM_VERSION).tar.gz:
+	$(call download_pkg,$(CINEFORM_URL),cineform)
+
+.sum-cineform: libcineform-$(CINEFORM_VERSION).tar.gz
+
+cineform: libcineform-$(CINEFORM_VERSION).tar.gz .sum-cineform
+	$(UNPACK)
+	$(MOVE)
+
+.cineform: cineform toolchain.cmake
+	cd $< && $(HOSTVARS_PIC) $(CMAKE) -DBUILD_STATIC_LIBS:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=OFF .
+	cd $< && $(MAKE) install
+	touch $@
-- 
2.18.0



More information about the vlc-devel mailing list