freebsd-ports/www/tivoka/Makefile

33 lines
668 B
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= tivoka
PORTVERSION= 3.0.1
CATEGORIES= www
MAINTAINER= gahr@FreeBSD.org
COMMENT= JSON-RPC client/server library for PHP
LICENSE= MIT
USE_PHP= json filter
NO_BUILD= yes
USE_GITHUB= yes
GH_ACCOUNT= marcelklehr
GH_COMMIT= 4cbf436
LIBDIR= ${PREFIX}/lib/php/${PHP_EXT_DIR}/${PORTNAME}
PLIST_SUB+= LIBDIR=${LIBDIR:S/${PREFIX}\///}
NO_STAGE= yes
do-install:
@${MKDIR} ${LIBDIR}
@${INSTALL_DATA} ${WRKSRC}/include.php ${LIBDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} lib ${LIBDIR}
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
@cd ${WRKSRC}/example && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>