# $FreeBSD: security/hs-certificate/Makefile 331644 2013-10-26 00:52:33Z gerald $

PORTNAME=	certificate
PORTVERSION=	1.3.7
PORTREVISION=	1
CATEGORIES=	security haskell

MAINTAINER=	haskell@FreeBSD.org
COMMENT=	Certificates and Key Reader/Writer

LICENSE=	BSD

USE_CABAL=	asn1-data>=0.7.1 crypto-pubkey-types>=0.3 cryptohash \
		mtl pem>=0.1

OPTIONS_DEFINE=		EXECUTABLE

EXECUTABLE_DESC=	Build the executable

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

.if ${PORT_OPTIONS:MEXECUTABLE}
CONFIGURE_ARGS+=	--flags="executable"
USE_CABAL+=		cmdargs text>=0.11 cryptocipher>=0.3.0
EXECUTABLE+=		certificate
.else
CONFIGURE_ARGS+=	--flags="-executable"
.endif

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