diff options
Diffstat (limited to 'main/ffmpeg/APKBUILD')
-rw-r--r-- | main/ffmpeg/APKBUILD | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/main/ffmpeg/APKBUILD b/main/ffmpeg/APKBUILD new file mode 100644 index 000000000..5e5cb410f --- /dev/null +++ b/main/ffmpeg/APKBUILD @@ -0,0 +1,63 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=ffmpeg +pkgver=0.8 +pkgrel=0 +pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix" +url="http://ffmpeg.org/" +arch="all" +license="GPL" +subpackages="$pkgname-dev $pkgname-doc" +makedepends="lame-dev libvorbis-dev faac-dev xvidcore-dev zlib-dev + imlib2-dev x264-dev libtheora-dev coreutils bzip2-dev perl libvpx-dev + libvpx-dev sdl-dev" +depends= +source="http://ffmpeg.org/releases/ffmpeg-$pkgver.tar.bz2 + configure-dlvsym.patch" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + local _dbg="--disable-debug" + [ -n "$DEBUG" ] && _dbg="--enable-debug" + cd "$_builddir" + ./configure --prefix=/usr \ + --enable-gpl \ + --enable-libmp3lame \ + --enable-libvorbis \ + --enable-libfaac \ + --enable-libvpx \ + --enable-libxvid \ + --enable-libx264 \ + --enable-libtheora \ + --enable-nonfree \ + --enable-postproc \ + --enable-pic \ + --enable-pthreads \ + --enable-shared \ + --enable-x11grab \ + --disable-mmx \ + --disable-mmx2 \ + --disable-stripping \ + $_dbg \ + || return 1 + make || return 1 + ${CC:-gcc} -o tools/qt-faststart $CFLAGS tools/qt-faststart.c || return 1 + make doc/ffmpeg.1 doc/ffplay.1 doc/ffserver.1 || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install install-man || return 1 + install -D -m755 tools/qt-faststart "$pkgdir/usr/bin/qt-faststart" || return 1 +# strip --strip-debug "$pkgdir"/usr/lib/*.a || return 1 +} +md5sums="7e9b8c8a6952de0c477027e48249f3ed ffmpeg-0.8.tar.bz2 +2cdc11a99bf97c63c7cca27b073cb47c configure-dlvsym.patch" |