svn commit: r445137 - head/graphics/graphviz

Dirk Meyer dinoex at FreeBSD.org
Thu Jul 6 12:02:24 UTC 2017


Author: dinoex
Date: Thu Jul  6 12:02:23 2017
New Revision: 445137
URL: https://svnweb.freebsd.org/changeset/ports/445137

Log:
  - support build with php5.6
  PR:		220293
  Submitted by:	Dmitry Marakasov

Modified:
  head/graphics/graphviz/Makefile

Modified: head/graphics/graphviz/Makefile
==============================================================================
--- head/graphics/graphviz/Makefile	Thu Jul  6 11:56:27 2017	(r445136)
+++ head/graphics/graphviz/Makefile	Thu Jul  6 12:02:23 2017	(r445137)
@@ -138,8 +138,7 @@ PERL_CONFIGURE_ENABLE=		perl
 PERL_VARS=		SHEBANG_FILES+=tclpkg/gv/demo/modgraph.pl
 PHP_CONFIGURE_ENABLE=		php
 PHP_CPPFLAGS=		-I${LOCALBASE}/include/php/Zend
-PHP_VARS=		SHEBANG_FILES+=tclpkg/gv/demo/modgraph.php \
-			IGNORE_WITH_PHP=56
+PHP_VARS=		SHEBANG_FILES+=tclpkg/gv/demo/modgraph.php
 PYTHON_CONFIGURE_ENABLE=	python
 PYTHON_LDFLAGS=		"-L${PYTHONBASE}/lib"
 PYTHON_VARS=		SHEBANG_FILES+=tclpkg/gv/demo/modgraph.py
@@ -207,6 +206,15 @@ CONFIGURE_ARGS+=	--disable-swig
 CONFIGURE_ENV+=		SWIG="/nonexistent"
 .endif
 
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MPHP}
+.if ${PHP_VER} < 70
+# force old PHP API
+MAKE_ARGS+=	SWIG_PHP_OPT=-php5
+.endif
+.endif
+
 post-patch:
 	${FIND} ${WRKSRC} -name Makefile.in | \
 		${XARGS} ${REINPLACE_CMD} \
@@ -288,4 +296,4 @@ post-install-EXAMPLES-on:
 		${WRKSRC}/tclpkg/tclpathplan/demo/pathplan_data/*.dat \
 		${STAGEDIR}${EXAMPLESDIR}/pathplan_data/
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-all mailing list