void-packages/srcpkgs/CoinMP/template

36 lines
1.1 KiB
Bash

# Template file for 'CoinMP'
pkgname=CoinMP
version=1.8.3
revision=4
build_style=gnu-configure
hostmakedepends="doxygen graphviz pkg-config"
short_desc="Library that supports most of Coin CLP, CBC and CGL"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-3"
homepage="https://projects.coin-or.org/CoinMP"
distfiles="http://www.coin-or.org/download/source/${pkgname}/${pkgname}-${version}.tgz"
checksum=a1a665db36c7fd69c1e53fffbd108cae1bf22f08acf81c394cd454b8168f22f7
post_configure() {
# remove erroneous cross base prefix from include paths
find -name Makefile -exec sed -i "{}" -e "s;-I${XBPS_CROSS_BASE};-I;g" \;
}
post_install() {
# move wrong ${DESTDIR}/${DESTDIR}/usr/share/coin/doc/CoinMP
vmkdir usr/share/coin/doc/CoinMP
mv ${DESTDIR}/${DESTDIR}/usr/share/coin/doc/CoinMP/* \
${DESTDIR}/usr/share/coin/doc/CoinMP
}
CoinMP-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
vmove usr/share/coin/doc
}
}