mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-11 19:02:42 +01:00
86 lines
2.8 KiB
Plaintext
86 lines
2.8 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=ffmpeg
|
|
pkgver=1.2.2
|
|
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 $pkgname-libs"
|
|
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 libxfixes-dev libva-dev alsa-lib-dev rtmpdump-dev
|
|
v4l-utils-dev yasm"
|
|
depends=
|
|
source="http://ffmpeg.org/releases/ffmpeg-$pkgver.tar.bz2
|
|
configure-dlvsym.patch
|
|
fix-libv4l2-errors.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"
|
|
local _asm=""
|
|
[ -n "$DEBUG" ] && _dbg="--enable-debug"
|
|
[ "$CARCH" = "x86" ] && _asm="--disable-asm"
|
|
cd "$_builddir"
|
|
./configure \
|
|
--prefix=/usr \
|
|
--enable-gpl \
|
|
--enable-libmp3lame \
|
|
--enable-librtmp \
|
|
--enable-libvorbis \
|
|
--enable-libfaac \
|
|
--enable-libvpx \
|
|
--enable-libxvid \
|
|
--enable-libx264 \
|
|
--enable-libtheora \
|
|
--enable-libv4l2 \
|
|
--enable-nonfree \
|
|
--enable-postproc \
|
|
--enable-pic \
|
|
--enable-pthreads \
|
|
--enable-shared \
|
|
--enable-x11grab \
|
|
--disable-stripping \
|
|
--disable-static \
|
|
--enable-vaapi \
|
|
$_asm $_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
|
|
}
|
|
|
|
libs() {
|
|
pkgdesc="Libraries for ffmpeg"
|
|
replaces="ffmpeg"
|
|
mkdir -p "$subpkgdir"/usr
|
|
mv "$pkgdir"/usr/lib "$subpkgdir"/usr
|
|
}
|
|
|
|
md5sums="4997660dfc077922e37d0583f9322f6b ffmpeg-1.2.2.tar.bz2
|
|
2cdc11a99bf97c63c7cca27b073cb47c configure-dlvsym.patch
|
|
2b6897f352583ee8efdc0c09ef27a30f fix-libv4l2-errors.patch"
|
|
sha256sums="1cb29ec4951f5941ea43638ea1e3042e3d3215992bda03f45628e8c49cb21064 ffmpeg-1.2.2.tar.bz2
|
|
0854db61ec784935d77516ba9a467ba61e118f951149c07acb6887a6b417ac55 configure-dlvsym.patch
|
|
872236e91e393b62a1a9d7aebdf0c417314f874a67cef55ad37b39ee57cf9edb fix-libv4l2-errors.patch"
|
|
sha512sums="555a9fee6c5017602396362a7d073d444ef7539f020a2437d9fa7849310a4956e716fd60a956e1074e6f57fd260bb00cd1c8178bcd4052a3bad0117c1683e8cf ffmpeg-1.2.2.tar.bz2
|
|
635c80ca801577439bd1cf8470fb760755c243e59adc8b4d9b8412f24e2dc336802afddde09f3d59443e29d92123d0308482be8ad32ab0f265c960315632636f configure-dlvsym.patch
|
|
56bba30f200c748d47d60d2b18147522dbceec7e8c97f434d3dbfa239547113a3e9d3b280e22816adeafa994b22eefac4b968448afef1a07aa1c46d3ec359e68 fix-libv4l2-errors.patch"
|