summaryrefslogtreecommitdiffstats
path: root/libraries/libmediainfo/libmediainfo.SlackBuild
diff options
context:
space:
mode:
author Jeremy Hansen2018-12-31 18:43:27 +0100
committer Willy Sudiarto Raharjo2019-01-05 01:49:18 +0100
commit14817df5d6f6c27ff1bd06f3459c160bebfd74a2 (patch)
treede706ae9005c106c228264989bc799187be79a0f /libraries/libmediainfo/libmediainfo.SlackBuild
parent1230d5bc3fd60757e7a5f2432f2d68874dbc9cdb (diff)
downloadslackbuilds-14817df5d6f6c27ff1bd06f3459c160bebfd74a2.tar.gz
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.SlackBuild17
1 files changed, 9 insertions, 8 deletions
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 <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