aboutsummaryrefslogtreecommitdiffstats
path: root/security/hs-RSA/Makefile
blob: 97bae85ca2a541dad2b112eabd86851810659411 (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
# $FreeBSD$

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

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

LICENSE=    BSD

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>