aboutsummaryrefslogtreecommitdiffstats
path: root/main/gstreamer1/APKBUILD
blob: 93496b6cbb1d512f03891aaab455bd08b7967545 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gstreamer1
pkgver=1.2.0
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="glib-dev libxml2-dev"
makedepends="$depends_dev bison flex gobject-introspection-dev"
source="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$pkgver.tar.xz
	"

_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="250b4bec48b0986103f5aab75e43cef9  gstreamer-1.2.0.tar.xz"
sha256sums="94af5274299f845adf41cc504e0209b269acab7721293f49850fea27b4099463  gstreamer-1.2.0.tar.xz"
sha512sums="e5d7d9a3fb7de88f1be8696a37b8d2de48b5aa0f47b1c04a0924f61c83a7b18450222240f130401d89218fb2ff584c1243547d2bb3c0fdcbd790c9c4d7df2abe  gstreamer-1.2.0.tar.xz"