# Template file for 'libmatroska'
pkgname=libmatroska
version=1.4.1
revision=5
makedepends="libebml-devel>=1.3.0"
short_desc="Extensible open standard Audio/Video container format"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://dl.matroska.org/downloads/libmatroska/"
license="LGPL-2.1"
distfiles="http://dl.matroska.org/downloads/libmatroska/libmatroska-${version}.tar.bz2"
checksum="086f21873e925679babdabf793c3bb85c353d0cd79423543a3355e08e8a4efb7"

do_build() {
	cd make/linux
	make CC="$CC" CXX="$CXX" LD="$LD" CFLAGS="$CFLAGS" ${makejobs}
}

do_install() {
	cd make/linux
	make prefix=${DESTDIR}/usr install
}

libmatroska-devel_package() {
	depends="libebml-devel libmatroska>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
	}
}
