Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Oct 2016 07:30:53 +0000 (UTC)
From:      Bernard Spil <brnrd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r423325 - head/irc/weechat
Message-ID:  <201610050730.u957Urdp094519@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610050730.u957Urdp094519>