summaryrefslogtreecommitdiff
path: root/chat/weechat/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'chat/weechat/Makefile')
-rw-r--r--chat/weechat/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/chat/weechat/Makefile b/chat/weechat/Makefile
index 0d39e379335..6eaf69ed372 100644
--- a/chat/weechat/Makefile
+++ b/chat/weechat/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.112 2020/03/30 09:31:52 nia Exp $
+# $NetBSD: Makefile,v 1.113 2020/03/30 11:07:18 nia Exp $
DISTNAME= weechat-2.8
CATEGORIES= chat
@@ -35,12 +35,14 @@ LDFLAGS.SunOS+= -lresolv
BUILDLINK_TRANSFORM+= rm:-Werror-implicit-function-declaration
-# use standard cmake mechanisms for detecting python
-# works better with pkgsrc.
+.include "options.mk"
+
pre-configure:
- ${RM} -f ${WRKSRC}/cmake/FindPython.cmake
+.if !empty(PKG_OPTIONS:Mpython)
+ ${LN} -sf ${BUILDLINK_DIR}/lib/pkgconfig/python-${PYVERSSUFFIX}.pc \
+ ${BUILDLINK_DIR}/lib/pkgconfig/python3.pc
+.endif
-.include "options.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"