aboutsummaryrefslogtreecommitdiffstats
path: root/main/gst-libav1/APKBUILD
blob: 06303b23ce35e3b1c85c792e84cf9afb5c5ca0c6 (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.8.1
pkgrel=0
pkgdesc="Gstreamer libav Plugin"
url="http://www.gstreamer.net"
arch="all !armhf"
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="85f1a047606ca9e08493d7b6b42df462  gst-libav-1.8.1.tar.xz"
sha256sums="44a49108c3531b5ac4f346a2247cd7fbafb0e8ab394394cb6d75a70300b38933  gst-libav-1.8.1.tar.xz"
sha512sums="4c3a65365f9310efa92a9eb73ce1184bacc38d71f06bdd5619c767ae6fb96dfe5913310c05dc8a47b0c9c42e602dc840c4c010a09cf9e260dcf94f5e36a8911c  gst-libav-1.8.1.tar.xz"