aboutsummaryrefslogtreecommitdiffstats
path: root/main/gst-plugins-base0.10/APKBUILD
blob: 21629b378b68e59b8d99bdd7d67b951bffd7d26e (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-plugins-base0.10
pkgver=0.10.36
pkgrel=3
pkgdesc="GStreamer Multimedia Framework Base Plugins"
url="http://gstreamer.freedesktop.org/"
arch="all"
license="GPL LGPL"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends=
replaces="gst-plugins-base"
depends_dev="gstreamer0.10-dev"
makedepends="$depends_dev alsa-lib-dev libvorbis-dev liboil-dev
	perl libogg-dev gtk+-dev libtheora-dev libice-dev libsm-dev libxv-dev
	util-linux-dev expat-dev"
source="http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-$pkgver.tar.bz2
	sse.patch"


_builddir="$srcdir"/gst-plugins-base-$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

	local i
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static \
		--disable-experimental \
		--with-default-audiosink=alsasink \
		--with-package-name="GStreamer Base Plugins (Alpine Linux)" \
		--with-package-origin="http://www.alpinelinux.org/" \
		|| return 1
	make || return 1
}

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

md5sums="776c73883e567f67b9c4a2847d8d041a  gst-plugins-base-0.10.36.tar.bz2
54f5edb753e02df1a54e99fbf1fc55ce  sse.patch"
sha256sums="2cd3b0fa8e9b595db8f514ef7c2bdbcd639a0d63d154c00f8c9b609321f49976  gst-plugins-base-0.10.36.tar.bz2
2c509252f103847a85c4a64d1d4519ab521d8f0021400cc7ebcf725fc5584a0d  sse.patch"
sha512sums="881845d3e3cca18028904ac724d529aa3e12b682dba024df1ab6824abcdfaa1c09827809a2df4cb7c3a7908807a3da24b29f29ed6baf85371143c035ce65a1d5  gst-plugins-base-0.10.36.tar.bz2
e910ca3033223d4ffa7af6f89a541b6b0bb2d4d6cf1ca53c49dc00c2b187be9592840c8906a79c54147ecb244a0c3664b75e704c76da14cf7be63a188dad7f12  sse.patch"