77 lines
2 KiB
Makefile
77 lines
2 KiB
Makefile
# Created by: Anton Berezin <tobez@tobez.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= Log-Dispatch
|
|
PORTVERSION= 2.39
|
|
CATEGORIES= devel perl5
|
|
MASTER_SITES= CPAN
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= perl@FreeBSD.org
|
|
COMMENT= Suite of OO modules for logging messages to multiple outputs
|
|
|
|
LICENSE= ART20
|
|
|
|
BUILD_DEPENDS= p5-Class-Load>=0:${PORTSDIR}/devel/p5-Class-Load \
|
|
p5-Params-Validate>=0.15:${PORTSDIR}/devel/p5-Params-Validate
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
OPTIONS_DEFINE= APACHELOG MIMELITE MAILSEND MAILSENDER MAILSENDMAIL DOCS
|
|
OPTIONS_DEFAULT=MAILSENDMAIL
|
|
APACHELOG_DESC= Apache::Log support
|
|
MIMELITE_DESC= MIME::Lite support
|
|
MAILSEND_DESC= Mail::Send support
|
|
MAILSENDER_DESC= Mail::Sender support
|
|
MAILSENDMAIL_DESC= Mail::Sendmail support
|
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
MAN3= Log::Dispatch.3 \
|
|
Log::Dispatch::ApacheLog.3 \
|
|
Log::Dispatch::Base.3 \
|
|
Log::Dispatch::Code.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
|
|
PORTDOCS= Changes README
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MAPACHELOG}
|
|
RUN_DEPENDS+= ${APACHE_PKGNAMEPREFIX}mod_perl2>=0:${PORTSDIR}/www/mod_perl2
|
|
USE_APACHE_RUN= 22+
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMIMELITE}
|
|
RUN_DEPENDS+= p5-MIME-Lite>=0:${PORTSDIR}/mail/p5-MIME-Lite
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMAILSEND}
|
|
RUN_DEPENDS+= p5-Mail-Tools>=0:${PORTSDIR}/mail/p5-Mail-Tools
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMAILSENDER}
|
|
RUN_DEPENDS+= p5-Mail-Sender>=0:${PORTSDIR}/mail/p5-Mail-Sender
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMAILSENDMAIL}
|
|
RUN_DEPENDS+= p5-Mail-Sendmail>=0:${PORTSDIR}/mail/p5-Mail-Sendmail
|
|
.endif
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${DOCSDIR}/
|
|
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|