freebsd-ports/security/p5-Digest-Whirlpool/Makefile
Gabor Kovesdan 7dc52a691f Change my e-mail address.
Approved by:	erwin (mentor)
2006-12-08 13:46:35 +00:00

34 lines
1,002 B
Makefile

# Ports collection Makefile for: p5-Digest-Whirlpool
# Date created: 17 Dec 2005
# Whom: Gabor Kovesdan
# $FreeBSD$
PORTNAME= Digest-Whirlpool
PORTVERSION= 1.0.3
CATEGORIES= security perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Digest
PKGNAMEPREFIX= p5-
MAINTAINER= gabor@FreeBSD.org
COMMENT= Perl extension for Whirlpool hash algorithm
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64
PERL_CONFIGURE= yes
MAN3= Digest::Whirlpool.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
EXTRA_PATCHES= ${PATCHDIR}/extrapatch-Whirlpool.xs
post-patch:
${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' ${WRKSRC}/Whirlpool.pm
${PERL} -pi -e '$$_="" if m{warnings}' ${WRKSRC}/Whirlpool.pm ${WRKSRC}/t/*.t
${PERL} -pi -e 's/\)/, char **env\)/ if m{int main}' ${WRKSRC}/_whirlpool.c
.endif
.include <bsd.port.post.mk>