golly: fix cross compilation with wxWidgets

This commit is contained in:
newbluemoon 2017-11-11 23:07:30 +01:00 committed by Jürgen Buchmüller
parent 92129ba22a
commit 90715ad5ec

View file

@ -5,7 +5,7 @@ revision=2
wrksrc="${pkgname}-${version}-src" wrksrc="${pkgname}-${version}-src"
build_style=gnu-configure build_style=gnu-configure
configure_script="gui-wx/configure/configure" configure_script="gui-wx/configure/configure"
configure_args="--with-wx-config=wx-config-3.0 LIBS=-lGL" configure_args="LIBS=-lGL"
hostmakedepends="automake" hostmakedepends="automake"
makedepends="MesaLib-devel glu-devel lua-devel python-devel wxWidgets-devel makedepends="MesaLib-devel glu-devel lua-devel python-devel wxWidgets-devel
zlib-devel" zlib-devel"
@ -16,8 +16,19 @@ homepage="http://golly.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-src.tar.gz" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-src.tar.gz"
checksum=c78951aca815d2897d966681d8999311676c3ef9f4106087001d529fc724c736 checksum=c78951aca815d2897d966681d8999311676c3ef9f4106087001d529fc724c736
if [ -n "${CROSS_BUILD}" ]; then
hostmakedepends+=" python"
# find python includes; golly uses pythons distutils.sysconfig module
# and not python-config
pre_configure() {
CXXFLAGS+=" $(python-config --includes)"
}
fi
post_extract() { post_extract() {
# POSIX name clash # POSIX name clash
sed -i 's/PAGESIZE/GOLLYPAGESIZE/' gui-wx/*.cpp sed -i 's/PAGESIZE/GOLLYPAGESIZE/' gui-wx/*.cpp
sed -i '/LDADD/s/ liblua\.a/ -llua5.3/g' gui-wx/configure/Makefile.in sed -i '/LDADD/s/ liblua\.a/ -llua5.3/g' gui-wx/configure/Makefile.in
} }