freebsd-ports/security/p5-Digest-DJB/Makefile
Yen-Ming Lee 76b50962d0 - unbreak on old perl
Submitted by:	leeym
Approved by:	maintainer via email
2005-12-24 02:50:55 +00:00

30 lines
702 B
Makefile

# Ports collection Makefile for: p5-Digest-DJB
# Date created: 17 Dec 2005
# Whom: Gabor Kovesdan
# $FreeBSD$
PORTNAME= Digest-DJB
PORTVERSION= 1.00
CATEGORIES= security perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Digest
PKGNAMEPREFIX= p5-
MAINTAINER= gkovesdan@t-hosting.hu
COMMENT= Perl extension for D.J Bernstein's hash algorithm
PERL_CONFIGURE= yes
MAN3= Digest::DJB.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
EXTRA_PATCHES= ${PATCHDIR}/extrapatch-DJB.xs
post-patch:
${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' ${WRKSRC}/DJB.pm
${PERL} -pi -e '$$_="" if m{5.006|warnings}' ${WRKSRC}/DJB.pm
.endif
.include <bsd.port.post.mk>