freebsd-ports/www/p5-Apache-AuthCookie/Makefile
Olli Hauer 0e244ba4c0 - add additional check for APACHE_VERSION, else
the port will build wrong if MODPERL2 is not
  defined amd apache20 or apache22 is the default.
- no PORTREVISION bump!

PR:		ports/154871
Submitted by:	myself
Approved by:	pgollucci
2011-02-21 23:10:50 +00:00

40 lines
1.2 KiB
Makefile

# New ports collection makefile for: Apache-AuthCookie
# Date created: Sun Dec 31 19:55:36 2000
# Whom: will
#
# $FreeBSD$
#
PORTNAME= Apache-AuthCookie
PORTVERSION= 3.15
CATEGORIES= www perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= A perl module to provide custom forms for reauthentication
USE_APACHE= 13+
.include <bsd.port.pre.mk>
.if defined(WITH_MODPERL2) || ${APACHE_VERSION} > 13
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2
.else
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl \
${SITE_PERL}/${PERL_ARCH}/Apache/Test.pm:${PORTSDIR}/www/p5-Apache-Test
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl
.endif
CURUSER?= `whoami`
CURGRP?= `groups | ${AWK} '{print $$1}'`
TESTPORT?= 8228
PERL_CONFIGURE= yes
CONFIGURE_ENV+= APACHE="${HTTPD}" \
TESTUSER="${CURUSER}" \
TESTGRP="${CURGRP}" \
TESTPORT="${TESTPORT}"
MAN3= Apache::AuthCookie.3 Apache2::AuthCookie.3 Apache::AuthCookie::Util.3 Apache::AuthCookie::FAQ.3
.include <bsd.port.post.mk>