aboutsummaryrefslogtreecommitdiffstats
path: root/community/gst-libav/APKBUILD
blob: c821589b1b0c51c25aa3924abf44df006794f0e7 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-libav
pkgver=1.14.0
pkgrel=0
pkgdesc="Gstreamer libav Plugin"
url="http://www.gstreamer.net"
arch="all !armhf"
license="GPL"
makedepends="
	coreutils
	ffmpeg-dev>=2.7.1-r1
	gstreamer-dev
	gst-plugins-base-dev
	orc-dev"
source="http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-$pkgver.tar.xz"
replaces="gst-libav1"
builddir="$srcdir"/gst-libav-$pkgver

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
}

doc() {
	default_doc
	replaces="${pkgname}1-doc"
}

sha512sums="7c00475d1866e680a1528842d02152059d67ef6838b6837884cc211b742e20b9d16b28d7f671cb8e56ddff42f73a1e039270888ed0c4431649d2d907067042c9  gst-libav-1.14.0.tar.xz"