41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# Template file for 'leptonica'
|
|
pkgname=leptonica
|
|
version=1.80.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libopenjpeg2-devel libwebp-devel"
|
|
short_desc="Image processing and analysis library"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="BSD-2-Clause"
|
|
homepage="http://leptonica.org/"
|
|
distfiles="http://leptonica.org/source/${pkgname}-${version}.tar.gz"
|
|
checksum=ec9c46c2aefbb960fb6a6b7f800fe39de48343437b6ce08e30a8d9688ed14ba4
|
|
|
|
post_install() {
|
|
vdoc moller52.jpg
|
|
vdoc version-notes.html
|
|
vlicense leptonica-license.txt
|
|
}
|
|
|
|
leptonica-devel_package() {
|
|
depends="leptonica>=${version}_${revision} ${makedepends}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include/leptonica
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/pkgconfig
|
|
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
|
|
}
|
|
}
|