aboutsummaryrefslogtreecommitdiffstats
path: root/www/php-templates/Makefile
blob: 92536d76dbd89c89f6a58dd85b5a06f13e73d7fc (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
# Created by: vanilla
# $FreeBSD$

PORTNAME=   php-templates
PORTVERSION=    1.7.2
CATEGORIES= www
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/1.7:ext \
        SF/${PORTNAME}/${PORTNAME}-doc/html:doc
DISTNAME=   php_templates-${PORTVERSION}
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX}:ext
DISTFILES+= php_templates-doc-eng-1.1${EXTRACT_SUFX}:doc

MAINTAINER= ports@FreeBSD.org
COMMENT=    Template framework for PHP

WRKSRC=     ${WRKDIR}/templates
USES=       dos2unix

USE_PHP=    yes
USE_PHPIZE= yes

CONFIGURE_ARGS= --enable-templates=shared

SUB_FILES=  pkg-message

PORTDOCS=   *

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}
    @${INSTALL_DATA} ${WRKSRC}/modules/templates.so \
        ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    @${INSTALL_DATA} ${STAGEDIR}${WRKSRC}-doc/* ${DOCSDIR}

.include <bsd.port.mk>