mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 05:40:07 +02:00
Python add tcl/tk dependency (make) for module _tkinter (#6932)
This commit is contained in:
@@ -807,3 +807,33 @@ index 29d6126..aa1ad57 100644
|
||||
--
|
||||
2.30.2
|
||||
|
||||
|
||||
From c1e2fc1180e777bd61cd01d763e3cf425ef62578 Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Mon, 23 May 2022 08:45:31 +0200
|
||||
Subject: Fix search paths for tcl/tk
|
||||
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 90c19a2..ad979e6 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -3202,8 +3202,13 @@ then
|
||||
then
|
||||
AC_MSG_ERROR([use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither])
|
||||
fi
|
||||
- TCLTK_INCLUDES=""
|
||||
- TCLTK_LIBS=""
|
||||
+ if test -n "$PKG_CONFIG" && "$PKG_CONFIG" --exists tcl tk; then
|
||||
+ TCLTK_INCLUDES="`"$PKG_CONFIG" tcl tk --cflags-only-I 2>/dev/null`"
|
||||
+ TCLTK_LIBS="`"$PKG_CONFIG" tcl tk --libs 2>/dev/null`"
|
||||
+ else
|
||||
+ TCLTK_INCLUDES=""
|
||||
+ TCLTK_LIBS=""
|
||||
+ fi
|
||||
else
|
||||
TCLTK_INCLUDES="$with_tcltk_includes"
|
||||
TCLTK_LIBS="$with_tcltk_libs"
|
||||
--
|
||||
2.36.1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user