diff options
Diffstat (limited to 'multimedia/HandBrake')
-rw-r--r-- | multimedia/HandBrake/HandBrake.SlackBuild | 71 | ||||
-rw-r--r-- | multimedia/HandBrake/HandBrake.info | 42 | ||||
-rw-r--r-- | multimedia/HandBrake/README | 12 | ||||
-rw-r--r-- | multimedia/HandBrake/slack-desc | 19 |
4 files changed, 144 insertions, 0 deletions
diff --git a/multimedia/HandBrake/HandBrake.SlackBuild b/multimedia/HandBrake/HandBrake.SlackBuild new file mode 100644 index 0000000000..a3699279a3 --- /dev/null +++ b/multimedia/HandBrake/HandBrake.SlackBuild @@ -0,0 +1,71 @@ +#!/bin/sh + +# Slackware build script for HandBrakeCLI + +# This slackbuild maintained by Klaatu at klaatu@hackerpublicradio.org +# Modified by David Somero at SlackBuilds.org. + +PRGNAM=HandBrake +VERSION=${VERSION:-0.9.4} +ARCH=${ARCH:-i686} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +# Has to be i686 or x86_64 +if [ "$ARCH" != "x86_64" ]; then + ARCH="i686" +fi + +# We are doing this to prevent HandBrake from downloading these +# files. SBo does not allow scripts/source to download stuff. +DLOADS="a52dec-0.7.4.tar.gz faac-1.28.tar.gz faad2-2.7.tar.gz +ffmpeg-r19067.tar.bz2 lame-3.98.tar.gz libdca-r81-strapped.tar.gz +libdvdnav-svn1168.tar.gz libdvdread-svn1168.tar.gz libmkv-0.6.4.tar.bz2 +libogg-1.1.3.tar.gz libsamplerate-0.1.4.tar.gz libtheora-1.1.0.tar.bz2 +libvorbis-aotuv_b5.tar.gz mp4v2-trunk-r355.tar.bz2 mpeg2dec-0.5.1.tar.gz +x264-r1347-5ddd61b.tar.gz" + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +mkdir download +for file in $DLOADS ; do mv $CWD/$file download ; done +chown -R root:root . +chmod -R a-s,u+w,g-w+r,o-w+r . + +./configure \ + --prefix=/usr\ + --disable-gtk \ + --arch=$ARCH + +cd build + make + install -D -m0755 HandBrakeCLI $PKG/usr/bin/HandBrakeCLI +cd .. + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "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 CREDITS NEWS THANKS $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/multimedia/HandBrake/HandBrake.info b/multimedia/HandBrake/HandBrake.info new file mode 100644 index 0000000000..1e2ff30dfd --- /dev/null +++ b/multimedia/HandBrake/HandBrake.info @@ -0,0 +1,42 @@ +PRGNAM="HandBrake" +VERSION="0.9.4" +HOMEPAGE="http://handbrake.fr/" +DOWNLOAD="http://dl.dropbox.com/u/56460/Handbrake/HandBrake-0.9.4.tar.bz2 + http://download.m0k.org/handbrake/contrib/a52dec-0.7.4.tar.gz + http://download.m0k.org/handbrake/contrib/faac-1.28.tar.gz + http://download.m0k.org/handbrake/contrib/faad2-2.7.tar.gz + http://download.m0k.org/handbrake/contrib/ffmpeg-r19067.tar.bz2 + http://download.m0k.org/handbrake/contrib/lame-3.98.tar.gz + http://download.m0k.org/handbrake/contrib/libdca-r81-strapped.tar.gz + http://download.m0k.org/handbrake/contrib/libdvdnav-svn1168.tar.gz + http://download.m0k.org/handbrake/contrib/libdvdread-svn1168.tar.gz + http://download.m0k.org/handbrake/contrib/libmkv-0.6.4.tar.bz2 + http://download.m0k.org/handbrake/contrib/libogg-1.1.3.tar.gz + http://download.m0k.org/handbrake/contrib/libsamplerate-0.1.4.tar.gz + http://download.m0k.org/handbrake/contrib/libtheora-1.1.0.tar.bz2 + http://download.m0k.org/handbrake/contrib/libvorbis-aotuv_b5.tar.gz + http://download.m0k.org/handbrake/contrib/mp4v2-trunk-r355.tar.bz2 + http://download.m0k.org/handbrake/contrib/mpeg2dec-0.5.1.tar.gz + http://download.handbrake.fr/handbrake/contrib/x264-r1347-5ddd61b.tar.gz" +MD5SUM="69f88b2e602550615da75947f914d7e6 + ce5a978bb359f642dcbd24c6e14a45a7 + 80763728d392c7d789cde25614c878f6 + ee1b4d67ea2d76ee52c5621bc6dbf61e + 4ed27775c4c16590a52ef9609fd6c010 + 7036b52e792538fd665595d56b9e49a0 + 448bab6df6e4f738e4afaa6ebc085d65 + 327c0a3a4304d7c06d75199a75ad4f02 + 39cb0b27cc6b05e4f5c849dececf1f7a + 03cfd2a0594e5cfe0c682992ab0b3319 + e3b881ea94a6d29749a19b024d2974ef + 69ec6c05f487458f688dda8f3e722e5d + d0f83cf7f13e2b3bd068a858ca1398ad + e282d60273dcc8cc6602f65b434f3591 + 38a753e936df5ef4c2f7de3d16f440f6 + a6173dc90cfe7f0414624c3c8bbad727 + b63ba174ca21e06dc82cc393cbfac855" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="klaatu" +EMAIL="klaatu@hackerpublicradio.org" +APPROVED="dsomero" diff --git a/multimedia/HandBrake/README b/multimedia/HandBrake/README new file mode 100644 index 0000000000..a417b12312 --- /dev/null +++ b/multimedia/HandBrake/README @@ -0,0 +1,12 @@ +HandBrake is a DVD ripping application that reads DVDs and outputs to a +variety of video and audio formats, with options for subtitles, alternate +data streams, presets, and control over advanced options like bitrate, +pixel aspect ratio, deinterlacing, and so on. + +The legality of ripping content from commercial DVDs may vary. + +Lacking a GUI, the binary is HandBrakeCLI -- not HandBrake as you might +otherwise expect. To launch this application after installing, type in +"HandBrakeCLI" For the manual, type in "HandBrakeCLI --help" + +This requires yasm. diff --git a/multimedia/HandBrake/slack-desc b/multimedia/HandBrake/slack-desc new file mode 100644 index 0000000000..1453e54f7a --- /dev/null +++ b/multimedia/HandBrake/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------------------------------------------------------| +HandBrake: HandBrake (HandBrakeCLI - a DVD ripper) +HandBrake: +HandBrake: HandBrake is a DVD ripper that reads DVD movies and outputs them +HandBrake: to a variety of video and audio formats, with subtitle options, +HandBrake: options for alternate audio streams, a number of presets, etc. +HandBrake: This is command line only; a GTK GUI can be found on the project +HandBrake: +HandBrake: Homepage: http://www.handbrake.fr +HandBrake: +HandBrake: +HandBrake: |