summaryrefslogtreecommitdiff
path: root/multimedia/mkvtoolnix/mkvtoolnix.SlackBuild
diff options
context:
space:
mode:
authorAndrew Strong <andrew.david.45@gmail.com>2010-05-12 17:42:43 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:42:43 +0200
commit5de2edadeb919ead273cb0e7483526dcdded7e0c (patch)
tree998a79f4808c6e28a7dcb7f89df76bedb772c9b8 /multimedia/mkvtoolnix/mkvtoolnix.SlackBuild
parent804c91e895f8441c8f8f192c1462160f604535e0 (diff)
downloadslackbuilds-5de2edadeb919ead273cb0e7483526dcdded7e0c.tar.gz
multimedia/mkvtoolnix: Updated for version 2.9.5
Diffstat (limited to 'multimedia/mkvtoolnix/mkvtoolnix.SlackBuild')
-rw-r--r--multimedia/mkvtoolnix/mkvtoolnix.SlackBuild47
1 files changed, 23 insertions, 24 deletions
diff --git a/multimedia/mkvtoolnix/mkvtoolnix.SlackBuild b/multimedia/mkvtoolnix/mkvtoolnix.SlackBuild
index 571da8ab4c..16e48ee813 100644
--- a/multimedia/mkvtoolnix/mkvtoolnix.SlackBuild
+++ b/multimedia/mkvtoolnix/mkvtoolnix.SlackBuild
@@ -22,9 +22,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
PRGNAM=mkvtoolnix
-VERSION=2.4.0
+VERSION=2.9.5
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -36,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -62,6 +64,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--mandir=/usr/man \
--localstatedir=/var \
@@ -69,40 +72,36 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-wxwidgets \
--with-boost
-make
-make install DESTDIR=$PKG
+make pkgdatadir=/usr/doc/$PRGNAM-$VERSION
+make pkgdatadir=/usr/doc/$PRGNAM-$VERSION install DESTDIR=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+)
-# The gui 'mmg' does not come with a desktop file so we add one:
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+# ---> Create 'Desktop' files for mmg and mkvinfo:
mkdir -p $PKG/usr/share/applications
cat $CWD/mmg.desktop > $PKG/usr/share/applications/mmg.desktop
+cat $CWD/mkvinfo.desktop > $PKG/usr/share/applications/mkvinfo.desktop
+
mkdir -p $PKG/usr/share/pixmaps
cp src/mmg/matroskalogo.xpm $PKG/usr/share/pixmaps/
-
-# The gui 'mkvinfo' does not come with a desktop file so we add one:
-
-cat $CWD/mkvinfo.desktop > $PKG/usr/share/applications/mkvinfo.desktop
cp src/info/matroska.xpm $PKG/usr/share/pixmaps/
-# Placing the documentation:
-
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING ChangeLog INSTALL README doc/mkvmerge-gui.html $PKG/usr/doc/$PRGNAM-$VERSION
-
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-)
+cp -a AUTHORS COPYING ChangeLog INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/doinst.sh > $PKG/install/doinst.sh
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
-
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz