aboutsummaryrefslogblamecommitdiff
path: root/www/p5-Kwiki-ModPerl/Makefile
blob: 1ac9f73ee0cd8f7051129458d9c0893b4c913300 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                        
                    




                                        
                                               




                                                              
                   




                                                                                  
                                                                           








                                                                               




                                                                                 





                             
# New ports collection makefile for:	p5-Kwiki-ModPerl
# Date created:		Wed Apr  6 16:30:34 CST 2005
# Whom:			clsung
#
# $FreeBSD$
#

PORTNAME=	Kwiki-ModPerl
PORTVERSION=	0.08
CATEGORIES=	www perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	Kwiki
PKGNAMEPREFIX=	p5-

MAINTAINER=	apeiron+ports@coitusmentis.info
COMMENT=	Enable Kwiki to work under mod_perl

BUILD_DEPENDS=	${SITE_PERL}/Kwiki.pm:${PORTSDIR}/www/p5-Kwiki
RUN_DEPENDS=	${BUILD_DEPENDS}

USE_REINPLACE=	yes
PERL_CONFIGURE=	yes

.if defined(WITH_APACHE2)
BUILD_DEPENDS+=	${LOCALBASE}/libexec/apache2/mod_perl.so:${PORTSDIR}/www/mod_perl2
pre-patch:
	@${REINPLACE_CMD} -e 's|mod_perl|mod_perl2|g' ${WRKSRC}/Makefile.PL
.else
BUILD_DEPENDS+=	${LOCALBASE}/libexec/apache/libperl.so:${PORTSDIR}/www/mod_perl
.endif

MAN3=		Kwiki::ModPerl.3

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500800
IGNORE=		requires Perl 5.8.0 or later. Install lang/perl5.8 then try again
.elif defined(WITH_APACHE2) && ${PERL_LEVEL} < 500807
# Recent versions of mod_perl2 require a newer version of CGI.pm than is
# shipped with Perl < 5.8.7.
BUILD_DEPENDS+=	${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm
.endif

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>