void-packages/srcpkgs/CoinMP/template

36 lines
1.1 KiB
Bash
Raw Normal View History

2016-02-28 23:08:05 +00:00
# Template file for 'CoinMP'
pkgname=CoinMP
version=1.8.3
2016-03-07 21:58:11 +00:00
revision=3
2016-02-28 23:08:05 +00:00
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" \;
}
2016-02-28 23:08:05 +00:00
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
2016-02-28 23:08:05 +00:00
}
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
2016-02-28 23:08:05 +00:00
}
}