summaryrefslogtreecommitdiff
path: root/www/ap-dtcl/Makefile
blob: 93e69fcfc562df342387cd4d9c9e2834094c7534 (plain)
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
# $NetBSD: Makefile,v 1.26 2006/02/05 23:11:17 joerg Exp $

DISTNAME=	mod_dtcl-0.11.6
PKGNAME=	ap-dtcl-0.11.2
PKGREVISION=	3
CATEGORIES=	www
MASTER_SITES=	http://tcl.apache.org/mod_dtcl/download/

MAINTAINER=	jwise@NetBSD.org
HOMEPAGE=	http://tcl.apache.org/
COMMENT=	Simple, fast Tcl server side scripting for apache

WRKSRC=		${WRKDIR}/mod_dtcl

TCLSH=		${BUILDLINK_PREFIX.tcl}/bin/tclsh
CPPFLAGS+=	-I${BUILDLINK_PREFIX.apache}/include/httpd -DEAPI

MAKE_ENV+=	TCLSH=${TCLSH:Q}
MAKE_ENV+=	INCLUDES=${CPPFLAGS:M*:Q}

APACHE_MODULE=	yes
APACHEMODDIR=	${PREFIX}/lib/httpd
HTMLDIR=	${PREFIX}/share/doc/html/mod_dtcl
EGDIR=		${PREFIX}/share/examples/mod_dtcl

.include "../../lang/tcl/buildlink3.mk"
.include "../../www/apache/buildlink3.mk"

do-build:
	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} builddtcl.sh

do-install:
	${INSTALL_DATA_DIR} ${APACHEMODDIR}
	${INSTALL_DATA} ${WRKSRC}/mod_dtcl.so ${APACHEMODDIR}
	${INSTALL_DATA_DIR} ${HTMLDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/*.gif ${HTMLDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/*.html ${HTMLDIR}
	${INSTALL_DATA_DIR} ${EGDIR}/tests
	cd ${WRKSRC}; ${INSTALL_DATA} tests/README ${EGDIR}/tests
	cd ${WRKSRC}; ${INSTALL_DATA} tests/dtcl-test.tcl ${EGDIR}/tests
	cd ${WRKSRC}; ${INSTALL_DATA} tests/dtcl-test2.ttml ${EGDIR}/tests
	cd ${WRKSRC}; ${INSTALL_DATA} tests/dtcl.test ${EGDIR}/tests
	cd ${WRKSRC}; ${INSTALL_DATA} tests/makeconf.tcl ${EGDIR}/tests
	cd ${WRKSRC}; ${INSTALL_DATA} tests/runtests.tcl ${EGDIR}/tests
	cd ${WRKSRC}; ${INSTALL_DATA} tests/template.conf.tcl ${EGDIR}/tests
	cd ${WRKSRC}; ${INSTALL_DATA} contrib/*.ttml ${EGDIR}
	cd ${WRKSRC}; ${INSTALL_DATA} contrib/*.tcl ${EGDIR}
	cd ${WRKSRC}; ${INSTALL_DATA} docs/examples.ttml ${EGDIR}

.include "../../mk/bsd.pkg.mk"