From 8630ff272e398b82881be9a4e952c8cd08e1a73f Mon Sep 17 00:00:00 2001 From: Giovanne Castro Date: Fri, 15 Jul 2011 15:07:37 -0300 Subject: multimedia/cinelerra: Updated for version cv_2.1.5. Signed-off-by: Niels Horn --- multimedia/cinelerra/cinelerra.SlackBuild | 34 ++++++++----------------------- 1 file changed, 9 insertions(+), 25 deletions(-) (limited to 'multimedia/cinelerra/cinelerra.SlackBuild') 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 +# Copyright 2011 by Giovanne Castro, Campinas, Sao Paulo, Brazil # 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 -- cgit v1.2.3