mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
75883d4619
PR: ports/52803 Submitted by: Alex Dupre <sysadmin@alexdupre.com> (maintainer)
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
# New ports collection makefile for: php_templates
|
|
# Date created: Feb 28 2002
|
|
# Whom: vanilla
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= php-templates
|
|
PORTVERSION= 1.7
|
|
CATEGORIES= www
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
DISTNAME= php_templates-${PORTVERSION}
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
.if !defined(NOPORTDOCS)
|
|
DISTFILES+= php_templates-doc-eng-1.1${EXTRACT_SUFX}
|
|
.endif
|
|
|
|
MAINTAINER= sysadmin@alexdupre.com
|
|
COMMENT= A template framework for PHP
|
|
|
|
WRKSRC= ${WRKDIR}/templates
|
|
|
|
USE_PHPIZE= yes
|
|
|
|
CONFIGURE_ARGS= --enable-templates=shared
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
.include <bsd.port.pre.mk>
|
|
.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
|
|
|
|
post-build:
|
|
@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \
|
|
${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/modules/templates.so \
|
|
${PREFIX}/lib/php/${PHP_EXT_DIR}
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}-doc/* ${DOCSDIR}
|
|
.endif
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|