aboutsummaryrefslogtreecommitdiffstats
path: root/security/p5-Crypt-Khazad/Makefile
blob: 09635ac0bf08764fedeaa8f3d859ab2ffa1e9b34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# New ports collection Makefile for:    p5-Crypt-Khazad
# Date created:             20 Dec 2006
# Whom:                     Gabor Kovesdan
# $FreeBSD$

PORTNAME=   Crypt-Khazad
PORTVERSION=    1.0.3
CATEGORIES= security perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Crypt
PKGNAMEPREFIX=  p5-

MAINTAINER= gkovesdan@t-hosting.hu
COMMENT=    Perl extension for Khazad block cipher

PERL_CONFIGURE= yes

MAN3=       Crypt::Khazad.3

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500600
BUILD_DEPENDS+= ${SITE_PERL}/XSLoader.pm:${PORTSDIR}/devel/p5-XSLoader
RUN_DEPENDS+=   ${SITE_PERL}/XSLoader.pm:${PORTSDIR}/devel/p5-XSLoader
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-Khazad.xs

post-patch:
    ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' ${WRKSRC}/Khazad.pm
    ${PERL} -pi -e '$$_="" if m{warnings}' ${WRKSRC}/Khazad.pm ${WRKSRC}/t/*.t
    ${PERL} -pi -e 's/void/int argc, char**argv, char**env/ if m{int main}' ${WRKSRC}/_khazad.c
.endif

.include <bsd.port.post.mk>