From 0e2aeb3da67b2acf1957f3130b85ce820d7d1b90 Mon Sep 17 00:00:00 2001 From: brnrd Date: Sun, 26 Mar 2017 11:14:39 +0000 Subject: irc/weechat: Fix python3 detection - Fix package error when python3 is used PR: 216555 Reported by: Charles P --- irc/weechat/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'irc') diff --git a/irc/weechat/Makefile b/irc/weechat/Makefile index 013d81c2cbcf..c4f4ef1f5016 100644 --- a/irc/weechat/Makefile +++ b/irc/weechat/Makefile @@ -88,7 +88,7 @@ TCL_USES= tcl:85+ .include -.if defined(PORT_OPTIONS:MPYTHON) && ${PYTHON_MAJOR_VER} >= 3 +.if !empty(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