43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Template file for 'golly'
|
|
pkgname=golly
|
|
version=4.3
|
|
revision=1
|
|
build_wrksrc="gui-wx"
|
|
build_style=gnu-makefile
|
|
make_build_args="-f makefile-gtk GOLLYDIR=/usr/share/golly LUALIB=-llua5.4
|
|
CXXC=\$(CXX) WX_CONFIG=wx-config-gtk3"
|
|
make_install_args="${make_build_args}"
|
|
hostmakedepends="python3 python3-setuptools"
|
|
makedepends="MesaLib-devel glu-devel lua54-devel python3-devel
|
|
wxWidgets-gtk3-devel zlib-devel SDL2-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=51d2478063e7ec50cde2b61381f3c1028604e45182e374cff0e14199822a081d
|
|
|
|
CXXFLAGS="-I../gollybase -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
|
|
post_extract() {
|
|
# POSIX name clash
|
|
vsed -i 's/PAGESIZE/GOLLYPAGESIZE/' $(grep -rlw PAGESIZE gui-wx/*.cpp)
|
|
}
|
|
|
|
pre_configure() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
vsed -i "s,\(PYTHON_INCLUDE\) =.*,\1=-I${XBPS_CROSS_BASE}/${py3_inc},g" makefile-gtk
|
|
fi
|
|
}
|
|
|
|
do_install() {
|
|
cd "${wrksrc}"
|
|
vbin golly
|
|
vbin bgolly
|
|
vmkdir usr/share/golly
|
|
vcopy Help usr/share/golly
|
|
vcopy Patterns usr/share/golly
|
|
vcopy Rules usr/share/golly
|
|
vcopy Scripts usr/share/golly
|
|
}
|