aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--irc/weechat/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/irc/weechat/Makefile b/irc/weechat/Makefile
index 619e72da50c8..fdb943ba2cd1 100644
--- a/irc/weechat/Makefile
+++ b/irc/weechat/Makefile
@@ -90,7 +90,7 @@ TCL_USES= tcl:85+
.include <bsd.port.pre.mk>
-.if ${PYTHON_MAJOR_VER} >= 3
+.if defined(PORT_OPTIONS:MPYTHON) && ${PYTHON_MAJOR_VER} >= 3
WARNING= "Using Python 3.x is NOT recommended because many \"official\" scripts won\'t work"
CMAKE_ARGS+= -DENABLE_PYTHON3:BOOL=true \
-DPYTHON_LIBRARY:FILEPATH=${LOCALBASE}/lib/libpython${PYTHON_VER}m.so