Python add tcl/tk dependency (make) for module _tkinter (#6932)

This commit is contained in:
Schrijvers Luc
2022-05-24 07:05:08 +02:00
committed by GitHub
parent 7bed2ef2ed
commit bda9fa31bd
8 changed files with 110 additions and 16 deletions

View File

@@ -9,14 +9,14 @@ OSI-approved open source license."
HOMEPAGE="https://www.python.org"
LICENSE="Python"
COPYRIGHT="1990-2020 Python Software Foundation"
REVISION="1"
REVISION="2"
SOURCE_URI="https://www.python.org/ftp/python/$portVersion/Python-$portVersion.tar.xz"
CHECKSUM_SHA256="b1d3a76420375343b5e8a22fceb1ac65b77193e9ed27146524f0a9db058728ea"
SOURCE_DIR="Python-$portVersion"
PATCHES="python3-$portVersion.patchset"
PATCHES="python38-$portVersion.patchset"
if [ "$secondaryArchSuffix" = _x86 ] ; then
PATCHES+="
python3_x86-$portVersion.patchset
python38_x86-$portVersion.patchset
"
fi
@@ -57,6 +57,7 @@ REQUIRES="
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libbz2$secondaryArchSuffix
devel:libexpat$secondaryArchSuffix
devel:libffi$secondaryArchSuffix
@@ -65,17 +66,18 @@ BUILD_REQUIRES="
devel:libssl$secondaryArchSuffix
devel:libedit$secondaryArchSuffix
devel:libsqlite3$secondaryArchSuffix
devel:libtclstub8.6$secondaryArchSuffix
devel:libtk8.6$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
autoconf_archive
cmd:aclocal
cmd:autoconf
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:libtoolize$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
cmd:make
"
@@ -89,9 +91,7 @@ BUILD()
export CFLAGS="-D_BSD_SOURCE"
rm -Rf Modules/expat
libtoolize --force --copy --install
aclocal
autoconf
autoreconf -fi
export OPT=""
runConfigure --omit-dirs binDir,includeDir ./configure \