aboutsummaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg/ffmpeg.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2013-11-02 20:54:55 +0100
committerRobby Workman <rworkman@slackbuilds.org>2013-11-02 23:24:07 -0500
commite1c59ba9edd3df2d6a752ed5bcf3f5102373c70c (patch)
tree59a17bd63a43a421ea131469bd5a03252f9d2ff8 /multimedia/ffmpeg/ffmpeg.SlackBuild
parent82afc4884dbf12fe5fd895cd43592ca2e3152cbe (diff)
multimedia/ffmpeg: Updated for version 2.1.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'multimedia/ffmpeg/ffmpeg.SlackBuild')
-rw-r--r--multimedia/ffmpeg/ffmpeg.SlackBuild49
1 files changed, 42 insertions, 7 deletions
diff --git a/multimedia/ffmpeg/ffmpeg.SlackBuild b/multimedia/ffmpeg/ffmpeg.SlackBuild
index b5772c52ef4eb..1814858dfe9f1 100644
--- a/multimedia/ffmpeg/ffmpeg.SlackBuild
+++ b/multimedia/ffmpeg/ffmpeg.SlackBuild
@@ -2,13 +2,32 @@
# Slackware build script for ffmpeg
-# Written by core (eroc@linuxmail.org)
+# Copyright 2010-2013 Heinz Wiesinger, Amsterdam, The Netherlands
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# Originally written by core (eroc@linuxmail.org)
# Modified by Robby Workman <rworkman@slackbuilds.org>
-# Modified by Heinz Wiesinger <pprkut@liwjatan.org>
PRGNAM=ffmpeg
-VERSION=${VERSION:-0.11.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-2.1}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -68,6 +87,13 @@ libxvid="" ; [ "${XVID:-no}" != "no" ] && libxvid="--enable-libxvid"
libbluray="" ; [ "${BLURAY:-no}" != "no" ] && libbluray="--enable-libbluray"
libass="" ; [ "${ASS:-no}" != "no" ] && libass="--enable-libass"
libopenal="" ; [ "${OPENAL:-no}" != "no" ] && libopenal="--enable-openal"
+libiec61883=""; [ "${IEC61883:-no}" != "no" ] && libiec61883="--enable-libiec61883"
+libilbc=""; [ "${ILBC:-no}" != "no" ] && libilbc="--enable-libilbc"
+libmodplug=""; [ "${MODPLUG:-no}" != "no" ] && libmodplug="--enable-libmodplug"
+libopus=""; [ "${OPUS:-no}" != "no" ] && libopus="--enable-libopus"
+libtwolame=""; [ "${TWOLAME:-no}" != "no" ] && libtwolame="--enable-libtwolame"
+ladspa=""; [ "${LADSPA:-no}" != "no" ] && ladspa="--enable-ladspa"
+opencl=""; [ "${OPENCL:-no}" != "no" ] && opencl="--enable-opencl"
opencore_amr="" ; [ "${OPENCORE:-no}" != "no" ] && \
opencore_amr="--enable-libopencore-amrnb --enable-libopencore-amrwb"
@@ -102,6 +128,7 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--shlibdir=/usr/lib${LIBDIRSUFFIX} \
+ --docdir=/usr/doc/$PRGNAM-$VERSION/html \
--mandir=/usr/man \
--disable-debug \
--enable-shared \
@@ -117,6 +144,7 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-avfilter \
--enable-gnutls \
--enable-libcdio \
+ --enable-libssh \
--arch=$ARCH \
$openjpeg \
$libdc1394 \
@@ -136,6 +164,13 @@ CXXFLAGS="$SLKCFLAGS" \
$libbluray \
$libass \
$libopenal \
+ $libiec61883 \
+ $libilbc \
+ $libmodplug \
+ $libopus \
+ $libtwolame \
+ $ladspa \
+ $opencl \
$ssl
make
@@ -147,10 +182,10 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \
find $PKG/usr/man -type f -exec gzip -9 {} \;
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/txt
cp -a Changelog COPYING* CREDITS INSTALL LICENSE MAINTAINERS README RELEASE \
- VERSION doc/RELEASE_NOTES doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a doc/*.html $PKG/usr/doc/$PRGNAM-$VERSION
+ VERSION doc/RELEASE_NOTES $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION/txt/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install