[vlc-devel] [RFC PATCH 2/8] contribs: Add medialibrary

Hugo Beauzée-Luyssen hugo at beauzee.fr
Mon Jun 25 10:10:00 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..141298c6ff
--- /dev/null
+++ b/contrib/src/medialibrary/rules.mak
@@ -0,0 +1,33 @@
+MEDIALIBRARY_HASH := 931152b3dcffdef7c0f79bf97acb50969fc6beb7
+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