From 0105d52fe91ff3283b90a052742100b94b9cb2c4 Mon Sep 17 00:00:00 2001 From: Mark Linimon Date: Sun, 10 Dec 2006 17:49:59 +0000 Subject: 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) --- mail/p5-Sendmail-Milter/Makefile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'mail/p5-Sendmail-Milter') 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 +.include + +.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 -- cgit v1.2.3