summaryrefslogtreecommitdiff
path: root/multimedia/cinelerra/cinelerra.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/cinelerra/cinelerra.SlackBuild')
-rw-r--r--multimedia/cinelerra/cinelerra.SlackBuild19
1 files changed, 17 insertions, 2 deletions
diff --git a/multimedia/cinelerra/cinelerra.SlackBuild b/multimedia/cinelerra/cinelerra.SlackBuild
index ab3d600603..de42bbd6b5 100644
--- a/multimedia/cinelerra/cinelerra.SlackBuild
+++ b/multimedia/cinelerra/cinelerra.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=cinelerra
VERSION=${VERSION:-cv_2.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -60,6 +60,19 @@ else
mmx="--enable-mmx"
fi
+# Patches for ffmpeg-2.x exist on the official website.
+# While testing, the patches work for the most part, but
+# in various cases (like loading multiple DNxHD files)
+# they make the program very unstable.
+# Defaulting to internal ffmpeg because of this.
+EXTERNALFFMPEG=${EXTERNALFFMPEG:-no}
+
+if [ "$EXTERNALFFMPEG" = "no" ]; then
+ externalffmpeg=""
+elif [ "$EXTERNALFFMPEG" = "yes" ]; then
+ externalffmpeg="--with-external-ffmpeg"
+fi
+
set -e
rm -rf $PKG
@@ -75,9 +88,11 @@ 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 {} \;
+if [ "$EXTERNALFFMPEG" = "yes" ]; then
# Patches (from the official website) for compatibility with ffmpeg-2.x
patch -p1 < $CWD/patches/cinelerra-cv-ffmpeg_api2.2.patch
patch -p1 < $CWD/patches/cinelerra-cv-ffmpeg2.0.patch
+fi
./autogen.sh
@@ -96,7 +111,7 @@ CXXFLAGS="$SLKCFLAGS -D__STDC_CONSTANT_MACROS" \
--with-x \
--enable-opengl \
--build=$ARCH-slackware-linux \
- --with-external-ffmpeg \
+ $externalffmpeg \
$mmx
make