pkgsrc/www/php-FastTemplate/Makefile
jlam c4d70b01b2 www/php-FastTemplate:
PHP extension for managing templates and variable interpolation

FastTemplate is a port of the Perl CGI::FastTemplate module to PHP, which
is a very fast implementation of templates using simple variable
interpolation.

Templates are very useful for CGI programming, because adding HTML to your
PHP code clutters your code and forces you to do any HTML modifications.
By putting all of your HTML in seperate template files, you can let a
graphic or interface designer change the look of your application without
having to bug you, or let them muck around in your PHP code.
2001-10-28 03:36:16 +00:00

40 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2001/10/28 03:36:16 jlam Exp $
DISTNAME= FastTemplate-1_1_0
PKGNAME= php-FastTemplate-1.1.0
CATEGORIES= www php4
MASTER_SITES= http://www.thewebmasters.net/php/
PATCHFILES= php4.diff
PATCH_SITES= http://www.thewebmasters.net/php/FastTemplate/
MAINTAINER= jlam@netbsd.org
HOMEPAGE= http://www.thewebmasters.net/php/FastTemplate.phtml
COMMENT= PHP extension for managing templates and variable interpolation
DEPENDS+= php>=3.0.18:../../www/php4
DIST_SUBDIR= ${PKGBASE}
WRKSRC= ${WRKDIR}/FastTemplate
NO_BUILD= YES
PHP_LIB_SUBDIR= lib/php
PHP_LIB_DIR= ${PREFIX}/${PHP_LIB_SUBDIR}
DOCDIR= ${PREFIX}/share/doc/html/${PKGBASE}
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
PLIST_SUBST+= PHP_LIB_SUBDIR=${PHP_LIB_SUBDIR}
PLIST_SUBST+= PKGBASE=${PKGBASE}
do-install:
${INSTALL_DATA_DIR} ${PHP_LIB_DIR} ${DOCDIR} ${EGDIR}/templates
${INSTALL_DATA} ${WRKSRC}/class.FastTemplate.php3 ${PHP_LIB_DIR}
${INSTALL_DATA} ${WRKSRC}/docs/FastTemplate.html ${DOCDIR}
cd ${WRKSRC}; for file in *.phtml; do \
dest=${EGDIR}/`${BASENAME} $${file} .phtml`.php; \
${INSTALL_DATA} $${file} $${dest}; \
done
${INSTALL_DATA} ${WRKSRC}/templates/*.tpl ${EGDIR}/templates
.include "../../mk/bsd.pkg.mk"