aboutsummaryrefslogtreecommitdiffstats
path: root/main/gst-libav1/APKBUILD
blob: f4abe8769b601c623a654259040343f252368198 (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
50
51
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-libav1
pkgver=1.5.2
pkgrel=0
pkgdesc="Gstreamer libav Plugin"
url="http://www.gstreamer.net"
arch="x86 x86_64"
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 -D_XOPEN_SOURCE"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-orc \
		--disable-fatal-warnings \
		--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="cca866c6f9a39faaa7e939e4d3992b48  gst-libav-1.5.2.tar.xz"
sha256sums="1f08336ca0def537cffdc16977fcc437e75719a48a7548ab9914a9f6b7b8bea5  gst-libav-1.5.2.tar.xz"
sha512sums="3c9503e706829b9c4cd56f24e3016801becd0d58d0bf3c9ef0425af8b4a98e70e67506ba2d894aaa7910d392b3bb835e0648a0acb2d3b2180539f9266bcff6fc  gst-libav-1.5.2.tar.xz"