aboutsummaryrefslogtreecommitdiffstats
path: root/www/p5-Apache-PageKit/Makefile
blob: 1d10d71f5db802ffcf85c539fd72eab0d9cf6aff (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# New ports collection makefile for:    Apache::PageKit
# Date created:             27 Oct 2001
# Whom:                 Seamus Venasse <svenasse@polaris.ca>
#
# $FreeBSD$
#

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

MAINTAINER= ports@FreeBSD.org
COMMENT=    MVCC web framework using mod_perl, XML and HTML::Template

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}

EXAMPLESDIR?=   ${PREFIX}/share/examples/${PORTNAME}
PERL_CONFIGURE= yes

MAN3=       Apache::ErrorReport.3 \
        Apache::PageKit.3 \
        Apache::PageKit::Model.3 \
        Apache::PageKit::Session.3

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 502102
BROKEN=     "Does not compile"
.endif

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR} ${EXAMPLESDIR} \
        ${EXAMPLESDIR}/Config ${EXAMPLESDIR}/Content \
        ${EXAMPLESDIR}/Model ${EXAMPLESDIR}/Model/MyPageKit \
        ${EXAMPLESDIR}/View ${EXAMPLESDIR}/View/Default \
        ${EXAMPLESDIR}/View/Default/pkit_edit ${EXAMPLESDIR}/View/pdf \
        ${EXAMPLESDIR}/View/print ${EXAMPLESDIR}/View/wml \
        ${EXAMPLESDIR}/View/xml ${EXAMPLESDIR}/contrib \
        ${EXAMPLESDIR}/contrib/bin ${EXAMPLESDIR}/contrib/locale \
        ${EXAMPLESDIR}/contrib/locale/templates \
        ${EXAMPLESDIR}/contrib/locale/templates/empty \
        ${EXAMPLESDIR}/contrib/locale/templates/po
    @${INSTALL_DATA} ${WRKSRC}/docsrc/* ${DOCSDIR}
    @${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/README ${EXAMPLESDIR}
    @${INSTALL_DATA} ${WRKSRC}/eg/View/Default/*.tmpl ${EXAMPLESDIR}/View/Default
    @${INSTALL_DATA} ${WRKSRC}/eg/View/Default/*.xsl ${EXAMPLESDIR}/View/Default
    @${INSTALL_DATA} ${WRKSRC}/eg/View/Default/pkit_edit/* ${EXAMPLESDIR}/View/Default/pkit_edit
    @${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
    @${INSTALL_DATA} ${WRKSRC}/eg/contrib/bin/* ${EXAMPLESDIR}/contrib/bin
    @${INSTALL_DATA} ${WRKSRC}/eg/contrib/locale/README ${EXAMPLESDIR}/contrib/locale
    @${INSTALL_DATA} ${WRKSRC}/eg/contrib/locale/templates/empty/* ${EXAMPLESDIR}/contrib/locale/templates/empty
    @${INSTALL_DATA} ${WRKSRC}/eg/contrib/locale/templates/po/* ${EXAMPLESDIR}/contrib/locale/templates/po
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>