summaryrefslogtreecommitdiffstats
path: root/main/gstreamer1/APKBUILD
blob: 15cd93fd1aef5bfc1d684792bf76d799af846067 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gstreamer1
pkgver=1.0.9
pkgrel=1
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="glib-dev libxml2-dev"
makedepends="$depends_dev bison flex gobject-introspection-dev"
source="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$pkgver.tar.xz
	gst-bison-3.patch
	"

_builddir="$srcdir"/gstreamer-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case "$i" in
		*.patch)
			msg "Applying $i"
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
}

build() {
	cd "$srcdir"/gstreamer-$pkgver
	./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/" \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/gstreamer-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/usr/lib/*.a \
		"$pkgdir"/usr/lib/gstreamer*/*.la \
		"$pkgdir"/usr/lib/gstreamer*/*.a
}

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

md5sums="cbbad73d703b811bc8bd18e47b36e534  gstreamer-1.0.9.tar.xz
648baf38c996f36536acfa54f4639839  gst-bison-3.patch"
sha256sums="17a2c60a82baa461ef685ad3de187edb9c03a2c7e07513daba58a5a32efacaa3  gstreamer-1.0.9.tar.xz
4639616c88fc0d2f4e3d6b85c117f1b754cae388ab9e3ade80ad1a507d0053c5  gst-bison-3.patch"
sha512sums="22d1f8790b05fd445b7bdfdc48e1e634a0591db481cf4ab9b1aed33fc0fece5fddd3f4e7e263cf98dae77aaaa9ec93cdf1fd2ef7f3ee65c80d476229155a0533  gstreamer-1.0.9.tar.xz
71d206189c7c6d0492ab154afdf8fa8ea293b966ec71c7a082c32799bbb6a78dcf806f857f6538d9482375e3c7def8bc65f26b55d26003a504638862c4d4c801  gst-bison-3.patch"