# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=libdv pkgver=1.0.0 pkgrel=3 pkgdesc="Software decoder for DV format video" url="http://libdv.sourceforge.net/" arch="all" license="LGPLv2+" depends= makedepends="gtk+-dev libxv-dev sdl-dev autoconf automake libtool" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" source="http://downloads.sourceforge.net/libdv/libdv-$pkgver.tar.gz libdv-0.104-no-exec-stack.patch libdv-1.0.0-dso-linking.patch libdv-1.0.0-pic.patch libdv-1.0.0-gtk2.patch automake.patch " _builddir="$srcdir"/libdv-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done rm -f missing libtoolize --force && aclocal && autoconf && automake --add-missing } build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --with-pic \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la } tools() { pkgdesc="Basic tools to manipulate Digital Video streams" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } md5sums="f895162161cfa4bb4a94c070a7caa6c7 libdv-1.0.0.tar.gz e1cf9483fe9efdab5e2326fccbdb7ed5 libdv-0.104-no-exec-stack.patch 9e3a12489495e01ad0ddf5a3ea2cef7f libdv-1.0.0-dso-linking.patch 4fb792fd927a7abbc0e2ab9a8e96df53 libdv-1.0.0-pic.patch 0498e719e3ed660a97b889b0502a4cb8 libdv-1.0.0-gtk2.patch 435221ff530f32c013a43c473e34b66e automake.patch"