aboutsummaryrefslogtreecommitdiff
path: root/security/p5-Digest-Whirlpool/Makefile
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2005-12-24 15:45:48 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2005-12-24 15:45:48 +0000
commit0b21f7682565f46009b1fc1ffdd31e43f1804cdc (patch)
tree6a1f90aec85f29b4139a2126dfcd90c2dde68a7b /security/p5-Digest-Whirlpool/Makefile
parented6e46d17d3267d24ebc58b2392ae251f0649309 (diff)
downloadports-0b21f7682565f46009b1fc1ffdd31e43f1804cdc.tar.gz
ports-0b21f7682565f46009b1fc1ffdd31e43f1804cdc.zip
Notes
Diffstat (limited to 'security/p5-Digest-Whirlpool/Makefile')
-rw-r--r--security/p5-Digest-Whirlpool/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/security/p5-Digest-Whirlpool/Makefile b/security/p5-Digest-Whirlpool/Makefile
index 91bd99e637f2..1b7e4d3c79fd 100644
--- a/security/p5-Digest-Whirlpool/Makefile
+++ b/security/p5-Digest-Whirlpool/Makefile
@@ -13,12 +13,22 @@ PKGNAMEPREFIX= p5-
MAINTAINER= gkovesdan@t-hosting.hu
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} <= 500503
-IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again
+
+.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>