summaryrefslogtreecommitdiffstats
path: root/main/gst-ffmpeg/APKBUILD
blob: 090b036855b57cfb226f1f8d0f12bce6db4d70d7 (plain)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-ffmpeg
pkgver=0.10.11
pkgrel=3
pkgdesc="Gstreamer FFMpeg Plugin"
url="http://www.gstreamer.net"
arch="all"
license="GPL"
makedepends="gstreamer-dev gst-plugins-base-dev liboil-dev coreutils orc-dev"
source="http://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-$pkgver.tar.bz2
	pic.patch"

_builddir="$srcdir"/gst-ffmpeg-$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() {
	cd "$_builddir"
	export CFLAGS="$CFLAGS -fno-strict-aliasing"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--with-ffmpeg-extra-configure="--enable-pic --disable-mmx --disable-mmx2" || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find  "$pkgdir"/usr/lib/ -name '*.la' -o -name '*.a' \
		| xargs rm -f
}

md5sums="0d23197ba7ac06ea34fa66d38469ebe5  gst-ffmpeg-0.10.11.tar.bz2
154fa474ee135ff709bc76a761477da4  pic.patch"