aboutsummaryrefslogtreecommitdiffstats
path: root/main/ffmpeg/APKBUILD
blob: fcad6fe1b39bb282b3ca73bb6835c911f6af1534 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ffmpeg
pkgver=0.5
pkgrel=0
pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix"
url="http://ffmpeg.mplayerhq.hu/"
license="GPL"
subpackages="$pkgname-dev $pkgname-doc"
makedepends="lame-dev libvorbis-dev faad2-dev faac-dev xvidcore-dev zlib-dev
	imlib2-dev x264-dev libtheora-dev coreutils bzip2-dev perl"
depends=""
source="http://$pkgname.mplayerhq.hu/releases/$pkgname-$pkgver.tar.bz2
	pic.patch"

build ()
{
	cd "$srcdir/$pkgname-$pkgver" || return 1
	patch -p1 < ../pic.patch || return 1

	./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 \
		--disable-mmx \
		--disable-mmx2 \
		--disable-stripping \
		--enable-swscale || return 1
	make || return 1
	make tools/qt-faststart || return 1
	make doc/ffmpeg.1 doc/ffplay.1 doc/ffserver.1 || return 1
	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
}
md5sums="be8503f15c3b81ba00eb8379ca8dcf33  ffmpeg-0.5.tar.bz2
3c5d446db8d512a3bca5f5a860bbcc04  pic.patch"