summaryrefslogtreecommitdiff
path: root/www/p5-Apache-PageKit/Makefile
blob: e2f6598d6ed0e6037d7a70f5ded1ae999bc15c03 (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
63
64
65
66
67
68
69
70
# New ports collection makefile for:	Apache::PageKit
# Date created:				27 Oct 2001
# Whom:					Seamus Venasse <svenasse@polaris.ca>
#
# $FreeBSD$
#

PORTNAME=		Apache-PageKit
PORTVERSION=		1.07
PORTREVISION=		1
CATEGORIES=		www perl5
MASTER_SITES=		${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	Apache
PKGNAMEPREFIX=		p5-

MAINTAINER=		svenasse@polaris.ca

BUILD_DEPENDS=		${SITE_PERL}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl \
			${SITE_PERL}/${PERL_ARCH}/Apache/Request.pm:${PORTSDIR}/www/p5-libapreq \
			${SITE_PERL}/Apache/Session.pm:${PORTSDIR}/www/p5-Apache-Session \
			${SITE_PERL}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \
			${SITE_PERL}/Data/FormValidator.pm:${PORTSDIR}/textproc/p5-Data-FormValidator \
			${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
			${SITE_PERL}/HTML/FillInForm.pm:${PORTSDIR}/www/p5-HTML-FillInForm \
			${SITE_PERL}/HTML/Template.pm:${PORTSDIR}/www/p5-HTML-Template \
			${SITE_PERL}/HTML/Clean.pm:${PORTSDIR}/www/p5-HTML-Clean \
			${SITE_PERL}/Mail/Mailer.pm:${PORTSDIR}/mail/p5-Mail-Tools \
			${SITE_PERL}/${PERL_ARCH}/Text/Iconv.pm:${PORTSDIR}/converters/p5-Text-Iconv \
			${SITE_PERL}/MD5.pm:${PORTSDIR}/security/p5-MD5 \
			${SITE_PERL}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \
			${SITE_PERL}/XML/XPath.pm:${PORTSDIR}/textproc/p5-XML-XPath \
			${SITE_PERL}/Apache/DBI.pm:${PORTSDIR}/www/p5-Apache-DBI \
			${SITE_PERL}/MIME/Types.pm:${PORTSDIR}/mail/p5-MIME-Types \
			${SITE_PERL}/${PERL_ARCH}/XML/LibXML.pm:${PORTSDIR}/textproc/p5-XML-LibXML \
			${SITE_PERL}/${PERL_ARCH}/XML/LibXSLT.pm:${PORTSDIR}/textproc/p5-XML-LibXSLT
RUN_DEPENDS=		${BUILD_DEPENDS}

SITE_PERL=		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
EXAMPLESDIR?=		${PREFIX}/share/examples/${PORTNAME}
PERL_CONFIGURE=		yes

MAN3=			Apache::ErrorReport.3 \
			Apache::PageKit.3 \
			Apache::PageKit::Model.3 \
			Apache::PageKit::Session.3 \
			XML::XPathTemplate.3
MANPREFIX=		${PREFIX}/lib/perl5/${PERL_VERSION}

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR} ${EXAMPLESDIR} \
		${EXAMPLESDIR}/Config ${EXAMPLESDIR}/Content \
		${EXAMPLESDIR}/Model ${EXAMPLESDIR}/Model/MyPageKit \
		${EXAMPLESDIR}/View ${EXAMPLESDIR}/View/Default \
		${EXAMPLESDIR}/View/pdf ${EXAMPLESDIR}/View/print \
		${EXAMPLESDIR}/View/wml ${EXAMPLESDIR}/View/xml
	@${INSTALL_DATA} ${WRKSRC}/docsrc/* ${DOCSDIR}
	@${INSTALL_DATA} ${WRKSRC}/eg/README ${EXAMPLESDIR}
	@${INSTALL_DATA} ${WRKSRC}/eg/Config/* ${EXAMPLESDIR}/Config
	@${INSTALL_DATA} ${WRKSRC}/eg/Content/* ${EXAMPLESDIR}/Content
	@${INSTALL_DATA} ${WRKSRC}/eg/Model/MyPageKit/* ${EXAMPLESDIR}/Model/MyPageKit
	@${INSTALL_DATA} ${WRKSRC}/eg/View/Default/* ${EXAMPLESDIR}/View/Default
	@${INSTALL_DATA} ${WRKSRC}/eg/View/pdf/* ${EXAMPLESDIR}/View/pdf
	@${INSTALL_DATA} ${WRKSRC}/eg/View/print/* ${EXAMPLESDIR}/View/print
	@${INSTALL_DATA} ${WRKSRC}/eg/View/wml/* ${EXAMPLESDIR}/View/wml
	@${INSTALL_DATA} ${WRKSRC}/eg/View/xml/* ${EXAMPLESDIR}/View/xml
.endif
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>