multimedia/ffmpeg2theora: Updated for version 0.27.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Nishant Limbachia 2010-07-03 15:12:13 -05:00 committed by Robby Workman
parent 854ad571a9
commit 45dcf510f6
4 changed files with 25 additions and 35 deletions

View file

@ -1,8 +1,5 @@
ffmpeg2theora is a simple converter to create Ogg-Theora files. It currently ffmpeg2theora is a simple converter to create Ogg-Theora files.
provides only command-line interface to convert any files that ffmpeg It currently provides only command-line interface to convert any
can decode. files that ffmpeg can decode.
Dependencies include: This requires scons, ffmpeg, and libkate.
1. ffmpeg (available at SBo)
2. scons (available at SBo, required for building ffmpeg2theora)
3. libkate (available at SBo, required for subtitles support)

View file

@ -5,13 +5,13 @@
# Copyright (c) 2008-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net) # Copyright (c) 2008-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net)
# All rights reserved. # All rights reserved.
#
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met: # permitted provided that the following conditions are met:
#
# 1. Redistributions of script must retain the above copyright notice, # 1. Redistributions of script must retain the above copyright notice,
# this list of conditions and the following disclaimer. # this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@ -23,20 +23,18 @@
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Modified by SlackBuilds.org --dsomero,rworkman # Modified by SlackBuilds.org --dsomero,rworkman
PRGNAM=ffmpeg2theora PRGNAM=ffmpeg2theora
VERSION=0.24 VERSION=0.27
BUILD=${BUILD:-2} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i486 ;; i?86) ARCH=i486 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
fi fi
@ -54,7 +52,7 @@ elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
fi fi
set -e set -e ### exit on most errors
rm -fr $TMP/$PRGNAM-$VERSION $PKG rm -fr $TMP/$PRGNAM-$VERSION $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
@ -68,23 +66,18 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \; -exec chmod 644 {} \;
### make & install using scons
scons install APPEND_CCFLAGS="$SLKCFLAGS" prefix=/usr destdir=$PKG scons install APPEND_CCFLAGS="$SLKCFLAGS" prefix=/usr destdir=$PKG
### copying essential doc files
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL README TODO \
subtitles.txt $PKG/usr/doc/$PRGNAM-$VERSION
### strip binaries
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
( cd $PKG/usr/man find $PKG/usr/man -type f -exec gzip -9 {} \;
find . -type f -exec gzip -9 {} \; for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS COPYING ChangeLog INSTALL README TODO subtitles.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc

View file

@ -1,10 +1,10 @@
PRGNAM="ffmpeg2theora" PRGNAM="ffmpeg2theora"
VERSION="0.24" VERSION="0.27"
HOMEPAGE="http://v2v.cc/~j/ffmpeg2theora/" HOMEPAGE="http://v2v.cc/~j/ffmpeg2theora/"
DOWNLOAD="http://v2v.cc/~j/ffmpeg2theora/ffmpeg2theora-0.24.tar.bz2" DOWNLOAD="http://v2v.cc/~j/ffmpeg2theora/downloads/ffmpeg2theora-0.27.tar.bz2"
MD5SUM="8cf34f36bbebededb67c7bf8dadc388f" MD5SUM="ec6bc7418aeb37f20759280f236c214a"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="Nishant Limbachia" MAINTAINER="Nishant Limbachia"
EMAIL="nishant@mnspace.net" EMAIL="nishant@mnspace.net"
APPROVED="Erik Hanson" APPROVED="rworkman"

View file

@ -7,9 +7,9 @@
|-----handy-ruler------------------------------------------------------| |-----handy-ruler------------------------------------------------------|
ffmpeg2theora: ffmpeg2theora (simple command line video transcoder) ffmpeg2theora: ffmpeg2theora (simple command line video transcoder)
ffmpeg2theora: ffmpeg2theora:
ffmpeg2theora: ffmpeg2theora is a simple command line video transcoder to ffmpeg2theora: ffmpeg2theora is a simple command line video transcoder
ffmpeg2theora: convert files to Ogg Theora using ffmpeg. ffmpeg2theora: to convert files to Ogg Theora using ffmpeg.
ffmpeg2theora: ffmpeg2theora:
ffmpeg2theora: Home Page http://v2v.cc/~j/ffmpeg2theora/ ffmpeg2theora: Home Page http://v2v.cc/~j/ffmpeg2theora/
ffmpeg2theora: ffmpeg2theora: