diff options
author | leot <leot@pkgsrc.org> | 2020-04-22 16:16:12 +0000 |
---|---|---|
committer | leot <leot@pkgsrc.org> | 2020-04-22 16:16:12 +0000 |
commit | cfda4d1534b820c8ed74f4bb0db9c1ac4be0f4d4 (patch) | |
tree | 51b0f24fe4d16acd61986faeb77a566ea2e1f6de /chat/weechat | |
parent | bafcdc5237f4f15821538ff2317b671d6032e9bc (diff) | |
download | pkgsrc-cfda4d1534b820c8ed74f4bb0db9c1ac4be0f4d4.tar.gz |
weechat: Use SUBST framework to adjust hardcoded pkg-config python checks
The previous ${LN} incantation missed possible python3-embed.pc file
(present in python38) ending up in a not-working python support.
Do not adjust file under ${BUILDLINK_DIR} and use the SUBST framework
to adjust all python3 pkg-config invocations.
Diffstat (limited to 'chat/weechat')
-rw-r--r-- | chat/weechat/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chat/weechat/Makefile b/chat/weechat/Makefile index 6eaf69ed372..797358f00a5 100644 --- a/chat/weechat/Makefile +++ b/chat/weechat/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.113 2020/03/30 11:07:18 nia Exp $ +# $NetBSD: Makefile,v 1.114 2020/04/22 16:16:12 leot Exp $ DISTNAME= weechat-2.8 CATEGORIES= chat @@ -37,10 +37,12 @@ BUILDLINK_TRANSFORM+= rm:-Werror-implicit-function-declaration .include "options.mk" -pre-configure: .if !empty(PKG_OPTIONS:Mpython) - ${LN} -sf ${BUILDLINK_DIR}/lib/pkgconfig/python-${PYVERSSUFFIX}.pc \ - ${BUILDLINK_DIR}/lib/pkgconfig/python3.pc +SUBST_CLASSES+= python +SUBST_STAGE.python= pre-configure +SUBST_MESSAGE.python= Adjust pkg-config python checks +SUBST_FILES.python= configure.ac cmake/FindPython.cmake +SUBST_SED.python= -e 's,python3,python-${PYVERSSUFFIX},g' .endif .include "../../graphics/hicolor-icon-theme/buildlink3.mk" |