svn commit: r436955 - head/irc/weechat
Bernard Spil
brnrd at FreeBSD.org
Sun Mar 26 11:14:40 UTC 2017
Author: brnrd
Date: Sun Mar 26 11:14:39 2017
New Revision: 436955
URL: https://svnweb.freebsd.org/changeset/ports/436955
Log:
irc/weechat: Fix python3 detection
- Fix package error when python3 is used
PR: 216555
Reported by: Charles P <charlespigott at googlemail.com>
Modified:
head/irc/weechat/Makefile
Modified: head/irc/weechat/Makefile
==============================================================================
--- head/irc/weechat/Makefile Sun Mar 26 10:47:44 2017 (r436954)
+++ head/irc/weechat/Makefile Sun Mar 26 11:14:39 2017 (r436955)
@@ -88,7 +88,7 @@ TCL_USES= tcl:85+
.include <bsd.port.pre.mk>
-.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
More information about the svn-ports-head
mailing list