void-packages/srcpkgs/golly/template
2019-10-11 12:40:56 +02:00

29 lines
986 B
Bash

# Template file for 'golly'
pkgname=golly
version=3.3
revision=1
wrksrc="${pkgname}-${version}-src"
build_style=gnu-configure
configure_script="gui-wx/configure/configure"
configure_args="LIBS=-lGL"
hostmakedepends="automake python"
makedepends="MesaLib-devel glu-devel lua-devel python-devel wxWidgets-devel
zlib-devel"
short_desc="Simulator for Conway's Game of Life and other cellular automata"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later"
homepage="http://golly.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-src.tar.gz"
checksum=88fd776b1afd763ef32ac6e6d95ddfcbc51b74f6ef6a1f3ba9aa659295d573c8
post_extract() {
# POSIX name clash
sed -i 's/PAGESIZE/GOLLYPAGESIZE/' gui-wx/*.cpp
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
}