aboutsummaryrefslogtreecommitdiffstats
path: root/main/gst-libav1/APKBUILD
blob: 7a104b20a19763100c6c94c8a4f3496a487a7371 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-libav1
pkgver=1.4.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 -D_XOPEN_SOURCE"
	./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="60811ae08c26fa093a96996582962c75  gst-libav-1.4.0.tar.xz"
sha256sums="c82c7a657863f2e27ac5cba539b0bd0a8114ad6bd4ba33bae777e4dbfab9e380  gst-libav-1.4.0.tar.xz"
sha512sums="4ebc958ec7763b0c1507ef0f30e18183b9d1ace9446a84b8983bad7c7da0d797bc876cb01964415134ff403300ac96c5c2cffaa4d6ef0d83e013133c94175f2f  gst-libav-1.4.0.tar.xz"