[vlc-commits] contribs: Add medialibrary
Hugo Beauzée-Luyssen
git at videolan.org
Tue Jul 17 23:28:06 CEST 2018
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Jun 7 10:32:16 2018 +0200| [8fdabf7b970ca62bccabf5c59d644cb061c4ac05] | committer: Hugo Beauzée-Luyssen
contribs: Add medialibrary
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8fdabf7b970ca62bccabf5c59d644cb061c4ac05
---
contrib/src/medialibrary/rules.mak | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/contrib/src/medialibrary/rules.mak b/contrib/src/medialibrary/rules.mak
new file mode 100644
index 0000000000..3fd7f87694
--- /dev/null
+++ b/contrib/src/medialibrary/rules.mak
@@ -0,0 +1,33 @@
+MEDIALIBRARY_HASH := 2e21398e4d59f83eeea6806a568e01b1a06cfc39
+MEDIALIBRARY_VERSION := git-$(MEDIALIBRARY_HASH)
+MEDIALIBRARY_GITURL := https://code.videolan.org/videolan/medialibrary.git
+
+PKGS += medialibrary
+ifeq ($(call need_pkg,"medialibrary"),)
+PKGS_FOUND += medialibrary
+endif
+
+DEPS_medialibrary = sqlite $(DEPS_sqlite)
+
+$(TARBALLS)/medialibrary-$(MEDIALIBRARY_VERSION).tar.xz:
+ $(call download_git,$(MEDIALIBRARY_GITURL),,$(MEDIALIBRARY_HASH))
+
+.sum-medialibrary: medialibrary-$(MEDIALIBRARY_VERSION).tar.xz
+ $(call check_githash,$(MEDIALIBRARY_HASH))
+ touch $@
+
+medialibrary: medialibrary-$(MEDIALIBRARY_VERSION).tar.xz .sum-medialibrary
+ rm -rf $@-$(MEDIALIBRARY_VERSION) $@
+ mkdir -p $@-$(MEDIALIBRARY_VERSION)
+ tar xvf "$<" --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 $@
+
More information about the vlc-commits
mailing list