aboutsummaryrefslogtreecommitdiffstats
path: root/main/gst-plugins-good/APKBUILD
blob: 3e1b977663c482e9a301534ba9b518effc25e2cc (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-plugins-good
pkgver=0.10.31
pkgrel=4
pkgdesc="GStreamer Multimedia Framework Good Plugins"
url="http://gstreamer.freedesktop.org/"
arch="all"
license="LGPL"
subpackages="$pkgname-gnome $pkgname-lang"
depends=
makedepends="gstreamer-dev glib-dev liboil-dev gst-plugins-base-dev
	libsoup-dev flac-dev libogg-dev taglib-dev libjpeg-turbo-dev zlib-dev gconf-dev
	wavpack-dev libavc1394-dev libiec61883-dev libshout-dev libdv-dev
	orc-dev libxext libsm-dev libice-dev libxv-dev"
replaces="gst-plugins-bad"

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

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

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

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	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 \
		--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="24f98a294a2b521e1b29412bdadae2e6  gst-plugins-good-0.10.31.tar.bz2
2a41119f95d623ae7fc960ae12b951de  drop-v4l2_buffer-input.patch"