2010-05-17 15:50:50 +08:00
|
|
|
# $Id: PKGBUILD 79981 2010-05-09 20:37:59Z ibiru $
|
2010-03-14 23:48:48 +08:00
|
|
|
# Maintainer : Ionut Biru <ibiru@archlinux.org>
|
|
|
|
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
|
|
|
|
# Contributor: Paul Mattal <paul@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=ffmpeg
|
2010-05-17 15:50:50 +08:00
|
|
|
pkgver=23065
|
2010-03-14 23:48:48 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://ffmpeg.org/"
|
|
|
|
license=('GPL')
|
2010-05-17 15:50:50 +08:00
|
|
|
depends=('bzip2' 'lame' 'sdl' 'libvorbis' 'faad2>=2.7' 'faac' 'xvidcore' 'zlib' 'x264>=20100410' 'libtheora' 'opencore-amr>=0.1.2' 'alsa-lib' 'libvdpau' 'libxfixes' 'schroedinger>=1.0.9')
|
2010-03-14 23:48:48 +08:00
|
|
|
makedepends=('yasm')
|
|
|
|
options=('force')
|
2010-05-17 15:50:50 +08:00
|
|
|
#remake snapshot with: svn export svn://svn.ffmpeg.org/ffmpeg/trunk/@23065
|
|
|
|
source=(ftp://ftp.archlinux.org/other/ffmpeg/ffmpeg-${pkgver}.tar.xz
|
|
|
|
fix_metadata_mapping_for_author_artist.patch)
|
2010-03-14 23:48:48 +08:00
|
|
|
#source=(http://ffmpeg.org/releases//releases/ffmpeg-${pkgver}.tar.bz2)
|
2010-05-17 15:50:50 +08:00
|
|
|
sha256sums=('aa08e743e04a9ec93741ab2f3701b946cb1fcf35440281cfd52ccddf4c52bd97'
|
|
|
|
'f3b16a781366c9fdfe5cbb4a1b53a29b7af30a50a97ba074935a5d856b3be67b')
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$pkgname" || return 1
|
2010-05-17 15:50:50 +08:00
|
|
|
|
|
|
|
patch -p0 -i "$srcdir/fix_metadata_mapping_for_author_artist.patch" || return 1
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--enable-gpl \
|
|
|
|
--enable-libmp3lame \
|
|
|
|
--enable-libvorbis \
|
|
|
|
--enable-libfaac \
|
|
|
|
--enable-libfaad \
|
|
|
|
--enable-libxvid \
|
|
|
|
--enable-libx264 \
|
|
|
|
--enable-libtheora \
|
|
|
|
--enable-postproc \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-pthreads \
|
|
|
|
--enable-x11grab \
|
|
|
|
--enable-libopencore_amrnb \
|
|
|
|
--enable-libopencore_amrwb \
|
2010-05-17 15:50:50 +08:00
|
|
|
--enable-libschroedinger \
|
2010-03-14 23:48:48 +08:00
|
|
|
--enable-version3 \
|
|
|
|
--enable-nonfree \
|
|
|
|
--enable-runtime-cpudetect || return 1 # libfaac is nonfree
|
|
|
|
|
|
|
|
make || return 1
|
|
|
|
make tools/qt-faststart || return 1
|
|
|
|
make doc/ff{mpeg,play,server}.1 || return 1
|
|
|
|
|
|
|
|
make DESTDIR="$pkgdir" install install-man || return 1
|
|
|
|
install -D -m755 tools/qt-faststart "$pkgdir/usr/bin/qt-faststart" || return 1
|
|
|
|
|
|
|
|
# since makepkg currently declines to strip .a files, do this for now
|
|
|
|
strip --strip-debug "$pkgdir"/usr/lib/*.a || return 1
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|