From cfda4d1534b820c8ed74f4bb0db9c1ac4be0f4d4 Mon Sep 17 00:00:00 2001 From: leot Date: Wed, 22 Apr 2020 16:16:12 +0000 Subject: 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. --- chat/weechat/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'chat') 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" -- cgit v1.2.3