summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2013-10-13 09:13:32 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-17 09:40:16 +0700
commitf8ee31a8e17111824e97aec6155674c2a65b0322 (patch)
treedcd02dfbd57b79895baf472f2106eb94bee55b51
parentf1dee00d85ed7933732ad87d6c875ca6544ed627 (diff)
downloadslackbuilds-f8ee31a8e17111824e97aec6155674c2a65b0322.tar.gz
multimedia/ffmpeg010: Added (ffmpeg 0.10.x branch).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--multimedia/ffmpeg010/README33
-rw-r--r--multimedia/ffmpeg010/ffmpeg010.SlackBuild173
-rw-r--r--multimedia/ffmpeg010/ffmpeg010.info10
-rw-r--r--multimedia/ffmpeg010/slack-desc19
4 files changed, 235 insertions, 0 deletions
diff --git a/multimedia/ffmpeg010/README b/multimedia/ffmpeg010/README
new file mode 100644
index 0000000000..b7ffab79ac
--- /dev/null
+++ b/multimedia/ffmpeg010/README
@@ -0,0 +1,33 @@
+FFmpeg is a complete solution to record, convert and stream audio
+and video. It includes libavcodec, the leading audio/video codec
+library.
+
+You can enable a lot of optional (not-autodetected) features by
+passing variables to the script (VAR=yes/no ./ffmpeg.SlackBuild):
+ASS=yes|no (default: no), requires libass
+BLURAY=yes|no (default: no), requires libbluray
+CELT=yes|no (default: no), requires celt
+DC1394=yes|no (default: no), requires libdc1394
+FAAC=yes|no (default: no), requires faac (creates non-redistributable binary)
+FREI0R=yes|no (default: no), requires frei0r
+GSM=yes|no (default: no), requires gsm
+JP2=yes|no (default: no), requires openjpeg
+LAME=yes|no (default: yes), requires lame
+OPENAL=yes|no (default: no), requires OpenAL
+OPENCORE=yes|no (default: no), requires opencore-amr
+OPENSSL=yes|no (default: no), creates non-redistributable binary
+RTMP=yes|no (default: no), requires rtmpdump
+SCHROEDINGER=yes|no (default: no), requires schroedinger
+SPEEX=yes|no (default: no), requires speex
+VPX=yes|no (default: no), requires libvpx
+X264=yes|no (default: yes), requires x264
+XVID=yes|no (default: no), requires xvidcore
+
+Make sure to run this script in a real root shell ("su -") and that you
+have either tetex or texlive installed.
+
+All of the mentioned requirements are available from SlackBuilds.org
+
+This is the 0.10.x branch, still needed by some software: you
+can't use the resulting package for software that needs ffmpeg,
+as this installs stuff in non-standard locations.
diff --git a/multimedia/ffmpeg010/ffmpeg010.SlackBuild b/multimedia/ffmpeg010/ffmpeg010.SlackBuild
new file mode 100644
index 0000000000..f0cf50dc1b
--- /dev/null
+++ b/multimedia/ffmpeg010/ffmpeg010.SlackBuild
@@ -0,0 +1,173 @@
+#!/bin/sh
+
+# Slackware build script for ffmpeg, 0.10.x branch
+
+# Written by core (eroc@linuxmail.org)
+# Modified by Robby Workman <rworkman@slackbuilds.org>
+# Modified by Heinz Wiesinger <pprkut@liwjatan.org>
+# Modified by Matteo Bernardini <ponce@slackbuilds.org>
+
+PRGNAM=ffmpeg010
+SRCNAM=ffmpeg
+VERSION=${VERSION:-0.10.9}
+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
+
+# environment sanity checks
+TEXI2HTML=$(which texi2html 2>/dev/null)
+
+if [ "$TEXI2HTML" = "" ]; then
+ echo "Could not find texi2html! Please make sure to have tetex or texlive installed"
+ echo "and that texi2html is in PATH."
+ exit 1
+fi
+
+# --enable-runtime-cpu is meant for libswscale only and
+# has no influence on the other parts of ffmpeg so there's
+# not really a point in bothering
+PKGARCH=$(uname -m)_custom
+
+# Configure ffmpeg features not autodetected by default
+# Unfortunately ffmpeg's configure doesn't support --enable-feature=yes
+# syntax, so we have to do it the complicated way :/
+
+libcelt="" ; [ "${CELT:-no}" != "no" ] && libcelt="--enable-libcelt"
+libdc1394="" ; [ "${DC1394:-no}" != "no" ] && libdc1394="--enable-libdc1394"
+libfrei0r="" ; [ "${FREI0R:-no}" != "no" ] && libfrei0r="--enable-frei0r"
+libgsm="" ; [ "${GSM:-no}" != "no" ] && libgsm="--enable-libgsm"
+librtmp="" ; [ "${RTMP:-no}" != "no" ] && librtmp="--enable-librtmp"
+dirac_fast="" ; [ "${SCHROEDINGER:-no}" != "no" ] && dirac_fast="--enable-libschroedinger"
+libspeex="" ; [ "${SPEEX:-no}" != "no" ] && libspeex="--enable-libspeex"
+libvpx="" ; [ "${VPX:-no}" != "no" ] && libvpx="--enable-libvpx"
+libxvid="" ; [ "${XVID:-no}" != "no" ] && libxvid="--enable-libxvid"
+libbluray="" ; [ "${BLURAY:-no}" != "no" ] && libbluray="--enable-libbluray"
+libass="" ; [ "${ASS:-no}" != "no" ] && libass="--enable-libass"
+libopenal="" ; [ "${OPENAL:-no}" != "no" ] && libopenal="--enable-openal"
+
+opencore_amr="" ; [ "${OPENCORE:-no}" != "no" ] && \
+ opencore_amr="--enable-libopencore-amrnb --enable-libopencore-amrwb"
+libfaac="" ; [ "${FAAC:-no}" != "no" ] && \
+ { libfaac="--enable-libfaac" ; non_free="--enable-nonfree" ; }
+ssl="" ; [ "${OPENSSL:-no}" != "no" ] && \
+ { ssl="--enable-openssl" ; non_free="--enable-nonfree" ; }
+openjpeg="" ; [ "${JP2:-no}" != "no" ] && \
+ { openjpeg="--enable-libopenjpeg" ; \
+ SLKCFLAGS="$SLKCFLAGS -I/usr/include/openjpeg-1.5" ; }
+
+mp3lame="--enable-libmp3lame" ; [ "${LAME:-yes}" != "yes" ] && mp3lame=""
+libx264="--enable-libx264" ; [ "${X264:-yes}" != "yes" ] && libx264=""
+
+# opencv support is currently broken: http://code.opencv.org/issues/1925
+#libopencv="" ; [ "${OPENCV:-no}" != "no" ] && libopencv="--enable-libopencv"
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.?z*
+cd $SRCNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --incdir=/usr/include/$PRGNAM \
+ --libdir=/usr/lib${LIBDIRSUFFIX}/$PRGNAM \
+ --shlibdir=/usr/lib${LIBDIRSUFFIX}/$PRGNAM \
+ --datadir=/usr/share/$PRGNAM \
+ --progs-suffix=010 \
+ --mandir=/usr/man \
+ --disable-debug \
+ --enable-shared \
+ --disable-static \
+ --enable-pthreads \
+ --enable-libtheora \
+ --enable-libvorbis \
+ --enable-gpl \
+ --enable-version3 \
+ --enable-postproc \
+ --enable-swscale \
+ --enable-x11grab \
+ --enable-avfilter \
+ --enable-gnutls \
+ --enable-libcdio \
+ --arch=$ARCH \
+ $openjpeg \
+ $libdc1394 \
+ $mp3lame \
+ $libfaac \
+ $libxvid \
+ $libx264 \
+ $libspeex \
+ $dirac_fast \
+ $non_free \
+ $libgsm \
+ $libvpx \
+ $librtmp \
+ $opencore_amr \
+ $libfrei0r \
+ $libcelt \
+ $libbluray \
+ $libass \
+ $libopenal \
+ $ssl
+
+make
+make install DESTDIR=$PKG
+make install-man DESTDIR=$PKG
+
+mv $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/pkgconfig $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig
+( cd $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig
+ for i in avfilter avcodec swresample avutil avdevice postproc avformat swscale; do
+ mv lib${i}.pc lib${i}010.pc
+ done )
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \
+ grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+( cd $PKG/usr/man/man1
+ for i in play mpeg server probe; do mv ff${i}.1 ff${i}010.1; done )
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a Changelog COPYING* CREDITS INSTALL LICENSE MAINTAINERS README RELEASE \
+ VERSION doc/RELEASE_NOTES doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a doc/*.html $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-$PKGARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/multimedia/ffmpeg010/ffmpeg010.info b/multimedia/ffmpeg010/ffmpeg010.info
new file mode 100644
index 0000000000..76df8a9cd8
--- /dev/null
+++ b/multimedia/ffmpeg010/ffmpeg010.info
@@ -0,0 +1,10 @@
+PRGNAM="ffmpeg010"
+VERSION="0.10.9"
+HOMEPAGE="http://www.ffmpeg.org"
+DOWNLOAD="http://ffmpeg.org/releases/ffmpeg-0.10.9.tar.bz2"
+MD5SUM="6d2bf390f21dd26c2dd972e62082250a"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="%README% lame x264"
+MAINTAINER="Matteo Bernardini"
+EMAIL="ponce@slackbuilds.org"
diff --git a/multimedia/ffmpeg010/slack-desc b/multimedia/ffmpeg010/slack-desc
new file mode 100644
index 0000000000..ab67c7494a
--- /dev/null
+++ b/multimedia/ffmpeg010/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------------------------------------------------------|
+ffmpeg010: FFmpeg (Software to record, convert and stream audio and video)
+ffmpeg010:
+ffmpeg010: FFmpeg is a complete solution to record, convert and stream audio
+ffmpeg010: and video. It includes libavcodec, the leading audio/video codec
+ffmpeg010: library. FFmpeg is developed under Linux, but it can compiled
+ffmpeg010: under most operating systems, including Windows.
+ffmpeg010: This is the 0.11.x branch, still needed by some software.
+ffmpeg010:
+ffmpeg010: Homepage: http://ffmpeg.org
+ffmpeg010:
+ffmpeg010: