svn commit: r423325 - head/irc/weechat
Bernard Spil
brnrd at FreeBSD.org
Wed Oct 5 07:30:55 UTC 2016
Author: brnrd
Date: Wed Oct 5 07:30:53 2016
New Revision: 423325
URL: https://svnweb.freebsd.org/changeset/ports/423325
Log:
irc/weechat: Fix build when PYTHON not set
- Check PYTHON option before checking version
Modified:
head/irc/weechat/Makefile
Modified: head/irc/weechat/Makefile
==============================================================================
--- head/irc/weechat/Makefile Wed Oct 5 07:16:09 2016 (r423324)
+++ head/irc/weechat/Makefile Wed Oct 5 07:30:53 2016 (r423325)
@@ -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
More information about the svn-ports-head
mailing list