aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2018-05-25 20:00:45 +0000
committerSteve Wills <swills@FreeBSD.org>2018-05-25 20:00:45 +0000
commitfaaba0d7c9ca578d561049873f685a946b47a65d (patch)
tree84764e0bf72bb9911c00326cef691a5ad3e46e81
parent86a1c0be7e20ab6916e4093c82a76cdb89490aaf (diff)
downloadports-faaba0d7c9ca578d561049873f685a946b47a65d.tar.gz
ports-faaba0d7c9ca578d561049873f685a946b47a65d.zip
devel/gitphp: allow building with php7+
PR: 227377 Submitted by: Daniel Austin <freebsd-ports@dan.me.uk>
Notes
Notes: svn path=/head/; revision=470861
-rw-r--r--devel/gitphp/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/devel/gitphp/Makefile b/devel/gitphp/Makefile
index eaf381f5b0c6..847c259fe2a9 100644
--- a/devel/gitphp/Makefile
+++ b/devel/gitphp/Makefile
@@ -2,7 +2,7 @@
PORTNAME= gitphp
PORTVERSION= 0.2.8
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel www
MASTER_SITES= https://github.com/xiphux/gitphp/releases/download/${PORTVERSION}/
@@ -13,12 +13,19 @@ LICENSE= GPLv2
USES= gettext php:web tar:bzip2
USE_PHP= bz2 fileinfo mbstring memcache posix simplexml spl zlib
+NO_ARCH= yes
NO_BUILD= yes
PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
SUB_FILES= pkg-message
+.include <bsd.port.pre.mk>
+
+.if (${PHP_VER} < 70)
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/xdiff.so:textproc/pecl-xdiff@${PHP_FLAVOR}
+.else
+RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/xdiff.so:textproc/pecl-xdiff2@${PHP_FLAVOR}
+.endif
do-install:
${MKDIR} ${STAGEDIR}${WWWDIR}
@@ -26,4 +33,4 @@ do-install:
&& ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
${FIND} ${STAGEDIR}${WWWDIR} -type f -exec ${CHMOD} 644 {} +
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>