aboutsummaryrefslogtreecommitdiffstats
path: root/main/gst-libav1/APKBUILD
blob: dd62fbf24f4959fc5588bd7d9fbe56306a22cebf (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
52
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-libav1
pkgver=1.6.1
pkgrel=0
pkgdesc="Gstreamer libav Plugin"
url="http://www.gstreamer.net"
arch="x86 x86_64"
license="GPL"
makedepends="
	coreutils
	ffmpeg-dev>=2.7.1-r1
	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-system-libav \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find  "$pkgdir"/usr/lib/ -name '*.a' -delete
}

md5sums="058b22411e1690eee5b71d1ab44eab25  gst-libav-1.6.1.tar.xz"
sha256sums="24d5e8e8b8c825af1a19aa80a27aba268ec383c8133fd4ef66e0e572ff6137a9  gst-libav-1.6.1.tar.xz"
sha512sums="9a484517bc1a2d1b1174b279848c5ab3eb4a07f3f14684bc309a0b0c90a8dc9bd34bb8e0e0e3536992c69a75a0feec7d04cc057d631cd686dcca26d791de9825  gst-libav-1.6.1.tar.xz"