Skip to content

Commit 1ccc169

Browse files
author
culler
committed
Fix pkgconfig paths for the macOS framework build.
2 parents a802919 + 03d9976 commit 1ccc169

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

generic/tkPkgConfig.c

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,29 @@
4747
# define CFG_FONTSYSTEM "x11"
4848
#endif
4949

50+
/*
51+
The macOS framework build first installs the framework in the build
52+
directory and then copies it to /Library/Frameworks/Tk.framework.
53+
Without these macros the pkgconfig paths point into the build
54+
directory instead of into the installed framework.
55+
*/
56+
57+
#if defined(MAC_OSX_TK) && defined(TK_FRAMEWORK)
58+
#define VERSION_DIR "/Library/Frameworks/Tk.framework/Versions/"TK_VERSION
59+
#define CFG_INSTALL_LIBDIR VERSION_DIR
60+
#define CFG_RUNTIME_LIBDIR CFG_INSTALL_LIBDIR
61+
#define CFG_INSTALL_BINDIR VERSION_DIR
62+
#define CFG_RUNTIME_BINDIR CFG_INSTALL_BINDIR
63+
#define CFG_INSTALL_DOCDIR VERSION_DIR "/Resources/Documentation"
64+
#define CFG_RUNTIME_DOCDIR CFG_INSTALL_DOCDIR
65+
#define CFG_INSTALL_SCRDIR VERSION_DIR "/Resources/Scripts"
66+
#define CFG_RUNTIME_SCRDIR CFG_INSTALL_SCRDIR
67+
#define CFG_INSTALL_INCDIR VERSION_DIR "/Headers"
68+
#define CFG_RUNTIME_INCDIR CFG_INSTALL_INCDIR
69+
#define CFG_INSTALL_DEMODIR VERSION_DIR "/Resources/Scripts/demos"
70+
#define CFG_RUNTIME_DEMODIR CFG_INSTALL_DEMODIR
71+
#endif
72+
5073
static const Tcl_Config cfg[] = {
5174
{"fontsystem", CFG_FONTSYSTEM},
5275

0 commit comments

Comments
 (0)