summaryrefslogtreecommitdiff
path: root/security/hs-RSA/Makefile
blob: 0b2849ef17c27aff0b162dbf203d60280897ca54 (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
34
35
36
37
38
# $FreeBSD$

PORTNAME=	RSA
PORTVERSION=	1.2.2.0
PORTREVISION=	1
CATEGORIES=	security haskell

MAINTAINER=	haskell@FreeBSD.org
COMMENT=	Implementation of RSA, using the padding schemes of PKCS#1 v2.1

LICENSE=	BSD

CABAL_SETUP=	Setup.hs
USE_CABAL=	crypto-api>=0.10 crypto-pubkey-types>=0.2 monadcryptorandom SHA

OPTIONS_DEFINE=		MD5 BINARY
OPTIONS_DEFAULT=	MD5 BINARY

MD5_DESC=		Include support for using MD5
BINARY_DESC=		Use the binary package for serialization

.include "${.CURDIR}/../../lang/ghc/bsd.cabal.options.mk"

.if ${PORT_OPTIONS:MMD5}
CONFIGURE_ARGS+=	--flags="IncludeMD5"
USE_CABAL+=		pureMD5
.else
CONFIGURE_ARGS+=	--flags="-IncludeMD5"
.endif

.if ${PORT_OPTIONS:MBINARY}
CONFIGURE_ARGS+=	--flags="UseBinary"
.else
CONFIGURE_ARGS+=	--flags="-UseBinary"
.endif

.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>