void-packages/srcpkgs/openbabel/template

39 lines
1.1 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Template file for 'openbabel'
pkgname=openbabel
version=2.4.0
revision=2
_ver=${version//./-}
wrksrc=${pkgname}-${pkgname}-${_ver}
build_style=cmake
hostmakedepends="pkg-config eigen"
makedepends="cairo-devel libxml2-devel wxWidgets-devel"
short_desc="The Open Source Chemistry Toolbox"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="GPL-2"
homepage="http://openbabel.org"
distfiles="https://github.com/openbabel/openbabel/archive/openbabel-${_ver}.tar.gz"
checksum=b210cc952ce1ecab6efaf76708d3bd179c9b0f0d73fe8bd1e0c934df7391a82a
case $XBPS_TARGET_MACHINE in
arm*|aarch64*) broken="error: narrowing conversion of '-16' from 'int' to 'char' inside { }";;
esac
if [ -n "${CROSS_BUILD}" ]; then
hostmakedepends+=" python"
pre_configure() {
# cmake doesnt find/use the wx-config wrapper
sed -i -e "1i\set(wxWidgets_CONFIG_OPTIONS --prefix=${XBPS_CROSS_BASE}/usr)" CMakeLists.txt
}
fi
openbabel-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
}
}