void-packages/srcpkgs/qhull/template
Alessio Sergi 79351bde34 qhull: add missing pkgconfig file
Add backwards compatibility symlinks to /usr/include/qhull.
Add patch to fix format string security flaw (via Gentoo).
2014-12-30 17:50:00 +01:00

38 lines
1 KiB
Bash

# Template file for 'qhull'
pkgname=qhull
version=2012.1
revision=2
build_style=cmake
hostmakedepends="cmake"
short_desc="Computes volumes, surface areas and approximations to the convex hull"
maintainer="Martin Riese <grauehaare@gmx.de>"
license="BSD"
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
}
libqhull_package() {
short_desc+=" - runtime libraries"
pkg_install() {
vmove usr/lib/*.so.*
}
}
libqhull-devel_package() {
depends="libqhull>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}