1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/devel/gitphp/Makefile
Steve Wills faaba0d7c9 devel/gitphp: allow building with php7+
PR:		227377
Submitted by:	Daniel Austin <freebsd-ports@dan.me.uk>
2018-05-25 20:00:45 +00:00

37 lines
922 B
Makefile

# $FreeBSD$
PORTNAME= gitphp
PORTVERSION= 0.2.8
PORTREVISION= 2
CATEGORIES= devel www
MASTER_SITES= https://github.com/xiphux/gitphp/releases/download/${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Web based git repository browser written in PHP
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}
(cd ${WRKSRC} \
&& ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
${FIND} ${STAGEDIR}${WWWDIR} -type f -exec ${CHMOD} 644 {} +
.include <bsd.port.post.mk>