gnubg: switch to Python 3.
This commit is contained in:
parent
8848f76d3b
commit
786ed9374c
|
@ -1,24 +1,24 @@
|
|||
# Template file for 'gnubg'
|
||||
pkgname=gnubg
|
||||
version=1.06.002
|
||||
revision=3
|
||||
revision=4
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-cputest ax_cv_gcc_x86_cpuid_0x00000001=6000000"
|
||||
hostmakedepends="pkg-config python gdk-pixbuf-devel"
|
||||
makedepends="libcurl-devel libglib-devel gtk+-devel gtkglext-devel python-devel
|
||||
hostmakedepends="gdk-pixbuf-devel pkg-config python3-devel"
|
||||
makedepends="libcurl-devel libglib-devel gtk+-devel gtkglext-devel python3-devel
|
||||
libcanberra-devel readline-devel readline sqlite-devel"
|
||||
depends="python"
|
||||
depends="python3"
|
||||
short_desc="GNU Backgammon game"
|
||||
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||
license="GPL-3.0-or-later"
|
||||
homepage="https://www.gnu.org/software/gnubg/"
|
||||
distfiles="$GNU_SITE/gnubg/$pkgname-release-$version-sources.tar.gz"
|
||||
checksum=ce1b0b0c1900717cc598032a14cf8c0ee60faf24d84368b39922c0102983bc87
|
||||
LDLIBS="-lm -lreadline -lpython2.7"
|
||||
LDLIBS="-lm -lreadline -lpython${pyver}"
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
hostmakedepends+=" ${pkgname}"
|
||||
CPPFLAGS="-I$XBPS_CROSS_BASE/usr/include/python2.7"
|
||||
CPPFLAGS="-I$XBPS_CROSS_BASE/usr/include/python${pyver}"
|
||||
fi
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
|
@ -26,6 +26,7 @@ case "$XBPS_TARGET_MACHINE" in
|
|||
esac
|
||||
|
||||
pre_configure() {
|
||||
export PYTHONWARNINGS="ignore" # distutils being removed in py 3.12
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
makeweights < gnubg.weights > gnubg.wd
|
||||
makebearoff -o 6 -s 7999999 -f gnubg_os0.bd
|
||||
|
|
Loading…
Reference in New Issue