[vlc-devel] [PATCH 3/9] contribs: Add medialibrary

Hugo Beauzée-Luyssen hugo at beauzee.fr
Fri Jul 13 17:07:21 CEST 2018


---
 contrib/src/medialibrary/rules.mak | 33 ++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 contrib/src/medialibrary/rules.mak

diff --git a/contrib/src/medialibrary/rules.mak b/contrib/src/medialibrary/rules.mak
new file mode 100644
index 0000000000..c7ef5acb88
--- /dev/null
+++ b/contrib/src/medialibrary/rules.mak
@@ -0,0 +1,33 @@
+MEDIALIBRARY_HASH := fc8e82d267f1a0d2a2159e08c515bb9d0a531013
+MEDIALIBRARY_VERSION := git-$(MEDIALIBRARY_HASH)
+MEDIALIBRARY_GITURL := https://code.videolan.org/videolan/medialibrary/-/archive/$(MEDIALIBRARY_HASH)/medialibrary-$(MEDIALIBRARY_HASH).tar.gz
+
+PKGS += medialibrary
+ifeq ($(call need_pkg,"medialibrary"),)
+PKGS_FOUND += medialibrary
+endif
+
+DEPS_medialibrary = sqlite $(DEPS_sqlite) jpeg $(deps_JPEG)
+
+$(TARBALLS)/medialibrary-$(MEDIALIBRARY_VERSION).tar.gz:
+	$(call download,$(MEDIALIBRARY_GITURL))
+
+.sum-medialibrary: medialibrary-$(MEDIALIBRARY_VERSION).tar.gz
+	$(warning $@ not implemented)
+	touch $@
+
+medialibrary: medialibrary-$(MEDIALIBRARY_VERSION).tar.gz .sum-medialibrary
+	rm -rf $@-$(MEDIALIBRARY_VERSION) $@
+	mkdir -p $@-$(MEDIALIBRARY_VERSION)
+	tar xvzf "$<" --strip-components=1 -C $@-$(MEDIALIBRARY_VERSION)
+	$(call pkg_static, "medialibrary.pc.in")
+	$(UPDATE_AUTOCONFIG)
+	$(MOVE)
+
+.medialibrary: medialibrary
+	$(RECONF)
+	cd $< && $(HOSTVARS_PIC) ./configure CXXFLAGS="-g -O0" --disable-tests --without-libvlc $(HOSTCONF)
+	cd $< && $(MAKE)
+	cd $< && $(MAKE) install
+	touch $@
+
-- 
2.18.0



More information about the vlc-devel mailing list