# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=gavl
pkgver=1.4.0
pkgrel=0
pkgdesc="A low level library, upon which multimedia APIs can be built."
url="http://gmerlin.sourceforge.net/"
arch="all"
license="GPL"
depends=""
makedepends="doxygen"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/gmerlin/gavl-$pkgver.tar.gz
	musl-sched_h.patch"
builddir="$srcdir/gavl-$pkgver"

prepare() {
	default_prepare || return 1
	update_config_sub || return 1
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

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

md5sums="2752013a817fbc43ddf13552215ec2c0  gavl-1.4.0.tar.gz
14f09d8039131f72907aee7710897ce7  musl-sched_h.patch"
sha256sums="51aaac41391a915bd9bad07710957424b046410a276e7deaff24a870929d33ce  gavl-1.4.0.tar.gz
f84ea76a161738cb1cbaa09ea6a120aa2d023dd8e061bb99dadb2b70e775baf5  musl-sched_h.patch"
sha512sums="beda0073cab865fdb3a55de5d5c800fabcd40b21c5bb5b5f9d43046db3602d8967fb8b893325fcdaca3fa66d978aa3cae79a4a797d43d40ad50ea5af752a650a  gavl-1.4.0.tar.gz
eb73637c3b9d1ed5376eda689aa48d189d35e3b891259e016dc48af743a6fd46c30ea552707c8b563362cb1bab18c49d4b4098aca2cc6ebf0d271a4c1e9b7d8c  musl-sched_h.patch"
