Python: updated including dependencies

This commit is contained in:
2025-05-23 14:28:51 +02:00
parent ed0b200a79
commit 1996b245c3
15 changed files with 199 additions and 114 deletions

View File

@@ -1,4 +1,32 @@
#!/bin/bash
#!/usr/bin/env modbuild
./build_Tcl "$@" ||exit $?
./build_Tk -f "$@"
#pbuild::install_docfiles 'license.terms' 'README'
pbuild::configure_Darwin() {
export CXX=/usr/bin/clang++
export CC=/usr/bin/clang
PATH+=":/opt/X11/bin"
export PKG_CONFIG_PATH="/opt/X11/share/pkgconfig:/opt/X11/lib/pkgconfig:$PKG_CONFIG_PATH"
"${SRC_DIR}/macosx/configure" \
--prefix="${PREFIX}" \
--enable-threads \
--disable-symbols \
|| exit 1
}
pbuild::configure() {
"${SRC_DIR}/unix/configure" \
--prefix="${PREFIX}" \
|| exit 1
}
pbuild::post_install() {
{ cd "${PREFIX}"/bin && rm -f tclsh && ln -fs tclsh${V%.*} tclsh; };
}
pbuild::post_install_Darwin() {
local -r libtcl="libtcl${V_MAJOR}.${V_MINOR}.dylib"
install_name_tool \
-id @executable_path/../lib/${libtcl} \
"${PREFIX}/lib/${libtcl}"
}