# Description: A software-based implementation of the codec specified in the emerging JPEG-2000 Part1 std
# URL: http://www.ece.uvic.ca/~mdadams/jasper/
# Packager: pierre at nutyx dot org
# Depends on: libjpeg-turbo 

name=jasper
version=1.900.1
release=1

source=(http://www.ece.uvic.ca/~mdadams/$name/software/$name-$version.zip \
	 http://www.linuxfromscratch.org/patches/blfs/svn/jasper-1.900.1-security_fixes-2.patch)

build() {
	cd $name-$version
	patch -Np1 -i ../$name-$version-security_fixes-2.patch
	./configure --prefix=/usr --enable-shared \
	--mandir=/usr/share/man
	make
	make DESTDIR=$PKG install

	install -v -m755 -d $PKG/usr/share/doc/jasper-$version
	install -v -m644 doc/*.pdf $PKG/usr/share/doc/$name-$version
}
