summaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg/ffmpeg.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2011-04-01 12:49:31 +0200
committerHeinz Wiesinger <pprkut@slackbuilds.org>2011-04-01 12:49:31 +0200
commit0775cacdc5d753cd43a203714d526ddca894ef10 (patch)
treed2dcb7673ace3f487bb5e3818d46d037b1ab67bb /multimedia/ffmpeg/ffmpeg.SlackBuild
parentd3e9a34c0e1c50529b1fec952698ba0a9506baed (diff)
downloadslackbuilds-0775cacdc5d753cd43a203714d526ddca894ef10.tar.gz
multimedia/ffmpeg: Script cleanup
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'multimedia/ffmpeg/ffmpeg.SlackBuild')
-rw-r--r--multimedia/ffmpeg/ffmpeg.SlackBuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/multimedia/ffmpeg/ffmpeg.SlackBuild b/multimedia/ffmpeg/ffmpeg.SlackBuild
index 8164687adb..a81ebfcdc1 100644
--- a/multimedia/ffmpeg/ffmpeg.SlackBuild
+++ b/multimedia/ffmpeg/ffmpeg.SlackBuild
@@ -8,7 +8,7 @@
PRGNAM=ffmpeg
VERSION=${VERSION:-0.6.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -41,7 +41,7 @@ fi
# --enable-runtime-cpu is meant for libswscale only and
# has no influence on the other parts of ffmpeg so there's
# not really a point in bothering
-PKGARCH=custom
+PKGARCH=$(uname -m)_custom
# Configure ffmpeg features not autodetected by default
# Unfortunately ffmpeg's configure doesn't support --enable-feature=yes
@@ -88,7 +88,7 @@ if [ "${JP2:-no}" = "no" ]; then
openjpeg=""
else
openjpeg="--enable-libopenjpeg"
- SLKCFLAGS="$SLKCFLAGS -I/usr/include/openjpeg"
+ SLKCFLAGS="$SLKCFLAGS -I/usr/include/openjpeg-1.4"
fi
if [ "${OPENCORE:-no}" = "no" ]; then
@@ -183,6 +183,7 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+make install-man 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
@@ -192,6 +193,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a Changelog* COPYING* CREDITS* INSTALL* MAINTAINERS* \
README* doc/TODO* doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a doc/*.html $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install