void-packages/srcpkgs/golly/template

35 lines
1.0 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 'golly'
pkgname=golly
version=3.2
revision=3
wrksrc="${pkgname}-${version}-src"
build_style=gnu-configure
configure_script="gui-wx/configure/configure"
configure_args="LIBS=-lGL"
hostmakedepends="automake"
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=4d02f78592b5ea211f1ceda2d5ba55eb10e013ecf95b8a61c7061357f9aae931
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() {
# 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
}