freebsd-ports/www/p5-Apache-DBI/Makefile
Sergey Skvortsov 82ee896654 * fix distfiles fetching - change MASTER_SITE_SUBDIR
(note that correct distfile has different size and checksum)

* simplify RUN_DEPENDS if WITH_MODPERL2 is defined

PR:		ports/98274
Submitted by:	skv
Approced by:	maintainer
2006-06-02 09:53:28 +00:00

47 lines
1.3 KiB
Makefile

# New ports collection makefile for: p5-Apache-DBI
# Date created: 21 December 1999
# Whom: Igor Vinokurov <igor@zynaps.ru>
#
# $FreeBSD$
#
PORTNAME= Apache-DBI
PORTVERSION= 1.00
PORTREVISION= 1
CATEGORIES= www databases perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= ../../authors/id/P/PG/PGOLLUCCI
PKGNAMEPREFIX= p5-
DISTNAME= ${PORTNAME}-${PORTVERSION}_01
MAINTAINER= pgollucci@p6m7g8.com
COMMENT= DBI persistent connection, authentication and authorization
MAN3= Apache::DBI.3 Apache::AuthDBI.3
PERL_CONFIGURE= yes
USE_APACHE= yes
.include <bsd.port.pre.mk>
.if defined(WITH_MODPERL2)
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2
.else
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl
.endif
BUILD_DEPENDS= ${RUN_DEPENDS}
.if ${PERL_LEVEL} < 500800
BUILD_DEPENDS+= ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
.endif
.if ${PERL_LEVEL} < 500600
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
.else
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
.endif
.include <bsd.port.post.mk>