aboutsummaryrefslogtreecommitdiffstats
path: root/main/gst-libav1/APKBUILD
blob: f9b8e5e1eb057863b4d7d97650c78f3d9300f293 (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
41
42
43
44
45
46
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-libav1
pkgver=1.0.7
pkgrel=0
pkgdesc="Gstreamer libav Plugin"
url="http://www.gstreamer.net"
arch="all"
license="GPL"
makedepends="
	coreutils
	gstreamer1-dev
	gst-plugins-base1-dev
	liboil-dev
	orc-dev"
source="http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-$pkgver.tar.xz"

_builddir="$srcdir"/gst-libav-$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 \
		--enable-orc \
		--with-libav-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' \) -delete
}

md5sums="68e1eb18a58907e21b81d26ce7db056a  gst-libav-1.0.7.tar.xz"
sha256sums="aefa679d14e7a6558673cfbf401b9c01f1903bb52e5dc08332e9001d25a7ba7a  gst-libav-1.0.7.tar.xz"
sha512sums="aefe99e7acab056a3eea6051cd5b22acd660e94503e12b008e67ae6fd92e2b7a121e1d6e15616bf30ea40e28dabc0ba63359293f50bdd9d40a2081017167d1fb  gst-libav-1.0.7.tar.xz"