aboutsummaryrefslogtreecommitdiffstats
path: root/www/p5-libapreq/Makefile
blob: 528b1de6c9fafb1b2b4b0e81fd95f9a6f5d2591e (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
# New ports collection makefile for:    p5-libapreq
# Date created:             March 13, 2000
# Whom:                     Frank Mayhar <frank@exit.com>
#
# $FreeBSD$
#

PORTNAME=   libapreq
PORTVERSION=    1.33
CATEGORIES= www perl5 devel
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Apache
PKGNAMEPREFIX=  p5-

MAINTAINER= skv@FreeBSD.org
COMMENT=    Generic Apache Request Library

.if defined(WITH_MODPERL2)
IGNORE=     This port does not support mod_perl2
.else
RUN_DEPENDS?=   ${SITE_PERL}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl
BUILD_DEPENDS=  ${RUN_DEPENDS} \
        ${SITE_PERL}/${PERL_ARCH}/Apache/Test.pm:${PORTSDIR}/www/p5-Apache-Test
.endif

PERL_CONFIGURE= yes

MAN3=       Apache::Cookie.3 Apache::Request.3 Apache::libapreq.3 \
        libapreq.3

.include <bsd.port.pre.mk>

post-patch:
    @${PERL} -pi~ -e '$$_="" if ($$.>37 && $$.<63) || /PREREQ_PM/' \
        ${WRKSRC}/Makefile.PL
.if ${PERL_LEVEL} < 500600
    @${PERL} -pi~ -e '$$_="#define aTHX_\n" if $$. == 155' \
        ${WRKSRC}/c/apache_request.h
.endif

post-install:
.ifndef(NOPORTDOCS)
    @${ECHO_MSG} "===>   Installing examples for ${PKGNAME}"
    @${MKDIR} ${EXAMPLESDIR}/c/testapreq
    @${MKDIR} ${EXAMPLESDIR}/perl
    ${INSTALL_DATA} ${WRKSRC}/eg/c/testapreq/* ${EXAMPLESDIR}/c/testapreq
    ${INSTALL_SCRIPT} ${WRKSRC}/eg/perl/* ${EXAMPLESDIR}/perl
.endif

.include <bsd.port.post.mk>