diff options
author | Jeremy Hansen <jebrhansen+github@gmail.com> | 2018-12-31 10:43:27 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-01-05 07:49:18 +0700 |
commit | 14817df5d6f6c27ff1bd06f3459c160bebfd74a2 (patch) | |
tree | de706ae9005c106c228264989bc799187be79a0f /libraries/libmediainfo/libmediainfo.SlackBuild | |
parent | 1230d5bc3fd60757e7a5f2432f2d68874dbc9cdb (diff) |
libraries/libmediainfo: Updated for version 18.12.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libmediainfo/libmediainfo.SlackBuild')
-rw-r--r-- | libraries/libmediainfo/libmediainfo.SlackBuild | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/libraries/libmediainfo/libmediainfo.SlackBuild b/libraries/libmediainfo/libmediainfo.SlackBuild index 921ea2f86f901..69049eaab2d85 100644 --- a/libraries/libmediainfo/libmediainfo.SlackBuild +++ b/libraries/libmediainfo/libmediainfo.SlackBuild @@ -4,7 +4,7 @@ # Copyright 2010-2012 Binh Nguyen <binhvng@gmail.com> # Copyright 2012-2017 Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org -# Copyright 2017 Jeremy Hansen <jebrhansen+SBo -at- gmail.com> +# Copyright 2017-2018 Jeremy Hansen <jebrhansen+SBo -at- gmail.com> # 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 |