# Contributor: William Pitcock # Maintainer: pkgname=openjpeg pkgver=1.5.0 pkgrel=1 pkgdesc="Open-source implementation of JPEG2000 image codec" url="http://www.openjpeg.org/" arch="all" license="BSD" depends="" depends_dev="pkgconfig" makedepends="$depends_dev libpng-dev tiff-dev lcms-dev doxygen" install="" subpackages="$pkgname-dev" source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.gz" _builddir="${srcdir}/$pkgname-$pkgver" prepare() { local i mkdir "$_builddir" cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ --disable-static \ --enable-mj2 \ --enable-jpwl \ --enable-jpip \ || return 1 make LDFLAGS="-lm" || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la } md5sums="e5d66193ddfa59a87da1eb08ea86293b openjpeg-1.5.0.tar.gz"