1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00
freebsd-ports/www/smarty2/Makefile
Martin Wilke 8304411a3b - Stage support
PR:		189913
Submitted by:	Joseph Benden <joe@thrallingpenguin.com>
2014-05-25 05:19:00 +00:00

57 lines
1.4 KiB
Makefile

# Created by: Simon 'corecode' Schubert <corecode@corecode.ath.cx>
# $FreeBSD$
PORTNAME= smarty
PORTVERSION= 2.6.27
CATEGORIES= www
MASTER_SITES= http://www.smarty.net/files/ \
http://www.smarty.net/files/docs/:manual
DISTFILES= Smarty-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= The PHP compiling template engine
USES= zip
DOCSVERSION= 2.6
WRKSRC= ${WRKDIR}/Smarty-${PORTVERSION}
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
DISTFILES+= manual-en-${DOCSVERSION}${EXTRACT_SUFX}:manual
.endif
NO_BUILD= yes
USE_PHP= pcre
WANT_PHP_WEB= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
.for f in Config_File.class.php Smarty.class.php Smarty_Compiler.class.php debug.tpl
@${INSTALL_DATA} ${WRKSRC}/libs/$f ${STAGEDIR}${DATADIR}
.endfor
@${MKDIR} ${STAGEDIR}${DATADIR}/internals
@${INSTALL_DATA} ${WRKSRC}/libs/internals/* ${STAGEDIR}${DATADIR}/internals
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins
@${INSTALL_DATA} ${WRKSRC}/libs/plugins/* ${STAGEDIR}${DATADIR}/plugins
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in BUGS FAQ INSTALL NEWS README
@${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR}
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}/manual
@cd ${WRKDIR}/manual-en && ${FIND} . | ${CPIO} --quiet -dumpR ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR}/manual
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>