mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
68b410427a
PR: ports/63260 Submitted by: zhuravlev alexander <zaa@ulstu.ru> (maintainer)
63 lines
1.7 KiB
Makefile
63 lines
1.7 KiB
Makefile
# New ports collection makefile for: smarty
|
|
# Date created: 10 March 2002
|
|
# Whom: Simon 'corecode' Schubert <corecode@corecode.ath.cx>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= smarty
|
|
PORTVERSION= 2.6.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://smarty.php.net/distributions/ \
|
|
http://smarty.php.net/distributions/manual/en/:manual
|
|
DISTFILES= Smarty-${PORTVERSION}${EXTRACT_SUFX}
|
|
.if !defined(NOPORTDOCS)
|
|
DISTFILES+= Smarty-2.6.2-docs${EXTRACT_SUFX}:manual
|
|
.endif
|
|
|
|
MAINTAINER= zaa@ulstu.ru
|
|
COMMENT= The PHP compiling template engine
|
|
|
|
WRKSRC= ${WRKDIR}/Smarty-${PORTVERSION}
|
|
|
|
NO_BUILD= yes
|
|
USE_PHP= yes
|
|
WANT_PHP_WEB= yes
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
MSG_SRC= ${FILESDIR}/pkg-message
|
|
|
|
MSG_SUB= DATADIR=${DATADIR} LOCALBASE=${LOCALBASE}
|
|
|
|
do-install:
|
|
@${MKDIR} ${DATADIR}
|
|
.for f in Config_File.class.php Smarty.class.php Smarty_Compiler.class.php debug.tpl
|
|
@${INSTALL_DATA} ${WRKSRC}/libs/$f ${DATADIR}
|
|
.endfor
|
|
@${MKDIR} ${DATADIR}/core
|
|
@${INSTALL_DATA} ${WRKSRC}/libs/core/* ${DATADIR}/core
|
|
@${MKDIR} ${DATADIR}/plugins
|
|
@${INSTALL_DATA} ${WRKSRC}/libs/plugins/* ${DATADIR}/plugins
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for f in BUGS FAQ INSTALL NEWS README
|
|
@${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR}
|
|
.endfor
|
|
@${MKDIR} ${DOCSDIR}/manual
|
|
@cd ${WRKDIR}/manual && ${FIND} . | ${CPIO} --quiet -dumpR ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}/manual
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/demo/index.php ${EXAMPLESDIR}
|
|
.for f in configs templates templates_c cache
|
|
@${MKDIR} ${EXAMPLESDIR}/$f
|
|
@-${INSTALL_DATA} ${WRKSRC}/demo/$f/* ${EXAMPLESDIR}/$f 2>/dev/null || ${TRUE}
|
|
.endfor
|
|
.endif
|
|
|
|
post-install:
|
|
@${SED} ${MSG_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${MSG_SRC} > \
|
|
${PKGMESSAGE}
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|