39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Template file for 'leptonica'
|
|
pkgname=leptonica
|
|
version=1.72
|
|
revision=2
|
|
build_style=gnu-configure
|
|
makedepends="giflib-devel libpng-devel tiff-devel"
|
|
short_desc="Image processing and analysis library"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="2-clause-BSD"
|
|
homepage="http://leptonica.org/"
|
|
distfiles="http://leptonica.org/source/$pkgname-$version.tar.gz"
|
|
checksum=79d5eadd32658c9fea38700c975d60aa3d088eaa3e307659f004d40834de1f56
|
|
|
|
post_install() {
|
|
vdoc moller52.jpg
|
|
vdoc version-notes.html
|
|
vlicense leptonica-license.txt
|
|
}
|
|
leptonica-devel_package() {
|
|
depends="leptonica>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include/leptonica
|
|
vmove usr/lib/pkgconfig/lept.pc
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vdoc style-guide.txt
|
|
}
|
|
}
|
|
leptonica-examples_package() {
|
|
depends="leptonica>=${version}_${revision}"
|
|
short_desc+=" - library tests and demos"
|
|
pkg_install() {
|
|
vmkdir usr/share/leptonica
|
|
rm -f -r prog/*.{l,}o prog/.deps prog/.libs
|
|
# binaries, example source, images and data
|
|
vcopy prog usr/share/leptonica
|
|
}
|
|
}
|