aboutsummaryrefslogtreecommitdiffstats
path: root/main/gst-libav1/APKBUILD
blob: 4a0d8fd7650d7b65468122e0defde6ff66cbbfb1 (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
47
48
49
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-libav1
pkgver=1.2.0
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 \
		--build=$CBUILD \
		--host=$CHOST \
		--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="382bc5a99d22a4fbf8e971c42bb72c01  gst-libav-1.2.0.tar.xz"
sha256sums="48721eb318ffffdd134edea754d0b65d76b08c8209a8d2c8a42bca1f799f9099  gst-libav-1.2.0.tar.xz"
sha512sums="2d53de52fb6f846752b0e0c90f8ca167397ade5a413755ecbad9876a25046b56850a8d8c1b2783819da0988475bdf91a3ce8709f6f8db2b3e197bc2fb0e37d7a  gst-libav-1.2.0.tar.xz"