openbabel: fix cross compilation with wxWidgets / broken for ARM
This commit is contained in:
parent
966cedf93c
commit
d971221755
1 changed files with 13 additions and 0 deletions
|
@ -14,6 +14,19 @@ homepage="http://openbabel.org"
|
||||||
distfiles="https://github.com/openbabel/openbabel/archive/openbabel-${_ver}.tar.gz"
|
distfiles="https://github.com/openbabel/openbabel/archive/openbabel-${_ver}.tar.gz"
|
||||||
checksum=b210cc952ce1ecab6efaf76708d3bd179c9b0f0d73fe8bd1e0c934df7391a82a
|
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 doesn’t 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() {
|
openbabel-devel_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue