aboutsummaryrefslogtreecommitdiff
path: root/converters/hs-dataenc/Makefile
blob: 85233b72767e3f62b1c30e5b0bad2326da2e5f8e (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: hs-dataenc
# Date created:        May 14, 2010
# Whom:                Gabor Pali <pgj@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	dataenc
PORTVERSION=	0.13.0.2
CATEGORIES=	converters haskell

MAINTAINER=	haskell@FreeBSD.org
COMMENT=	Data encoding library

CABAL_SETUP=	Setup.hs

OPTIONS=	BUILDTESTS "Build unit and quickcheck tests" off

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

.if defined(WITH_BUILDTESTS)
CONFIGURE_ARGS+=	--flags="BuildTests"
USE_HACKAGE+=		QuickCheck>=2.1.0.0 test-framework test-framework-hunit test-framework-quickcheck2
EXECUTABLE+=		tests
PLIST_SUB+=		MAYBE_BUILDTESTS=""
.else
CONFIGURE_ARGS+=	--flags="-BuildTests"
PLIST_SUB+=		MAYBE_BUILDTESTS="@comment "
.endif

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