diff --git a/mingw-w64-tk/005-install-pkgconf.mingw.patch b/mingw-w64-tk/005-install-pkgconf.mingw.patch new file mode 100644 index 0000000000..5cd42ef706 --- /dev/null +++ b/mingw-w64-tk/005-install-pkgconf.mingw.patch @@ -0,0 +1,26 @@ +--- a/win/Makefile.in ++++ b/win/Makefile.in +@@ -499,6 +499,9 @@ + $(COPY) $$i "$(LIB_INSTALL_DIR)"; \ + fi; \ + done ++ @echo "Installing pkg-config file to $(LIB_INSTALL_DIR)/pkgconfig/" ++ @$(MKDIR) "$(LIB_INSTALL_DIR)/pkgconfig" ++ @$(INSTALL_DATA) tk.pc "$(LIB_INSTALL_DIR)/pkgconfig/tk.pc" + + install-libraries: libraries + @for i in "$$($(CYGPATH) $(prefix)/lib)" \ +--- a/win/configure.in ++++ b/win/configure.in +@@ -343,6 +343,11 @@ + AC_SUBST(RC_DEFINE) + AC_SUBST(RC_DEFINES) + AC_SUBST(RES) ++AC_SUBST(XLIBSW) ++AC_SUBST(XFT_LIBS) ++AC_CONFIG_FILES([ ++ tk.pc:../unix/tk.pc.in ++]) + + AC_OUTPUT(Makefile tkConfig.sh wish.exe.manifest) + diff --git a/mingw-w64-tk/PKGBUILD b/mingw-w64-tk/PKGBUILD index f1970bf582..47c8de053c 100644 --- a/mingw-w64-tk/PKGBUILD +++ b/mingw-w64-tk/PKGBUILD @@ -7,7 +7,7 @@ pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" _basever=8.6.12 _patch= pkgver=${_basever}${_patch} -pkgrel=1 +pkgrel=2 pkgdesc="A windowing toolkit for use with tcl (mingw-w64)" arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') @@ -19,6 +19,7 @@ options=('staticlibs') # '!strip' 'debug') source=("https://downloads.sourceforge.net/sourceforge/tcl/${_realname}${pkgver}-src.tar.gz" 003-fix-forbidden-colon-in-paths.mingw.patch 004-install-man.mingw.patch + 005-install-pkgconf.mingw.patch 006-prevent-tclStubsPtr-segfault.patch 008-dont-link-shared-with--static-libgcc.patch 010-win-non-x86.patch @@ -26,6 +27,7 @@ source=("https://downloads.sourceforge.net/sourceforge/tcl/${_realname}${pkgver} sha256sums=('12395c1f3fcb6bed2938689f797ea3cdf41ed5cb6c4766eec8ac949560310630' '3282a5f5fbcc932bb12b82a0b658f69187c90b1018917d05d579fa1b8868e4a8' 'e6e843eff45b2cd2e371bb732209a0d65dcb23ddcd51bc1d2e372efc071a6c37' + 'b968a0fdeacb01f920759fa7e04628a2b08a22b5db4ae9022dfae153e0a3d36a' '2d3d5ac70ed8e92abf441b3e0b7ef94996fc9c2fe32f3d455974012fba166b7c' '228bbd94b5c5a362032e70d363cd04ff20e851663973ddbceebf5f235717d669' '68fd7a808b0cc31946697e7d52efb945faa44953ed44a08645c22222a6018139' @@ -44,6 +46,7 @@ prepare() { _apply_patch_with_msg \ 003-fix-forbidden-colon-in-paths.mingw.patch \ 004-install-man.mingw.patch \ + 005-install-pkgconf.mingw.patch \ 006-prevent-tclStubsPtr-segfault.patch \ 008-dont-link-shared-with--static-libgcc.patch \ 010-win-non-x86.patch \