### this file is sourced not run
PKGVER=1.5.2
PKGBUILD=1
PKGARCH=i686

# source: post BLFS 7.8 2016-01-06
TARBALL=openjpeg-1.5.1.tar.gz
MD5SUM=b5f74cec2688fb918331bb014061be6f 
SRC_URL=http://openjpeg.googlecode.com/files/$TARBALL
BUNDLE=

SLACKREQ='libpng32 libtiff32 lcms2_32'
SLACKDESC="libopenjpeg32: libopenjpeg32 $PKGVER (JPEG-2000 library)  
libopenjpeg32:  
libopenjpeg32: OpenJPEG is an open-source implementation of the JPEG-2000 
libopenjpeg32: standard. OpenJPEG fully respects the JPEG-2000 specifications 
libopenjpeg32: and can compress/decompress lossless 16-bit images.  
libopenjpeg32: 
libopenjpeg32: This contains 32-bit version of the library.
libopenjpeg32: 
libopenjpeg32: 
libopenjpeg32: 
libopenjpeg32: 
"

### default pkg_download
### default pkg_prepare
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share etc
}

### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --disable-static"
	export LCMS2_LIBS="-L/usr/lib -llcms2"
	pkg_build_autoconf && pkg_build_slackdesc
}


