summaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg/ffmpeg.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-12 17:42:34 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:42:34 +0200
commitcaf90f4920ad58510d3f103fae0a9d9bf323c5e0 (patch)
tree8fcce9dcf8aa1cdee780de05f586775feefb94c3 /multimedia/ffmpeg/ffmpeg.SlackBuild
parent05e9ffb4fcd5e06e5cd551037b1f1b0a33627b06 (diff)
downloadslackbuilds-caf90f4920ad58510d3f103fae0a9d9bf323c5e0.tar.gz
multimedia/ffmpeg: Updated for version 0.5
Diffstat (limited to 'multimedia/ffmpeg/ffmpeg.SlackBuild')
-rw-r--r--multimedia/ffmpeg/ffmpeg.SlackBuild46
1 files changed, 28 insertions, 18 deletions
diff --git a/multimedia/ffmpeg/ffmpeg.SlackBuild b/multimedia/ffmpeg/ffmpeg.SlackBuild
index 852bd02cea..8c22619ac3 100644
--- a/multimedia/ffmpeg/ffmpeg.SlackBuild
+++ b/multimedia/ffmpeg/ffmpeg.SlackBuild
@@ -6,13 +6,8 @@
# Modified by Robby Workman <rworkman@slackbuilds.org>
# Modified by Heinz Wiesinger <pprkut@liwjatan.org>
-set -e
-
PRGNAM=ffmpeg
-VERSION=${VERSION:-20081105}
-# To use today's svn checkout, comment the line above and uncomment
-# the line below. See the README for more information.
-#VERSION=${VERSION:-$(date +"%Y%m%d")}
+VERSION=${VERSION:-0.5}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -44,6 +39,20 @@ else
amr_wb="--enable-libamr-wb"
fi
+if [ "${DIRAC:-no}" = "no" ]; then
+ dirac_slow=""
+else
+ dirac_slow="--enable-libdirac"
+fi
+
+if [ "${VDPAU:-no}" = "no" ]; then
+ vdpau_opt="--disable-vdpau"
+else
+ vdpau_opt="--enable-vdpau"
+fi
+
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -53,8 +62,8 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+CFLAGS="$SLKCFLAGS -I/usr/include/openjpeg" \
+CXXFLAGS="$SLKCFLAGS -I/usr/include/openjpeg" \
./configure \
--prefix=/usr \
--mandir=/usr/man \
@@ -75,6 +84,11 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-libx264 \
--enable-avfilter \
--enable-avfilter-lavf \
+ --enable-libschroedinger \
+ --enable-libspeex \
+ --enable-libopenjpeg \
+ $dirac_slow \
+ $vdpau_opt \
$non_free \
$amr_nb \
$amr_wb
@@ -82,8 +96,12 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+( 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
+)
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
@@ -95,14 +113,6 @@ cp -a Changelog* COPYING* CREDITS* INSTALL* MAINTAINERS* \
README* doc/TODO* doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-if [ -e $CWD/$PRGNAM-mksrctarball.sh ]; then
- cat $CWD/$PRGNAM-mksrctarball.sh > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-mksrctarball.sh
-fi
-
-if [ -e $CWD/svn-$PRGNAM-$VERSION.log ]; then
- cat $CWD/svn-$PRGNAM-$VERSION.log > $PKG/usr/doc/$PRGNAM-$VERSION/svn-$PRGNAM-$VERSION.log
-fi
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc