aboutsummaryrefslogtreecommitdiffstats
path: root/main/gstreamer0.10/APKBUILD
blob: 961473a51903bedd1d430f713e5701af68acb3ac (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
68
69
70
71
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gstreamer0.10
pkgver=0.10.36
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=
replaces="gstreamer"
makedepends="libxml2-dev glib-dev bison flex gettext-dev
	gobject-introspection-dev"
source="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$pkgver.tar.bz2
	gst-bison-3.patch
	"

depends_dev="glib-dev libxml2-dev"
_builddir="$srcdir"/gstreamer-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return  1

	# fix building with gnu make 3.82
	find -name Makefile.in | xargs sed -i -e "s/^        /\t/" || return 1

	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 \
		--disable-docs-build \
		|| return 1
	make || return 1
}

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

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

md5sums="a0cf7d6877f694a1a2ad2b4d1ecb890b  gstreamer-0.10.36.tar.bz2
648baf38c996f36536acfa54f4639839  gst-bison-3.patch"
sha256sums="e556a529e0a8cf1cd0afd0cab2af5488c9524e7c3f409de29b5d82bb41ae7a30  gstreamer-0.10.36.tar.bz2
4639616c88fc0d2f4e3d6b85c117f1b754cae388ab9e3ade80ad1a507d0053c5  gst-bison-3.patch"
sha512sums="f6037bdadbc05122208313ce53d0e29da0381ed8ec67fee7cb39c8aca83fc540d646b65b0790c14c2365d6bd8443ba4008479dcd23a2e34b05536697c7208962  gstreamer-0.10.36.tar.bz2
71d206189c7c6d0492ab154afdf8fa8ea293b966ec71c7a082c32799bbb6a78dcf806f857f6538d9482375e3c7def8bc65f26b55d26003a504638862c4d4c801  gst-bison-3.patch"