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
|
|
|
|
2011-04-18 10:52:18 +08:00
|
|
|
# include global config
|
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
|
2010-03-14 23:48:48 +08:00
|
|
|
pkgname=ffmpeg
|
2011-05-10 09:25:04 +08:00
|
|
|
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/"
|
2011-05-04 00:26:21 +08:00
|
|
|
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() {
|
2011-05-10 09:25:04 +08:00
|
|
|
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 \
|
2011-05-10 09:25:04 +08:00
|
|
|
--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 \
|
2011-05-04 00:26:21 +08:00
|
|
|
--enable-libvpx \
|
2011-05-10 09:25:04 +08:00
|
|
|
--enable-libgsm \
|
2011-05-04 00:26:21 +08:00
|
|
|
--disable-debug
|
2010-09-11 06:01:28 +08:00
|
|
|
|
|
|
|
make
|
|
|
|
make tools/qt-faststart
|
|
|
|
make doc/ff{mpeg,play,server}.1
|
2011-03-27 19:00:15 +08:00
|
|
|
}
|
2010-09-11 06:01:28 +08:00
|
|
|
|
2011-05-10 09:25:04 +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:
|