aboutsummaryrefslogtreecommitdiff
path: root/mail/p5-Sendmail-Milter
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2006-12-10 17:49:59 +0000
committerMark Linimon <linimon@FreeBSD.org>2006-12-10 17:49:59 +0000
commit0105d52fe91ff3283b90a052742100b94b9cb2c4 (patch)
tree5da670d43920de45b411d769c360ec9a3bc8e29d /mail/p5-Sendmail-Milter
parent24cf8ca8d2cfdd81576f40737d9b9a879946f6ed (diff)
downloadports-0105d52fe91ff3283b90a052742100b94b9cb2c4.tar.gz
ports-0105d52fe91ff3283b90a052742100b94b9cb2c4.zip
Set to require perl built with threads to save from deprecation. I don't
know of any better way to detect this. PR: ports/104928 Submitted by: marc@pilgerer.org (new maintainer)
Notes
Notes: svn path=/head/; revision=179399
Diffstat (limited to 'mail/p5-Sendmail-Milter')
-rw-r--r--mail/p5-Sendmail-Milter/Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/mail/p5-Sendmail-Milter/Makefile b/mail/p5-Sendmail-Milter/Makefile
index c34b18b503ec..6ba66ca778f6 100644
--- a/mail/p5-Sendmail-Milter/Makefile
+++ b/mail/p5-Sendmail-Milter/Makefile
@@ -12,15 +12,20 @@ MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Sendmail
PKGNAMEPREFIX= p5-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= A module to write mail filters in Perl using sendmail's mail filter API
-
-IGNORE= "Requires perl compiled manually with threads."
-DEPRECATED= ${IGNORE}
-EXPIRATION_DATE=2006-12-01
+MAINTAINER= marc@pilgerer.org
+COMMENT= Module to write mail filters in Perl using sendmail's mail filter API
PERL_CONFIGURE= yes
MAN3= Sendmail::Milter.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if exists(${PERL5})
+PERLTHREADS!= ${PERL5} -V:usethreads | ${AWK} '/define/ { print "define"; exit }'
+.if ${PERLTHREADS} != "define"
+IGNORE= requires perl to be built with -DWITH_THREADS
+.endif
+.endif
+
+.include <bsd.port.post.mk>