aboutsummaryrefslogtreecommitdiffstats
path: root/main/gst-plugins-good/APKBUILD
blob: dca9f1bf881ff780bb906190e94eee5db4f5f3e5 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-plugins-good
pkgver=0.10.28
pkgrel=1
pkgdesc="GStreamer Multimedia Framework Good Plugins"
url="http://gstreamer.freedesktop.org/"
arch="x86"
license="LGPL"
subpackages="$pkgname-dev $pkgname-gnome"
depends=
makedepends="gstreamer-dev glib-dev liboil-dev gst-plugins-base-dev
	libsoup-dev flac-dev libogg-dev taglib-dev jpeg-dev zlib-dev gconf-dev wavpack-dev"
replaces="gst-plugins-bad"

# might consider those:
#libavc1394
#hal
#libiec61883
#libshout
#libdv
#libv4l
#libcaca

source="http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-$pkgver.tar.bz2"

depends_dev="gstreamer-dev gst-plugins-base-dev"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	# fix building with gnu make 3.82
	find -name Makefile.in | xargs sed -i -e "s/^        /\t/" || return 1
}

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

package() {
	cd "$_builddir"

	export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" -name '*.la' -delete
}

gnome() {
	depends="gst-plugins-base-gnome"
	install="$subpkgname.post-install $subpkgname.pre-deinstall $subpkgname.post-upgrade"
	mkdir -p "$subpkgdir"/usr/lib/gstreamer-0.10

	mv "$pkgdir"/etc "$subpkgdir"/etc
	mv "$pkgdir"/usr/lib/gstreamer-0.10/libgstgconfelements.so "$subpkgdir"/usr/lib/gstreamer-0.10/libgstgconfelements.so
}

md5sums="6ef1588921f59d85c44ee2e49a3c97a0  gst-plugins-good-0.10.28.tar.bz2"