freebsd-ports/devel/p5-Log-Dispatch/Makefile
Masafumi Max NAKANE 5fbffee0ed Get rid of WITH_APACHE2. Now this port detects which version of Apache
is on the system and defines dependency on appropriate mod_perl.
(If no Apache is installed, depends on mod_perl2.)
While at it, minor cosmetic change was also made.

Approved by:	kuriyama
Feature safe:	yes
2010-02-28 07:59:51 +00:00

85 lines
2.1 KiB
Makefile

# New ports collection makefile for: devel/p5-Log-Dispatch
# Date created: 17 May 2001
# Whom: Anton Berezin <tobez@tobez.org>
#
# $FreeBSD$
#
PORTNAME= Log-Dispatch
PORTVERSION= 2.26
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= A suite of OO modules for logging messages to multiple outputs
RUN_DEPENDS= p5-Params-Validate>=0.15:${PORTSDIR}/devel/p5-Params-Validate
BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_MODBUILD= yes
MAN3= Log::Dispatch.3 \
Log::Dispatch::ApacheLog.3 \
Log::Dispatch::Base.3 \
Log::Dispatch::Email.3 \
Log::Dispatch::Email::MIMELite.3 \
Log::Dispatch::Email::MailSend.3 \
Log::Dispatch::Email::MailSender.3 \
Log::Dispatch::Email::MailSendmail.3 \
Log::Dispatch::File.3 \
Log::Dispatch::File::Locked.3 \
Log::Dispatch::Handle.3 \
Log::Dispatch::Null.3 \
Log::Dispatch::Output.3 \
Log::Dispatch::Screen.3 \
Log::Dispatch::Syslog.3
OPTIONS= APACHELOG "Apache::Log support" off \
EMAIL_MIMELITE "MIME::Lite support" off \
EMAIL_MAILSEND "Mail::Send support" off \
EMAIL_MAILSENDMAIL "Mail::Sendmail support" on \
MAIL_SENDER "Mail::Sender support" off
.if !defined(NOPORTDOCS)
PORTDOCS= Changes README
post-install:
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
.include <bsd.port.options.mk>
.if defined(WITH_APACHELOG)
USE_APACHE= 1.3+
.endif
.include <bsd.port.pre.mk>
.if defined(WITH_APACHELOG)
.if ${APACHE_VERSION} == 13
RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libperl.so:${PORTSDIR}/www/mod_perl
.else
RUN_DEPENDS+= mod_perl2>=2.0:${PORTSDIR}/www/mod_perl2
.endif
.endif
.if defined(WITH_EMAIL_MIMELITE)
RUN_DEPENDS+= ${SITE_PERL}/MIME/Lite.pm:${PORTSDIR}/mail/p5-MIME-Lite
.endif
.if defined(WITH_EMAIL_MAILSEND)
RUN_DEPENDS+= ${SITE_PERL}/Mail/Send.pm:${PORTSDIR}/mail/p5-Mail-Tools
.endif
.if !defined(WITHOUT_EMAIL_MAILSENDMAIL)
RUN_DEPENDS+= ${SITE_PERL}/Mail/Sendmail.pm:${PORTSDIR}/mail/p5-Mail-Sendmail
.endif
.if defined(WITH_MAIL_SENDER)
RUN_DEPENDS+= ${SITE_PERL}/Mail/Sender.pm:${PORTSDIR}/mail/p5-Mail-Sender
.endif
.include <bsd.port.post.mk>