diff options
Diffstat (limited to 'libraries/libmediainfo/libmediainfo.SlackBuild')
-rw-r--r-- | libraries/libmediainfo/libmediainfo.SlackBuild | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/libraries/libmediainfo/libmediainfo.SlackBuild b/libraries/libmediainfo/libmediainfo.SlackBuild index e440e3135b..13757f1ce6 100644 --- a/libraries/libmediainfo/libmediainfo.SlackBuild +++ b/libraries/libmediainfo/libmediainfo.SlackBuild @@ -2,9 +2,9 @@ # Slackware build script for libmediainfo -# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org - # 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> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ PRGNAM=libmediainfo VERSION=${VERSION:-0.7.93} -SRCNAM=MediaInfo_DLL_${VERSION}_GNU_FromSource +SRCNAM=MediaInfoLib BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -62,9 +62,9 @@ set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf MediaInfo_DLL_GNU_FromSource -tar xvf $CWD/${SRCNAM}.tar.xz -cd MediaInfo_DLL_GNU_FromSource +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -72,12 +72,11 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# We do not want builtin libzen -if [ -d $TMP/ZenLib ]; then - rm -rf $TMP/ZenLib -fi +# We do not want to use the builtin libzen +patch -p1 < $CWD/remove-internal-libzen-support.patch -cd MediaInfoLib/Project/GNU/Library +cd Project/GNU/Library +./autogen.sh CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -104,8 +103,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 -cd MediaInfoLib - 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 |