mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 00:23:52 +02:00
golly: update cross fix
This commit is contained in:
parent
1e7c6779be
commit
e09a6c7cd5
1 changed files with 6 additions and 11 deletions
|
@ -6,7 +6,7 @@ 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="LIBS=-lGL"
|
configure_args="LIBS=-lGL"
|
||||||
hostmakedepends="automake"
|
hostmakedepends="automake python"
|
||||||
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"
|
||||||
short_desc="Simulator for Conway's Game of Life and other cellular automata"
|
short_desc="Simulator for Conway's Game of Life and other cellular automata"
|
||||||
|
@ -16,19 +16,14 @@ homepage="http://golly.sourceforge.net/"
|
||||||
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-src.tar.gz"
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-src.tar.gz"
|
||||||
checksum=4d02f78592b5ea211f1ceda2d5ba55eb10e013ecf95b8a61c7061357f9aae931
|
checksum=4d02f78592b5ea211f1ceda2d5ba55eb10e013ecf95b8a61c7061357f9aae931
|
||||||
|
|
||||||
if [ -n "${CROSS_BUILD}" ]; then
|
|
||||||
hostmakedepends+=" python"
|
|
||||||
|
|
||||||
# find python includes; golly uses python’s 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
sed -i "s,\(PYTHON_INCLUDE\)=.*,\1=-I${XBPS_CROSS_BASE}/usr/include/python2.7,g" gui-wx/configure/configure
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue