1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/converters/hs-dataenc/Makefile
Gabor Pali f1905422ee - Fix OPTIONS support for Cabal ports by introducing
bsd.cabal.options.mk
- Fix ports broken with non-default options

Triggered by:	Yuri Pankov <yuri.pankov@gmail.com>
2010-05-22 22:41:50 +00:00

34 lines
847 B
Makefile

# 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>