summaryrefslogtreecommitdiff
path: root/libraries/libmediainfo/libmediainfo.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libmediainfo/libmediainfo.SlackBuild')
-rw-r--r--libraries/libmediainfo/libmediainfo.SlackBuild22
1 files changed, 12 insertions, 10 deletions
diff --git a/libraries/libmediainfo/libmediainfo.SlackBuild b/libraries/libmediainfo/libmediainfo.SlackBuild
index 1c7a60a970..e440e3135b 100644
--- a/libraries/libmediainfo/libmediainfo.SlackBuild
+++ b/libraries/libmediainfo/libmediainfo.SlackBuild
@@ -25,13 +25,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libmediainfo
-VERSION=${VERSION:-0.7.72}
+VERSION=${VERSION:-0.7.93}
+SRCNAM=MediaInfo_DLL_${VERSION}_GNU_FromSource
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -42,8 +43,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -61,9 +62,9 @@ set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf MediaInfoLib
-tar xvf $CWD/${PRGNAM}_${VERSION}.tar.bz2
-cd MediaInfoLib
+rm -rf MediaInfo_DLL_GNU_FromSource
+tar xvf $CWD/${SRCNAM}.tar.xz
+cd MediaInfo_DLL_GNU_FromSource
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -76,8 +77,7 @@ if [ -d $TMP/ZenLib ]; then
rm -rf $TMP/ZenLib
fi
-cd Project/GNU/Library
-./autogen
+cd MediaInfoLib/Project/GNU/Library
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -104,6 +104,8 @@ 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
@@ -117,7 +119,7 @@ done
( cd Source/Doc && doxygen Doxyfile )
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a *.txt *.html Doc/ Source/Doc/Documentation.html $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a *.{txt,html} Doc/ Source/Doc/Documentation.html $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;