# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-plugins-base
pkgver=1.12.3
pkgrel=0
pkgdesc="GStreamer Multimedia Framework Base Plugins"
url="https://gstreamer.freedesktop.org/"
arch="all"
license="GPL LGPL"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends=
replaces="gst-plugins-base1"
makedepends="
	alsa-lib-dev
	cdparanoia-dev
	expat-dev
	gtk+3.0-dev
	libice-dev
	libogg-dev
	liboil-dev
	libsm-dev
	libtheora-dev
	libvorbis-dev
	libxv-dev
	orc-dev
	perl
	gobject-introspection-dev
	gstreamer-dev
	glib-dev
	opus-dev
	"
source="https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-$pkgver.tar.xz"
ldpath="/usr/lib/gstreamer-.0"
builddir="$srcdir"/gst-plugins-base-$pkgver

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

package() {
	cd "$builddir"
	make -j1 DESTDIR="$pkgdir" install || return 1
}

doc() {
	default_doc
	replaces="${pkgname}1-doc"
}
sha512sums="d32f71836e25081b00040709a2184da85489e5af90902a0b27b820a478f5805bde93a04cefaeabf36dde53c16ad12f2816777cc195f1e027f19d1883e088e2b2  gst-plugins-base-1.12.3.tar.xz"
