core/ffmpeg/PKGBUILD

71 lines
2.3 KiB
Bash
Raw Normal View History

2015-01-08 07:30:12 +08:00
# Contributor: almack
2014-02-26 12:48:06 +08:00
# Maintainer: Bruce Liu <brli@users.sourceforge.net>
2010-03-14 23:48:48 +08:00
pkgname=ffmpeg
pkgver=2.5.4
2015-01-08 07:30:12 +08:00
pkgrel=1
pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix"
arch=('x86_64')
2014-02-26 12:48:06 +08:00
url="http://ffmpeg.org"
license=('GPL')
depends=('alsa-lib' 'bzip2' 'fontconfig' 'freetype2' 'gnutls' 'harfbuzz' 'gsm' 'lame' 'libass' 'libavc1394'
'libbluray' 'libcaca' 'libdc1394' 'libmodplug' 'libtheora' 'libva' 'libvdpau'
'libvorbis' 'libvpx>=1.1.0' 'libxfixes' 'libxv' 'openal' 'opencore-amr' 'openjpeg'
'opus' 'pulseaudio' 'rtmpdump' 'schroedinger' 'sdl' 'speex' 'v4l-utils' 'xvidcore'
2015-01-08 07:30:12 +08:00
'zlib' 'x264' 'x265')
makedepends=('yasm')
2014-02-26 12:48:06 +08:00
source=("${url}/releases/${pkgname}-${pkgver}.tar.gz"
"${url}/releases/${pkgname}-${pkgver}.tar.gz.asc")
md5sums=('412aa93e254bf3d2fa34eda5499d336a'
2014-02-26 12:48:06 +08:00
'SKIP')
2010-03-14 23:48:48 +08:00
build() {
2012-01-25 08:21:52 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
2010-03-14 23:48:48 +08:00
2012-01-25 08:21:52 +08:00
./configure --prefix=/usr \
2014-01-12 06:27:23 +08:00
--disable-debug \
--disable-static \
--enable-avisynth \
2014-01-12 06:27:23 +08:00
--enable-avresample \
--enable-fontconfig \
--enable-gnutls \
2014-01-12 06:27:23 +08:00
--enable-gpl \
--enable-libass \
2014-01-12 06:27:23 +08:00
--enable-libbluray \
--enable-libfreetype \
2012-05-20 01:54:11 +08:00
--enable-libgsm \
--enable-libmodplug \
2014-01-12 06:27:23 +08:00
--enable-libmp3lame \
2012-01-25 08:21:52 +08:00
--enable-libopencore_amrnb \
--enable-libopencore_amrwb \
--enable-libopenjpeg \
--enable-libopus \
2012-05-20 01:54:11 +08:00
--enable-libpulse \
2014-01-12 06:27:23 +08:00
--enable-librtmp \
--enable-libschroedinger \
2012-01-25 08:21:52 +08:00
--enable-libspeex \
2014-01-12 06:27:23 +08:00
--enable-libtheora \
--enable-libv4l2 \
2014-01-12 06:27:23 +08:00
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
2015-01-08 07:30:12 +08:00
--enable-libx265 \
2014-01-12 06:27:23 +08:00
--enable-libxvid \
--enable-runtime-cpudetect \
--enable-shared \
--enable-swresample \
2014-01-12 06:27:23 +08:00
--enable-vdpau \
--enable-version3 \
--enable-x11grab \
2010-09-11 06:01:28 +08:00
make
make tools/qt-faststart
make doc/ff{mpeg,play,server}.1
}
package() {
2012-01-25 08:21:52 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install install-man
install -D -m755 tools/qt-faststart "${pkgdir}/usr/bin/qt-faststart"
2010-03-14 23:48:48 +08:00
}