blob: 2431abdafa0673e3e9755c13285f2b04b9ab195f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# 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.24
CATEGORIES= www
MASTER_SITES= http://www.smarty.net/distributions/ \
http://www.smarty.net/distributions/manual/en/:manual
DISTFILES= Smarty-${PORTVERSION}${EXTRACT_SUFX}
.if !defined(NOPORTDOCS)
DISTFILES+= Smarty-${DOCSVERSION}-docs${EXTRACT_SUFX}:manual
.endif
MAINTAINER= zaa@zaa.pp.ru
COMMENT= The PHP compiling template engine
DOCSVERSION= 2.6.14
WRKSRC= ${WRKDIR}/Smarty-${PORTVERSION}
NO_BUILD= yes
USE_PHP= pcre
WANT_PHP_WEB= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
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}/internals
@${INSTALL_DATA} ${WRKSRC}/libs/internals/* ${DATADIR}/internals
@${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
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|