2014-12-11 18:30:36 +00:00
|
|
|
# Template file for 'qhull'
|
2014-12-30 16:50:00 +00:00
|
|
|
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>"
|
2014-12-30 16:50:00 +00:00
|
|
|
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"
|
2014-12-30 16:50:00 +00:00
|
|
|
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() {
|
2014-12-30 16:50:00 +00:00
|
|
|
short_desc+=" - runtime libraries"
|
2014-12-11 18:30:36 +00:00
|
|
|
pkg_install() {
|
2014-12-30 16:50:00 +00:00
|
|
|
vmove usr/lib/*.so.*
|
2014-12-11 18:30:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libqhull-devel_package() {
|
2014-12-30 16:50:00 +00:00
|
|
|
depends="libqhull>=${version}_${revision}"
|
2014-12-11 18:30:36 +00:00
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
2014-12-30 16:50:00 +00:00
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/*.a
|
|
|
|
vmove usr/lib/*.so
|
|
|
|
vmove usr/lib/pkgconfig
|
2014-12-11 18:30:36 +00:00
|
|
|
}
|
|
|
|
}
|