golly: update to 4.0.
This commit is contained in:
parent
7a795bc67a
commit
98e3a7ae6c
1 changed files with 20 additions and 9 deletions
|
@ -1,29 +1,40 @@
|
|||
# Template file for 'golly'
|
||||
pkgname=golly
|
||||
version=3.4
|
||||
version=4.0
|
||||
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 lua53-devel python-devel wxWidgets-devel
|
||||
build_wrksrc="gui-wx"
|
||||
build_style=gnu-makefile
|
||||
make_build_args="-f makefile-gtk GOLLYDIR=/usr/share/golly LUALIB=-llua5.4"
|
||||
make_install_args="${make_build_args}"
|
||||
hostmakedepends="python3"
|
||||
makedepends="MesaLib-devel glu-devel lua54-devel python3-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=198dd681e10b1ad5d40c218521206e326fc0c142a14027e18c5b73dde27655dd
|
||||
checksum=45a8595c9f7064de029f05d339e3fca3776b5a0c36fef95712e697f154d82ae5
|
||||
|
||||
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
|
||||
sed -i "s,\(PYTHON_INCLUDE\)=.*,\1=-I${XBPS_CROSS_BASE}/usr/include/python3.9,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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue