aboutsummaryrefslogtreecommitdiffstats
path: root/main/gstreamer1/APKBUILD
blob: ed6f57e9c9a8b6d12fd50733a592cc9969d70f12 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gstreamer1
pkgver=1.10.4
pkgrel=0
pkgdesc="GStreamer Multimedia Framework"
url="http://gstreamer.freedesktop.org/"
arch="all"
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools $pkgname-lang"
depends=
depends_dev="libxml2-dev"
makedepends="$depends_dev bison flex gobject-introspection-dev glib-dev"
source="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$pkgver.tar.xz
	"
builddir="$srcdir"/gstreamer-$pkgver

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-introspection \
		--with-package-name="GStreamer (Alpine Linux)" \
		--with-package-origin="http://alpinelinux.org/" \
		--disable-fatal-warnings \
		--with-ptp-helper-permissions=none \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

tools() {
	pkgdesc="common tools and files for GStreamer streaming media framework"
	# gst-feedback needs this
	depends="pkgconfig"
	mkdir -p "$subpkgdir"/usr/
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

sha512sums="0e7468088d5d8e75b81f9b8349fdee9b774e2bdc2d31ba849a799d86dee5d4a19fa9443d8ee9dc8d9731299a9151657b6c94efc1149214807d0beea8cf42922f  gstreamer-1.10.4.tar.xz"