[vlc-commits] contrib: add libplacebo
Marvin Scholz
git at videolan.org
Fri Nov 3 11:11:44 CET 2017
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Tue Oct 10 15:07:58 2017 +0200| [6f93ef36dbb596c2a1ae43a723477eb4a993297e] | committer: Thomas Guillem
contrib: add libplacebo
Use a pinned git commit and build statically due to libplacebo's
unstable alpha API. The chosen hash corresponds to the tag v0.1.0.
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6f93ef36dbb596c2a1ae43a723477eb4a993297e
---
contrib/src/libplacebo/SHA512SUMS | 1 +
contrib/src/libplacebo/rules.mak | 24 ++++++++++++++++++++++++
2 files changed, 25 insertions(+)
diff --git a/contrib/src/libplacebo/SHA512SUMS b/contrib/src/libplacebo/SHA512SUMS
new file mode 100644
index 0000000000..fd26feafa2
--- /dev/null
+++ b/contrib/src/libplacebo/SHA512SUMS
@@ -0,0 +1 @@
+fad25b4c429aecbd446a5d890a293a7f21267ea4d68f0cbbf9c0e1d97a742b2229d640c0a90c1290decc24d684d74cce186a45c31d821f797b69147c3f7005fb libplacebo-0.1.0.tar.gz
diff --git a/contrib/src/libplacebo/rules.mak b/contrib/src/libplacebo/rules.mak
new file mode 100644
index 0000000000..456515d8ed
--- /dev/null
+++ b/contrib/src/libplacebo/rules.mak
@@ -0,0 +1,24 @@
+# libplacebo
+
+PLACEBO_VERSION := 0.1.0
+PLACEBO_URL := https://github.com/haasn/libplacebo/archive/v$(PLACEBO_VERSION).tar.gz
+PLACEBO_ARCHIVE = libplacebo-$(PLACEBO_VERSION).tar.gz
+
+PLACEBOCONF := --prefix="$(PREFIX)" \
+ --libdir lib \
+ --default-library static
+
+$(TARBALLS)/$(PLACEBO_ARCHIVE):
+ $(call download_pkg,$(PLACEBO_URL),libplacebo)
+
+.sum-libplacebo: $(PLACEBO_ARCHIVE)
+
+libplacebo: $(PLACEBO_ARCHIVE) .sum-libplacebo
+ $(UNPACK)
+ $(MOVE)
+
+.libplacebo: libplacebo
+ cd $< && rm -rf ./build
+ cd $< && $(HOSTVARS) meson $(PLACEBOCONF) build
+ cd $< && cd build && ninja install
+ touch $@
More information about the vlc-commits
mailing list