# Created by: Mun-Kyo Seo <munggo@gmail.com>
# $FreeBSD: tags/RELEASE_10_1_0/www/skytemplate/Makefile 360181 2014-07-02 13:28:42Z vanilla $

PORTNAME=	skytemplate
PORTVERSION=	1.4.0
CATEGORIES=	www
MASTER_SITES=	http://daddy.withsky.net/SkyTemplate/download/ \
		http://mirror.pmy.lv/SkyTemplate/download/
DISTNAME=	SkyTemplate.v${PORTVERSION:S/.//g}

MAINTAINER=	munggo@gmail.com
COMMENT=	Yet another PHP compiling template engine

WRKSRC=		${WRKDIR}/${DISTNAME}

USE_PHP=	yes
WANT_PHP_WEB=	yes
NO_WRKSUBDIR=	yes
NO_BUILD=	yes

SUB_FILES=	pkg-message

do-install:
	${MKDIR} ${STAGEDIR}${DATADIR}
.for f in class.SkyTemplate.php class.SkyTemplate_withDaddy.php
	${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DATADIR}
	${MKDIR} ${STAGEDIR}${DATADIR}/SkyTpl
	${INSTALL_DATA} ${WRKSRC}/SkyTpl/* ${STAGEDIR}${DATADIR}/SkyTpl
.endfor

.include <bsd.port.mk>
