summaryrefslogtreecommitdiffstats
path: root/mail/yadda
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2004-05-17 14:19:47 +0000
committererwin <erwin@FreeBSD.org>2004-05-17 14:19:47 +0000
commitdf9ec15eb5483687bb61ffa1863c585ac99474a4 (patch)
tree00e67c06b50b1336dd948becf35a1047d254ac05 /mail/yadda
parente98b627eee0a03f307b6ffa4204584102929e7be (diff)
downloadFreeBSD-ports-df9ec15eb5483687bb61ffa1863c585ac99474a4.zip
FreeBSD-ports-df9ec15eb5483687bb61ffa1863c585ac99474a4.tar.gz
Depend on the right p5-DBI depending on installed perl version.
PR: 66736 Approved by: maintainer
Diffstat (limited to 'mail/yadda')
-rw-r--r--mail/yadda/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/mail/yadda/Makefile b/mail/yadda/Makefile
index 808a387..a1e5f81 100644
--- a/mail/yadda/Makefile
+++ b/mail/yadda/Makefile
@@ -14,8 +14,7 @@ MASTER_SITES= http://code.printf.dk/~decius/yadda/ \
MAINTAINER= jesper@noehr.org
COMMENT= Yet Another Damn Delivery Agent
-RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
- ${SITE_PERL}/Mail/Audit.pm:${PORTSDIR}/mail/p5-Mail-Audit
+RUN_DEPENDS= ${SITE_PERL}/Mail/Audit.pm:${PORTSDIR}/mail/p5-Mail-Audit
USE_PERL5_RUN= yes
@@ -26,4 +25,12 @@ do-build:
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/yadda ${PREFIX}/sbin
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
+.else
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
+.endif
+
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud