summaryrefslogtreecommitdiffstats
path: root/main/gstreamer/APKBUILD
blob: 1d7d1f46f2b631c355985a017e97b0e56f35af6e (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gstreamer
pkgver=0.10.36
pkgrel=2
pkgdesc="GStreamer Multimedia Framework"
url="http://gstreamer.freedesktop.org/"
arch="all"
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools $pkgname-lang"
depends=
makedepends="pkgconfig libxml2-dev glib-dev bison flex gettext-dev libiconv-dev
	gobject-introspection-dev"
source="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$pkgver.tar.bz2
	"

depends_dev="glib-dev libxml2-dev"
_builddir="$srcdir"/gstreamer-$pkgver
prepare() {
	cd "$_builddir"
	# 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 --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/*.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="a0cf7d6877f694a1a2ad2b4d1ecb890b  gstreamer-0.10.36.tar.bz2"