freebsd-ports/devel/phabricator/Makefile
Michael Gmelin 8908997ca4 Update devel/arcanist, devel/libphutil, devel/phabricator to 20161003
Also add USES=php and NO_ARCH=yes where suggested.

Approved by:	mentors (implicit)
2016-10-03 19:57:54 +00:00

57 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= phabricator
PORTVERSION= 20161003
CATEGORIES= devel
PKGNAMEPREFIX= php5-
MAINTAINER= grembo@FreeBSD.org
COMMENT= Open source, software engineering platform
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= php5-libphutil>0:devel/libphutil \
php5-arcanist>0:devel/arcanist \
git:devel/git
OPTIONS_DEFINE= GD OPCACHE
OPTIONS_DEFAULT=OPCACHE
OPCACHE_DESC?= Use OPcache to improve performance
USES= php shebangfix
SHEBANG_FILES= externals/httpful/build \
externals/restful/build-phar \
scripts/install/install_rhel-derivs.sh \
scripts/install/install_ubuntu.sh
USE_PHP= ctype curl fileinfo hash iconv filter mbstring mysql openssl \
pcntl posix
IGNORE_WITH_PHP= 70
GD_USE= PHP=gd
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MOPCACHE}
. if ${PHP_EXT_DIR:C|[^0-9]||g} >= 20121212
USE_PHP+= opcache
RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/apcu.so:devel/pecl-APCu
. endif
.endif
USE_GITHUB= yes
NO_BUILD= yes
USE_RC_SUBR= phd
SUB_FILES= pkg-message
GH_ACCOUNT= phacility
GH_TAGNAME= 55a56c0
PHP_DESTDIR= lib/php/phabricator
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${PHP_DESTDIR}/conf/local
@${INSTALL_DATA} ${FILESDIR}/local.json.sample \
${STAGEDIR}${PREFIX}/${PHP_DESTDIR}/conf/local
cd ${WRKSRC} ; ${PAX} -rw * ${STAGEDIR}${PREFIX}/${PHP_DESTDIR}
.include <bsd.port.post.mk>