core/ffmpeg/PKGBUILD

78 lines
2.0 KiB
Bash
Raw Normal View History

2010-09-11 06:01:28 +08:00
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
2010-03-14 23:48:48 +08:00
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
2010-03-14 23:48:48 +08:00
pkgname=ffmpeg
pkgver=0.6.3
pkgrel=1
pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix."
2010-03-14 23:48:48 +08:00
arch=('i686' 'x86_64')
url="http://ffmpeg.org/"
license=('GPL3')
depends=('bzip2' 'lame' 'sdl' 'libvorbis' 'xvidcore' 'zlib' 'x264' 'libtheora' 'opencore-amr' 'alsa-lib' 'libvdpau' 'libxfixes' 'schroedinger' 'libva>=1.0.7' 'openjpeg' 'libvpx')
2010-03-14 23:48:48 +08:00
makedepends=('yasm')
options=('force')
build() {
cd "${srcdir}"
msg "Connecting to GIT server...."
if [ -d "${pkgname}" ] ; then
cd "${pkgname}" && git pull origin
msg "The local files are updated."
else
# Fetch the required tag from Git
git clone --no-checkout git://git.videolan.org/ffmpeg.git
cd "${pkgname}"
git checkout -q "${pkgname}-${pkgver}"
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "${srcdir}/${pkgname}-build"
git clone "${srcdir}/${pkgname}" "${srcdir}/${pkgname}-build"
cd "${srcdir}/${pkgname}-build"
2010-03-14 23:48:48 +08:00
./configure \
2010-09-11 06:01:28 +08:00
--prefix=/usr \
--enable-gpl \
--enable-version3 \
2010-09-11 06:01:28 +08:00
--enable-libmp3lame \
--enable-libvorbis \
--enable-libxvid \
--enable-libx264 \
--enable-libtheora \
--enable-postproc \
--enable-shared \
--enable-pthreads \
--enable-x11grab \
--enable-libopencore_amrnb \
--enable-libopencore_amrwb \
--enable-libschroedinger \
--enable-libopenjpeg \
--enable-runtime-cpudetect \
--enable-libvpx \
--enable-libgsm \
--disable-debug
2010-09-11 06:01:28 +08:00
make
make tools/qt-faststart
make doc/ff{mpeg,play,server}.1
}
2010-09-11 06:01:28 +08:00
package() {
cd "${srcdir}/${pkgname}-build"
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
}
# vim:set ts=2 sw=2 et: