summaryrefslogtreecommitdiff
path: root/multimedia/HandBrake/HandBrake.SlackBuild
diff options
context:
space:
mode:
authorklaatu <klaatu@member.fsf.org>2016-08-03 18:19:02 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-08-03 18:19:02 +0700
commit77459e8b75110aa689d1f47936b0ec07c61bcc13 (patch)
tree2804fe21e600c705fc4bd93ab0a1dd6a64591cf3 /multimedia/HandBrake/HandBrake.SlackBuild
parent961d46cead5102815ae09ff315e2e659143ef6a6 (diff)
downloadslackbuilds-77459e8b75110aa689d1f47936b0ec07c61bcc13.tar.gz
multimedia/HandBrake: Updated for version 0.10.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/HandBrake/HandBrake.SlackBuild')
-rw-r--r--multimedia/HandBrake/HandBrake.SlackBuild20
1 files changed, 9 insertions, 11 deletions
diff --git a/multimedia/HandBrake/HandBrake.SlackBuild b/multimedia/HandBrake/HandBrake.SlackBuild
index 5e50a7ae87..59f37dbcde 100644
--- a/multimedia/HandBrake/HandBrake.SlackBuild
+++ b/multimedia/HandBrake/HandBrake.SlackBuild
@@ -8,9 +8,10 @@
# Patched to fix x264 segfault by John Vogel
PRGNAM=HandBrake
-VERSION=${VERSION:-0.9.9}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.10.5}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+DOCDIR=${DOCDIR:-/usr/doc}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -62,22 +63,19 @@ 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 {} \;
-# fix i686 build: "inlining failed in call to always_inline '_mm_loadu_ps': target specific option mismatch"
-# https://github.com/HandBrake/HandBrake/blob/master/contrib/lame/A00-xmmintrin.patch
-cp $CWD/A00-lame-xmmintrin.patch contrib/lame/
-cp $CWD/A00-mpeg2dec-xmmintrin.patch contrib/mpeg2dec/
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--disable-gtk-update-checks \
+ --enable-fdk-aac \
+ --disable-libav-aac \
+ --enable-x265 \
--arch=$ARCH
cd build
# Fix underlinking by configuring the gtk module first, then sed:
make gtk.configure
- sed -i '/^LDFLAGS/s/$/ -ltheoraenc -ltheoradec/' gtk/src/Makefile
make
make install DESTDIR=$PKG
cd $TMP/$PRGNAM-$VERSION
@@ -85,10 +83,10 @@ cd $TMP/$PRGNAM-$VERSION
export CFLAGS="$saved_CFLAGS"
export CXXFLAGS="$saved_CXXFLAGS"
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/$DOCDIR/$PRGNAM-$VERSION
cp -a AUTHORS COPYING CREDITS NEWS THANKS TRANSLATIONS \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+ $PKG/$DOCDIR/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/$DOCDIR/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc