summaryrefslogtreecommitdiffstats
path: root/multimedia/cinelerra/cinelerra.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/cinelerra/cinelerra.SlackBuild')
-rw-r--r--multimedia/cinelerra/cinelerra.SlackBuild34
1 files changed, 9 insertions, 25 deletions
diff --git a/multimedia/cinelerra/cinelerra.SlackBuild b/multimedia/cinelerra/cinelerra.SlackBuild
index 3c75d253b9..d4c95b7c4a 100644
--- a/multimedia/cinelerra/cinelerra.SlackBuild
+++ b/multimedia/cinelerra/cinelerra.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for cinelerra
-# Copyright 2010 by Giovanne Castro, Campinas, Sao Paulo, Brazil <giovannefc@ig.com.br>
+# Copyright 2011 by Giovanne Castro, Campinas, Sao Paulo, Brazil <giovannefc@ig.com.br>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=cinelerra
-VERSION=${VERSION:-cv_einar_701e5e5f}
+VERSION=${VERSION:-cv_2.1.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,18 +60,6 @@ else
mmx="--enable-mmx"
fi
-# --external-ffmpeg works only with version 0.5.x of FFMPEG.
-# Not compatible with FFMPEG 0.6 series, in this case, cinelerra
-# will be compiled with internal ffmpeg (includes in the package).
-# Uses "yes" or "no". Default: "no".
-EXTERNALFFMPEG=${EXTERNALFFMPEG:-no}
-
-if [ "$EXTERNALFFMPEG" = "no" ]; then
- externalffmpeg=""
-else
- externalffmpeg="--with-external-ffmpeg"
-fi
-
set -e
rm -rf $PKG
@@ -87,13 +75,15 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Fix build with libx264 version 76 and later.
-patch -p1 < $CWD/x264_76.patch
+# Patches (from gentoo repository) for drop v4l1 support and fix from upstream to build with ffmpeg trunk.
+# http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-video/cinelerra/files/
+patch -p1 < $CWD/ffmpeg.patch
+patch -p1 < $CWD/cinelerra-v4l1_removal.patch
./autogen.sh
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+CFLAGS="$SLKCFLAGS -D__STDC_CONSTANT_MACROS" \
+CXXFLAGS="$SLKCFLAGS -D__STDC_CONSTANT_MACROS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
@@ -106,18 +96,12 @@ CXXFLAGS="$SLKCFLAGS" \
--with-x \
--enable-opengl \
--build=$ARCH-slackware-linux \
- $externalffmpeg \
+ --with-external-ffmpeg \
$mmx
make
make install DESTDIR=$PKG
-# Delete ffmpeg headers and libraries to prevent conflicts with ffmpeg package.
-if [ "$EXTERNALFFMPEG" = "no" ]; then
- rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig
- rm -rf $PKG/usr/include/lib*
-fi
-
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true