aboutsummaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg/ffmpeg.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/ffmpeg/ffmpeg.SlackBuild')
-rw-r--r--multimedia/ffmpeg/ffmpeg.SlackBuild48
1 files changed, 33 insertions, 15 deletions
diff --git a/multimedia/ffmpeg/ffmpeg.SlackBuild b/multimedia/ffmpeg/ffmpeg.SlackBuild
index 349e8045a12d..5953f4735c47 100644
--- a/multimedia/ffmpeg/ffmpeg.SlackBuild
+++ b/multimedia/ffmpeg/ffmpeg.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for ffmpeg
-# Copyright 2010-2013 Heinz Wiesinger, Amsterdam, The Netherlands
+# Copyright 2010-2015 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +26,7 @@
# Modified by Robby Workman <rworkman@slackbuilds.org>
PRGNAM=ffmpeg
-VERSION=${VERSION:-2.1.5}
+VERSION=${VERSION:-2.6.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -75,6 +75,8 @@ PKGARCH=$(uname -m)_custom
# Unfortunately ffmpeg's configure doesn't support --enable-feature=yes
# syntax, so we have to do it the complicated way :/
+mp3lame="" ; [ "${LAME:-no}" != "no" ] && mp3lame="--enable-libmp3lame"
+libx264="" ; [ "${X264:-no}" != "no" ] && libx264="--enable-libx264"
libcelt="" ; [ "${CELT:-no}" != "no" ] && libcelt="--enable-libcelt"
libdc1394="" ; [ "${DC1394:-no}" != "no" ] && libdc1394="--enable-libdc1394"
libfrei0r="" ; [ "${FREI0R:-no}" != "no" ] && libfrei0r="--enable-frei0r"
@@ -88,29 +90,34 @@ libbluray="" ; [ "${BLURAY:-no}" != "no" ] && libbluray="--enable-libblur
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"
-pulse=""; [ "${PULSEAUDIO:-no}" != "no" ] && pulse="--enable-libpulse"
+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"
+pulse="" ; [ "${PULSEAUDIO:-no}" != "no" ] && pulse="--enable-libpulse"
+libflite="" ; [ "${FLITE:-no}" != "no" ] && libflite="--enable-libflite"
+libquvi="" ; [ "${QUVI:-no}" != "no" ] && libquvi="--enable-libquvi"
+libvidstab="" ; [ "${VIDSTAB:-no}" != "no" ] && libvidstab="--enable-libvidstab"
+libx265="" ; [ "${X265:-no}" != "no" ] && libx265="--enable-libx265"
+libzvbi="" ; [ "${ZVBI:-no}" != "no" ] && libzvbi="--enable-libzvbi"
+libopencv="" ; [ "${OPENCV:-no}" != "no" ] && libopencv="--enable-libopencv"
#opencl=""; [ "${OPENCL:-no}" != "no" ] && opencl="--enable-opencl"
opencore_amr="" ; [ "${OPENCORE:-no}" != "no" ] && \
opencore_amr="--enable-libopencore-amrnb --enable-libopencore-amrwb"
libfaac="" ; [ "${FAAC:-no}" != "no" ] && \
{ libfaac="--enable-libfaac" ; non_free="--enable-nonfree" ; }
+fdk="" ; [ "${FDK_AAC:-no}" != "no" ] && \
+ { fdk="--enable-libfdk-aac"; non_free="--enable-nonfree" ; }
ssl="" ; [ "${OPENSSL:-no}" != "no" ] && \
{ ssl="--enable-openssl" ; non_free="--enable-nonfree" ; }
openjpeg="" ; [ "${JP2:-no}" != "no" ] && \
{ openjpeg="--enable-libopenjpeg" ; \
SLKCFLAGS="$SLKCFLAGS -I/usr/include/openjpeg-1.5" ; }
-mp3lame="--enable-libmp3lame" ; [ "${LAME:-yes}" != "yes" ] && mp3lame=""
-libx264="--enable-libx264" ; [ "${X264:-yes}" != "yes" ] && libx264=""
-
-# opencv support is currently broken: http://code.opencv.org/issues/1925
-#libopencv="" ; [ "${OPENCV:-no}" != "no" ] && libopencv="--enable-libopencv"
+# zeromq support requires zeromq > 3.x
+#libzmq="" ; [ "${ZMQ:-no}" != "no" ] && libzmq="--enable-libzmq"
set -e
@@ -127,8 +134,9 @@ 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 compiling with libilbc 2.0.x
-patch -p1 -i $CWD/libilbc.patch
+# Fix linking with flite
+sed -i "s| -lflite\"| -lflite -lm -lasound\"|" \
+ ./configure
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -153,6 +161,9 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-gnutls \
--enable-libcdio \
--enable-libssh \
+ --enable-libcaca \
+ --enable-libsmbclient \
+ --enable-opengl \
--arch=$ARCH \
$openjpeg \
$libdc1394 \
@@ -179,6 +190,13 @@ CXXFLAGS="$SLKCFLAGS" \
$libtwolame \
$ladspa \
$pulse \
+ $fdk \
+ $libflite \
+ $libquvi \
+ $libvidstab \
+ $libx265 \
+ $libzvbi \
+ $libopencv \
$ssl
make