mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
multimedia/ffmpeg: Script cleanup
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
This commit is contained in:
parent
d3e9a34c0e
commit
0775cacdc5
1 changed files with 5 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
PRGNAM=ffmpeg
|
PRGNAM=ffmpeg
|
||||||
VERSION=${VERSION:-0.6.1}
|
VERSION=${VERSION:-0.6.1}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-2}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
|
@ -41,7 +41,7 @@ fi
|
||||||
# --enable-runtime-cpu is meant for libswscale only and
|
# --enable-runtime-cpu is meant for libswscale only and
|
||||||
# has no influence on the other parts of ffmpeg so there's
|
# has no influence on the other parts of ffmpeg so there's
|
||||||
# not really a point in bothering
|
# not really a point in bothering
|
||||||
PKGARCH=custom
|
PKGARCH=$(uname -m)_custom
|
||||||
|
|
||||||
# Configure ffmpeg features not autodetected by default
|
# Configure ffmpeg features not autodetected by default
|
||||||
# Unfortunately ffmpeg's configure doesn't support --enable-feature=yes
|
# Unfortunately ffmpeg's configure doesn't support --enable-feature=yes
|
||||||
|
@ -88,7 +88,7 @@ if [ "${JP2:-no}" = "no" ]; then
|
||||||
openjpeg=""
|
openjpeg=""
|
||||||
else
|
else
|
||||||
openjpeg="--enable-libopenjpeg"
|
openjpeg="--enable-libopenjpeg"
|
||||||
SLKCFLAGS="$SLKCFLAGS -I/usr/include/openjpeg"
|
SLKCFLAGS="$SLKCFLAGS -I/usr/include/openjpeg-1.4"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${OPENCORE:-no}" = "no" ]; then
|
if [ "${OPENCORE:-no}" = "no" ]; then
|
||||||
|
@ -183,6 +183,7 @@ CXXFLAGS="$SLKCFLAGS" \
|
||||||
|
|
||||||
make
|
make
|
||||||
make install DESTDIR=$PKG
|
make install DESTDIR=$PKG
|
||||||
|
make install-man DESTDIR=$PKG
|
||||||
|
|
||||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
| 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
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a Changelog* COPYING* CREDITS* INSTALL* MAINTAINERS* \
|
cp -a Changelog* COPYING* CREDITS* INSTALL* MAINTAINERS* \
|
||||||
README* doc/TODO* doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
|
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
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
|
|
Loading…
Reference in a new issue