diff options
author | Bernard Spil <brnrd@FreeBSD.org> | 2016-10-05 07:30:53 +0000 |
---|---|---|
committer | Bernard Spil <brnrd@FreeBSD.org> | 2016-10-05 07:30:53 +0000 |
commit | 327f063143431ceb330ab9d012715b52e62f9b05 (patch) | |
tree | 39a2430a9b86ef038fa5d45db13c82927bba197e /irc/weechat/Makefile | |
parent | 53b5e52d865fd71495b03b3c4a63e48e8deb9ba6 (diff) | |
download | freebsd-ports-327f063143431ceb330ab9d012715b52e62f9b05.zip |
irc/weechat: Fix build when PYTHON not set
- Check PYTHON option before checking version
Diffstat (limited to 'irc/weechat/Makefile')
-rw-r--r-- | irc/weechat/Makefile | 2 |
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 |