aboutsummaryrefslogtreecommitdiff
path: root/www/p5-CGI-FormBuilder/Makefile
blob: 5b272a0efc24e391725b8b77f694ff49dbe6003c (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
54
55
56
57
58
59
60
61
62
# New ports collection makefile for:	www/p5-CGI-FormBuilder
# Date created:				14 Sep 2006
# Whom:					Fernan Aguero
#
# $FreeBSD$

PORTNAME=	CGI-FormBuilder
PORTVERSION=	3.0501
CATEGORIES=	www perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	../by-authors/id/N/NW/NWIGER
PKGNAMEPREFIX=	p5-
EXTRACT_SUFX=	.tgz

MAINTAINER=	fernan@iib.unsam.edu.ar
COMMENT=	FormBuilder for CGI

PERL_CONFIGURE=	yes

OPTIONS=	TT		"Template Toolkit support" on \
		HTML_TEMPLATE	"HTML::Template support" off \
		TEXT_TEMPLATE	"Text::Template support" off \
		CGI_FAST_TEMPLATE "CGI::FastTemplate support" off

MAN3=	CGI::FormBuilder.3 \
	CGI::FormBuilder::Template::Builtin.3 \
	CGI::FormBuilder::Template::Div.3 \
	CGI::FormBuilder::Template::HTML.3 \
	CGI::FormBuilder::Source::File.3 \
	CGI::FormBuilder::Template.3 \
	CGI::FormBuilder::Multi.3 \
	CGI::FormBuilder::Template::TT2.3 \
	CGI::FormBuilder::Test.3 \
	CGI::FormBuilder::Util.3 \
	CGI::FormBuilder::Template::Text.3 \
	CGI::FormBuilder::Source.3 \
	CGI::FormBuilder::Field.3 \
	CGI::FormBuilder::Template::Fast.3 \
	CGI::FormBuilder::Messages.3

post-patch:
	@${FIND} ${WRKSRC} -name "*.orig" -delete

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_TT)
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Template.pm:${PORTSDIR}/www/p5-Template-Toolkit
.endif

.if defined(WITH_HTML_TEMPLATE)
RUN_DEPENDS+=	${SITE_PERL}/HTML/Template.pm:${PORTSDIR}/www/p5-HTML-Template
.endif

.if defined(WITH_TEXT_TEMPLATE)
RUN_DEPENDS+=	${SITE_PERL}/Text/Template.pm:${PORTSDIR}/textproc/p5-Text-Template
.endif

.if defined(WITH_CGI_FAST_TEMPLATE)
RUN_DEPENDS+=	${SITE_PERL}/CGI/FastTemplate.pm:${PORTSDIR}/www/p5-CGI-FastTemplate
.endif

.include <bsd.port.post.mk>