aboutsummaryrefslogtreecommitdiffstats
path: root/main/gst-libav/APKBUILD
blob: 3f46bbd17af7d67910bd2f3eba9d9cacc4f18202 (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-libav
pkgver=1.12.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
	gstreamer-dev
	gst-plugins-base-dev
	liboil-dev
	orc-dev"
source="http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-$pkgver.tar.xz"

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
}

sha512sums="330be0f8d76dbb12b1733368b38ef16ce300a89004ebc5250754aee10d7065003502f4fef23f5c6c9f108760064723b9dfb57a909ea923bf4325327f06f17354  gst-libav-1.12.1.tar.xz"