summaryrefslogtreecommitdiff
path: root/libraries/libmp4v2
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libmp4v2')
-rw-r--r--libraries/libmp4v2/libmp4v2.SlackBuild29
-rw-r--r--libraries/libmp4v2/libmp4v2.info6
2 files changed, 18 insertions, 17 deletions
diff --git a/libraries/libmp4v2/libmp4v2.SlackBuild b/libraries/libmp4v2/libmp4v2.SlackBuild
index e1550512cf..a7e1eb8c40 100644
--- a/libraries/libmp4v2/libmp4v2.SlackBuild
+++ b/libraries/libmp4v2/libmp4v2.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for libmp4v2
# Copyright (c) 2007 Alex Lysenka <me@alkos333.net>
+# Copyright (c) 2020 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -34,14 +35,13 @@
# Modified by the SlackBuilds.org Project
PRGNAM=libmp4v2
-SRCNAM=mp4v2
-VERSION=${VERSION:-2.0.0}
+VERSION=${VERSION:-20191108_9084868}
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
@@ -52,8 +52,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"
@@ -68,17 +68,20 @@ fi
set -e
-rm -rf $TMP/$SRCNAM-$VERSION $PKG
+rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
-cd $SRCNAM-$VERSION
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+autoreconf -vif
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -93,18 +96,16 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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/doc/$PRGNAM-$VERSION
-cp -a \
- COPYING README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING README $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 {} \;
find $PKG/usr/man -type f -exec gzip -9 {} \;
-rm -rf $PKG/usr/man/manm
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/libraries/libmp4v2/libmp4v2.info b/libraries/libmp4v2/libmp4v2.info
index ca5f2b760c..f1c2570ddc 100644
--- a/libraries/libmp4v2/libmp4v2.info
+++ b/libraries/libmp4v2/libmp4v2.info
@@ -1,8 +1,8 @@
PRGNAM="libmp4v2"
-VERSION="2.0.0"
+VERSION="20191108_9084868"
HOMEPAGE="https://github.com/sergiomb2/libmp4v2"
-DOWNLOAD="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2"
-MD5SUM="c91f06711225b34b4c192c9114887b14"
+DOWNLOAD="http://ponce.cc/slackware/sources/repo/libmp4v2-20191108_9084868.tar.xz"
+MD5SUM="508508c4d8c44bdedd4d81329c4f1f56"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""