From 327f063143431ceb330ab9d012715b52e62f9b05 Mon Sep 17 00:00:00 2001 From: Bernard Spil Date: Wed, 5 Oct 2016 07:30:53 +0000 Subject: irc/weechat: Fix build when PYTHON not set - Check PYTHON option before checking version --- irc/weechat/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'irc/weechat') 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 -.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 -- cgit v1.2.3