37 lines
947 B
Bash
37 lines
947 B
Bash
# Template file for 'jbigkit'
|
|
pkgname=jbigkit
|
|
version=2.1
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
short_desc="Data compression library/utilities for bi-level high-resolution images"
|
|
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
|
license="GPL-3"
|
|
homepage="http://www.cl.cam.ac.uk/~mgk25/jbigkit"
|
|
distfiles="http://www.cl.cam.ac.uk/~mgk25/download/jbigkit-$version.tar.gz"
|
|
checksum=de7106b6bfaf495d6865c7dd7ac6ca1381bd12e0d81405ea81e7f2167263d932
|
|
|
|
do_build() {
|
|
make CC=$CC CFLAGS="${CFLAGS} -I${wrksrc}/libjbig ${LDFLAGS}" ${makejobs}
|
|
}
|
|
do_install() {
|
|
# Install pbm tools
|
|
for tool in $(find pbmtools/ -executable -type f); do
|
|
vbin $tool
|
|
done
|
|
# Install man pages
|
|
for manp in pbmtools/*.{1,5}; do
|
|
vman $manp
|
|
done
|
|
}
|
|
|
|
jbigkit-devel_package() {
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
for lib in libjbig/*.a; do
|
|
vinstall $lib 644 usr/lib
|
|
done
|
|
for header in libjbig/*.h; do
|
|
vinstall $header 644 usr/include
|
|
done
|
|
}
|
|
}
|