void-packages/srcpkgs/libogdf/template

37 lines
1.0 KiB
Bash

# Template file for 'libogdf'
pkgname=libogdf
version=2018.03.28
revision=1
archs="i686* x86_64*"
wrksrc=OGDF-snapshot
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON -DOGDF_EXTRA_CXX_FLAGS=-Wno-error"
hostmakedepends="unzip python"
makedepends="libClp-devel"
short_desc="Open Graph Drawing Framework"
maintainer="nexolight <snow.dream.ch@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://www.ogdf.net"
distfiles="http://amber-v7.cs.tu-dortmund.de/lib/exe/fetch.php/tech:ogdf-snapshot-${version//./-}.zip"
checksum=347c3fa8dcdbb094f9c43008cbc2934bc5a64a532af4d3fe360a5fa54488440f
nocross="can't find cpuid.h headers"
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="Non optional usage of broken mallinfo" ;;
esac
pre_configure() {
# Fix upstream messing with CXXFLAGS
sed -e 's|-march=native||g' \
-i cmake/compiler-specifics.cmake
}
libogdf-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
}
}