diff options
author | Giovanne Castro <giovannefc@ig.com.br> | 2010-08-15 18:22:03 -0400 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-08-15 20:53:42 -0500 |
commit | cfc489b45520367915c4dd97516a54bab6569aac (patch) | |
tree | 10ccc3bb7c89bf250c742b3ca40c058d781c4a22 | |
parent | e44543da8ad3aae93a72bb7b4d50e8826ecb8ec4 (diff) | |
download | slackbuilds-cfc489b45520367915c4dd97516a54bab6569aac.tar.gz |
multimedia/cinelerra: Added (GNU/Linux Video/Audio Studio)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r-- | multimedia/cinelerra/Fix_POTFILES.patch | 48 | ||||
-rw-r--r-- | multimedia/cinelerra/README | 11 | ||||
-rw-r--r-- | multimedia/cinelerra/cinelerra.SlackBuild | 118 | ||||
-rw-r--r-- | multimedia/cinelerra/cinelerra.info | 10 | ||||
-rw-r--r-- | multimedia/cinelerra/doinst.sh | 14 | ||||
-rw-r--r-- | multimedia/cinelerra/shapewipe-libpng14.patch | 29 | ||||
-rw-r--r-- | multimedia/cinelerra/slack-desc | 19 |
7 files changed, 249 insertions, 0 deletions
diff --git a/multimedia/cinelerra/Fix_POTFILES.patch b/multimedia/cinelerra/Fix_POTFILES.patch new file mode 100644 index 0000000000..b10fb57b65 --- /dev/null +++ b/multimedia/cinelerra/Fix_POTFILES.patch @@ -0,0 +1,48 @@ +diff -rupN POTFILES.in.orig POTFILES.in.diff > Fix_POTFILES.patch +--- POTFILES.in.orig//po/POTFILES.in 2010-08-03 20:48:09.603076845 -0300 ++++ POTFILES.in.diff//po/POTFILES.in 2010-08-03 21:32:27.439507572 -0300 +@@ -20,7 +20,7 @@ cinelerra/channeledit.C + cinelerra/channelpicker.C + cinelerra/clipedit.C + # cinelerra/compresspopup.C +-cinelerra/confirmquit.C ++# cinelerra/confirmquit.C + cinelerra/confirmsave.C + cinelerra/cpanel.C + # cinelerra/cropvideo.C +@@ -56,7 +56,7 @@ cinelerra/indexfile.C + cinelerra/indexthread.C + cinelerra/interfaceprefs.C + cinelerra/keyframepopup.C +-cinelerra/labelnavigate.C ++# cinelerra/labelnavigate.C + cinelerra/loadfile.C + cinelerra/loadmode.C + cinelerra/main.C +@@ -65,7 +65,7 @@ cinelerra/mainmenu.C + cinelerra/mainprogress.C + cinelerra/manualgoto.C + cinelerra/menueffects.C +-cinelerra/messages.C ++# cinelerra/messages.C + cinelerra/meterpanel.C + cinelerra/mwindow.C + cinelerra/mwindowedit.C +@@ -95,7 +95,7 @@ cinelerra/recordmonitor.C + cinelerra/recordprefs.C + cinelerra/recordtransport.C + cinelerra/recordvideo.C +-cinelerra/recordwindow.C ++# cinelerra/recordwindow.C + # cinelerra/reindex.C + cinelerra/render.C + cinelerra/renderfarm.C +@@ -109,7 +109,7 @@ cinelerra/setformat.C + cinelerra/sharedlocation.C + cinelerra/splashgui.C + cinelerra/statusbar.C +-cinelerra/threadindexer.C ++# cinelerra/threadindexer.C + cinelerra/tipwindow.C + # cinelerra/toggleauto.C + cinelerra/trackcanvas.C diff --git a/multimedia/cinelerra/README b/multimedia/cinelerra/README new file mode 100644 index 0000000000..501635f1ce --- /dev/null +++ b/multimedia/cinelerra/README @@ -0,0 +1,11 @@ +Cinelerra is the most advanced non-linear video editor and compositor +for Linux. It does primarily 3 main things: capturing, compositing, +and editing audio and video with sample level accuracy. + +This is a development version maintained by Einar Rünkaru: + http://git.cinelerra.org/gitweb?p=einar/cinelerra.git;a=summary +This build script uses a git snapshot that was downloaded and hosted +by the script maintainer. + +This requires a52dec, libsndfile, imlib2, libdv, faac, faad2, ffmpeg, +x264, lame, libavc1394, libiec61883, and mjpegtools. diff --git a/multimedia/cinelerra/cinelerra.SlackBuild b/multimedia/cinelerra/cinelerra.SlackBuild new file mode 100644 index 0000000000..e7f8c552f0 --- /dev/null +++ b/multimedia/cinelerra/cinelerra.SlackBuild @@ -0,0 +1,118 @@ +#!/bin/sh + +# Slackware build script for cinelerra + +# Written by Giovanne Castro <giovannefc@ig.com.br> + +PRGNAM=cinelerra +VERSION=${VERSION:-cv_einar_cf708d7f} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +if [ "$ARCH" = "x86_64" ]; then + mmx="" +else + mmx="--enable-mmx" +fi + +# --external-ffmpeg works only with version 0.5.x of FFMPEG. +# Not compatible with FFPEG 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="" +elif [ "$EXTERNALFFMPEG" = "yes" ]; then + externalffmpeg="--with-external-ffmpeg" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# Patch for libpng 1.4.x and po_POTFILES.in (Fixed deleted files) +patch -p1 < $CWD/shapewipe-libpng14.patch +patch -p1 < $CWD/Fix_POTFILES.patch + +./autogen.sh +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --with-plugindir=/usr/lib${LIBDIRSUFFIX}/cinelerra \ + --disable-static \ + --mandir=/usr/man \ + --with-pic \ + --with-x \ + --enable-opengl \ + --with-buildinfo=git_cv_einar_$VERSION \ + --build=$ARCH-slackware-linux \ + $externalffmpeg \ + $mmx + +make +make install DESTDIR=$PKG + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README* TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +# 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/libav{codec,device,format,util} +fi + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/multimedia/cinelerra/cinelerra.info b/multimedia/cinelerra/cinelerra.info new file mode 100644 index 0000000000..f4fa11ebe7 --- /dev/null +++ b/multimedia/cinelerra/cinelerra.info @@ -0,0 +1,10 @@ +PRGNAM="cinelerra" +VERSION="cv_einar_cf708d7f" +HOMEPAGE="http://cinelerra.org/" +DOWNLOAD="http://www.ginoepri.com/linux/cinelerra-cv_einar_cf708d7f.tar.gz" +MD5SUM="a920c2c58f6d0d60d3309f156f0bf072" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Giovanne Castro" +EMAIL="giovannefc@ig.com.br" +APPROVED="dsomero" diff --git a/multimedia/cinelerra/doinst.sh b/multimedia/cinelerra/doinst.sh new file mode 100644 index 0000000000..9830478e8c --- /dev/null +++ b/multimedia/cinelerra/doinst.sh @@ -0,0 +1,14 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + diff --git a/multimedia/cinelerra/shapewipe-libpng14.patch b/multimedia/cinelerra/shapewipe-libpng14.patch new file mode 100644 index 0000000000..68c2d3f6dc --- /dev/null +++ b/multimedia/cinelerra/shapewipe-libpng14.patch @@ -0,0 +1,29 @@ +diff -rupN cinelerra.orig//plugins/shapewipe/shapewipe.C cinelerra.diff//plugins/shapewipe/shapewipe.C +--- cinelerra.orig//plugins/shapewipe/shapewipe.C 2010-05-24 15:51:53.363190632 -0400 ++++ cinelerra.diff//plugins/shapewipe/shapewipe.C 2010-05-24 15:56:04.243457280 -0400 +@@ -385,7 +385,7 @@ int ShapeWipeMain::read_pattern_image(in + goto erret; + + png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, +- png_voidp_NULL, png_error_ptr_NULL, png_error_ptr_NULL); ++ NULL, NULL, NULL); + + if (!png_ptr) + goto erret; +@@ -396,14 +396,14 @@ int ShapeWipeMain::read_pattern_image(in + info_ptr = png_create_info_struct(png_ptr); + if (!info_ptr) + { +- png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL); ++ png_destroy_read_struct(&png_ptr, NULL, NULL); + goto erret; + } + + end_info = png_create_info_struct(png_ptr); + if (!end_info) + { +- png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL); ++ png_destroy_read_struct(&png_ptr, &info_ptr, NULL); + erret: + fclose(fp); + return 1; diff --git a/multimedia/cinelerra/slack-desc b/multimedia/cinelerra/slack-desc new file mode 100644 index 0000000000..a44953ad4c --- /dev/null +++ b/multimedia/cinelerra/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler----------------------------------------------------| +cinelerra: cinelerra (GNU/Linux Video/Audio Studio) +cinelerra: +cinelerra: Cinelerra is the most advanced non-linear video editor +cinelerra: and compositor for Linux. It does primarily three main +cinelerra: things: capturing, compositing, and editing audio and +cinelerra: video with sample level accuracy. +cinelerra: +cinelerra: Home Page: http://cinelerra.org/ +cinelerra: +cinelerra: +cinelerra: |