void-packages/srcpkgs/qhull/template

39 lines
1 KiB
Bash
Raw Normal View History

2014-12-11 18:30:36 +00:00
# Template file for 'qhull'
pkgname=qhull
version=2012.1
revision=2
build_style=cmake
hostmakedepends="cmake"
2014-12-11 18:30:36 +00:00
short_desc="Computes volumes, surface areas and approximations to the convex hull"
maintainer="Martin Riese <grauehaare@gmx.de>"
license="BSD"
2014-12-11 18:30:36 +00:00
homepage="http://www.qhull.org"
distfiles="http://www.qhull.org/download/${pkgname}-${version}-src.tgz"
checksum=a35ecaa610550b7f05c3ce373d89c30cf74b059a69880f03080c556daebcff88
post_install() {
install -Dm644 ${FILESDIR}/qhull.pc ${DESTDIR}/usr/lib/pkgconfig/qhull.pc
sed -i "s|@VERSION@|${version}|" ${DESTDIR}/usr/lib/pkgconfig/qhull.pc
# convenience links for backwards compatibility
ln -sf libqhull ${DESTDIR}/usr/include/qhull
ln -sf libqhull.h ${DESTDIR}/usr/include/qhull/qhull.h
}
2014-12-11 18:30:36 +00:00
libqhull_package() {
short_desc+=" - runtime libraries"
2014-12-11 18:30:36 +00:00
pkg_install() {
vmove usr/lib/*.so.*
2014-12-11 18:30:36 +00:00
}
}
libqhull-devel_package() {
depends="libqhull>=${version}_${revision}"
2014-12-11 18:30:36 +00:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
2014-12-11 18:30:36 +00:00
}
}