From 14817df5d6f6c27ff1bd06f3459c160bebfd74a2 Mon Sep 17 00:00:00 2001 From: Jeremy Hansen Date: Mon, 31 Dec 2018 10:43:27 -0700 Subject: libraries/libmediainfo: Updated for version 18.12. Signed-off-by: Willy Sudiarto Raharjo --- libraries/libmediainfo/README | 2 ++ libraries/libmediainfo/libmediainfo.SlackBuild | 17 +++++++++-------- libraries/libmediainfo/libmediainfo.info | 6 +++--- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/libraries/libmediainfo/README b/libraries/libmediainfo/README index 59c3b98a51..b21fbacf6d 100644 --- a/libraries/libmediainfo/README +++ b/libraries/libmediainfo/README @@ -2,3 +2,5 @@ Library for mediainfo. This package includes the shared library and the development support files. + +Optional dependencies: tinyxml2 and libmms diff --git a/libraries/libmediainfo/libmediainfo.SlackBuild b/libraries/libmediainfo/libmediainfo.SlackBuild index 921ea2f86f..69049eaab2 100644 --- a/libraries/libmediainfo/libmediainfo.SlackBuild +++ b/libraries/libmediainfo/libmediainfo.SlackBuild @@ -4,7 +4,7 @@ # Copyright 2010-2012 Binh Nguyen # Copyright 2012-2017 Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org -# Copyright 2017 Jeremy Hansen +# Copyright 2017-2018 Jeremy Hansen # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libmediainfo -VERSION=${VERSION:-17.12} +VERSION=${VERSION:-18.12} SRCNAM=MediaInfoLib BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -75,6 +75,10 @@ find -L . \ # We do not want to use the builtin libzen patch -p1 < $CWD/remove-internal-libzen-support.patch +# Autodetect tinyxml2 and libmms +if pkg-config --exists tinyxml2 ; then tinyxml2="--with-libtinyxml2" ; else tinyxml2="" ; fi +if pkg-config --exists libmms ; then libmms="--with-libmms" ; else libmms="--without-libmms" ; fi + cd Project/GNU/Library ./autogen.sh @@ -92,8 +96,9 @@ CXXFLAGS="$SLKCFLAGS" \ --disable-static \ --enable-shared \ --enable-visibility \ - --without-libcurl \ - --without-libmms \ + --with-libcurl \ + $tinyxml2 \ + $libmms \ --build=$ARCH-slackware-linux make @@ -103,10 +108,6 @@ cd - find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig -cp -a Project/GNU/Library/libmediainfo.pc $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig -sed -i "s/^Version: .*$/Version: $VERSION/" $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/libmediainfo.pc - for i in MediaInfo MediaInfoDLL; do mkdir -p $PKG/usr/include/$i install -m 644 Source/$i/*.h $PKG/usr/include/$i diff --git a/libraries/libmediainfo/libmediainfo.info b/libraries/libmediainfo/libmediainfo.info index fad7fb576f..bc70990c10 100644 --- a/libraries/libmediainfo/libmediainfo.info +++ b/libraries/libmediainfo/libmediainfo.info @@ -1,8 +1,8 @@ PRGNAM="libmediainfo" -VERSION="17.12" +VERSION="18.12" HOMEPAGE="https://mediaarea.net/MediaInfo" -DOWNLOAD="https://github.com/MediaArea/MediaInfoLib/archive/v17.12/MediaInfoLib-17.12.tar.gz" -MD5SUM="45daadda82657a121321a25bfc79e588" +DOWNLOAD="https://github.com/MediaArea/MediaInfoLib/archive/v18.12/MediaInfoLib-18.12.tar.gz" +MD5SUM="5982a13e1f755b7c78c4d8e53b2a8790" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="libzen" -- cgit v1.2.3