From 1da79f3f984391317a5845d78b6ab8d8f2c6fcb4 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Tue, 17 May 2011 21:02:13 +0000 Subject: Use external ffmpeg --- .../build/gst-plugins-ffmpeg.SlackBuild | 28 +++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'gst-plugins-ffmpeg') diff --git a/gst-plugins-ffmpeg/build/gst-plugins-ffmpeg.SlackBuild b/gst-plugins-ffmpeg/build/gst-plugins-ffmpeg.SlackBuild index f9968080..27210915 100755 --- a/gst-plugins-ffmpeg/build/gst-plugins-ffmpeg.SlackBuild +++ b/gst-plugins-ffmpeg/build/gst-plugins-ffmpeg.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh # $Id$ -# Copyright (c) 2009, 2010 Eric Hameleers, Eindhoven, NL +# Copyright (c) 2009, 2010, 2011 Eric Hameleers, Eindhoven, NL # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -28,12 +28,15 @@ # For: gst-plugins-ffmpeg # Descr: GStreamer FFmpeg plug-in # URL: http://gstreamer.freedesktop.org/modules/gst-ffmpeg.html -# Needs: yasm (only compile-time) +# Needs: ffmpeg; yasm (compile-time) # Changelog: # 0.10.8-1: 30/Sep/2009 by Eric Hameleers # * Initial build. # 0.10.11-1: 25/aug/2010 by Eric Hameleers # * Update to accompany a new gnash package +# 0.10.11-2: 17/may/2011 by Eric Hameleers +# * Depend on an already installed ffmpeg package which allows me +# tu make a lot more features available. # # Run 'sh gst-plugins-ffmpeg.SlackBuild' to build a Slackware package. # The package (.tgz) and .txt file as well as build logs are created in /tmp . @@ -46,12 +49,18 @@ PRGNAM=gst-plugins-ffmpeg SRCNAM=gst-ffmpeg VERSION=${VERSION:-0.10.11} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} NUMJOBS=${NUMJOBS:" -j4 "} TAG=${TAG:-alien} DOCS="AUTHORS COPYING ChangeLog NEWS README TODO gst-ffmpeg.doap" +# Using the package's own internal copy of ffmpeg allows you to *not* +# depend on an external ffmpeg package which is already installed. +# However, the internal ffmpeg will not be built as featureful as my own +# external ffmpeg package, so I will rather use that. +USE_INTERNAL_FFMPEG=${USE_INTERNAL_FFMPEG:-NO} + # Where do we look for sources? SRCDIR=$(cd $(dirname $0); pwd) @@ -146,6 +155,12 @@ cd ${SRCNAM}-${VERSION} chown -R root:root . chmod -R u+w,go+r-w,a+X-s . +if [ "$USE_INTERNAL_FFMPEG" = "NO" -o "$USE_INTERNAL_FFMPEG" = "no" ]; then + FFMPEG_OPTS="--with-system-ffmpeg" +else + FFMPEG_OPTS="" +fi + echo Building ... LDFLAGS="$SLKLDFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -156,6 +171,7 @@ CFLAGS="$SLKCFLAGS" \ --mandir=/usr/man \ --localstatedir=/var \ --sysconfdir=/etc \ + $FFMPEG_OPTS \ --program-prefix= \ --program-suffix= \ --build=$ARCH-slackware-linux \ @@ -183,6 +199,9 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" \ # Add a package description: mkdir -p $PKG/install cat $SRCDIR/slack-desc > $PKG/install/slack-desc +if [ "$USE_INTERNAL_FFMPEG" = "NO" -o "$USE_INTERNAL_FFMPEG" = "no" ]; then + cat $SRCDIR/slack-required > $PKG/install/slack-required +fi # Build the package: cd $PKG @@ -191,6 +210,9 @@ cd $OUTPUT md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz.md5 cd - cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt +if [ "$USE_INTERNAL_FFMPEG" = "NO" -o "$USE_INTERNAL_FFMPEG" = "no" ]; then + cat $PKG/install/slack-required > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.dep +fi # Restore the original umask: umask ${_UMASK_} -- cgit v1.2.3