void-packages/srcpkgs/jasper/template
2016-10-05 07:26:15 +02:00

33 lines
921 B
Bash

# Template build file for 'jasper'.
pkgname=jasper
version=1.900.2
revision=1
build_style=gnu-configure
configure_args="--enable-shared --disable-static --without-x --disable-opengl"
hostmakedepends="unzip"
makedepends="libjpeg-turbo-devel"
short_desc="Software-based reference implementation of the JPEG-2000 codec"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.ece.uvic.ca/~mdadams/jasper"
license="JasPer-2.0"
distfiles="http://www.ece.uvic.ca/~frodo/jasper/software/jasper-${version}.tar.gz"
checksum=2a31a38e8f2c84e8e2d011833d5a71a4334a90d63739a17aa342cb81a15c712e
post_install() {
vlicense LICENSE
}
libjasper_package() {
short_desc+=" - shared library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
jasper-devel_package() {
depends="libjpeg-turbo-devel libjasper>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}