freebsd-ports/www/php-templates/Makefile
Mathieu Arnold 25c794224f Mark ports not building with PHP 7.1.
Sponsored by:	Absolight
2017-02-07 12:14:34 +00:00

38 lines
1,012 B
Makefile

# Created by: vanilla
# $FreeBSD$
PORTNAME= php-templates
PORTVERSION= 1.7.2
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/1.7:ext \
SF/${PORTNAME}/${PORTNAME}-doc/html:doc
DISTNAME= php_templates-${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:ext
DISTFILES+= php_templates-doc-eng-1.1${EXTRACT_SUFX}:doc
MAINTAINER= ports@FreeBSD.org
COMMENT= Template framework for PHP
WRKSRC= ${WRKDIR}/templates
USES= dos2unix php:phpize
IGNORE_WITH_PHP= 70 71
CONFIGURE_ARGS= --enable-templates=shared
SUB_FILES= pkg-message
PORTDOCS= *
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}
${INSTALL_LIB} ${WRKSRC}/modules/templates.so \
${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}-doc/* ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/php
@${ECHO_CMD} "extension=${PREFIX}/lib/php/${PHP_EXT_DIR}/templates.so" > \
${STAGEDIR}${PREFIX}/etc/php/ext-20-templates.ini
.include <bsd.port.mk>