aboutsummaryrefslogtreecommitdiffstats
path: root/main/gstreamer/APKBUILD
blob: 46b51c6c9a385f49be2e155bcae20bd8921aec75 (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=gstreamer
pkgver=1.12.2
pkgrel=0
pkgdesc="GStreamer Multimedia Framework"
url="http://gstreamer.freedesktop.org/"
arch="all"
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools $pkgname-lang"
replaces="gstreamer1"
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
	make
}

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

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/
}

doc() {
	default_doc
	replaces="${pkgname}1-doc"
}
sha512sums="5d992a3727dc53478fd895d3c88ebdafcb6d5d0191a5ec8098ac5fe821e4f3c83451b4b1b089f08db0ed2475a97d3f1fcd1282581bcd106cf655914463891a5e  gstreamer-1.12.2.tar.xz"