freebsd-ports/devel/hs-ansi-wl-pprint/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

32 lines
807 B
Makefile

# New ports collection makefile for: hs-ansi-wl-pprint
# Date created: May 21, 2010
# Whom: Gabor Pali <pgj@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ansi-wl-pprint
PORTVERSION= 0.5.1
CATEGORIES= devel haskell
MAINTAINER= haskell@FreeBSD.org
COMMENT= The Wadler/Leijen Pretty Printer for colored ANSI terminal output
USE_HACKAGE= ansi-terminal>=0.4.0
OPTIONS= EXAMPLE "Build the example application" off
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.options.mk"
.include <bsd.port.options.mk>
.if defined(WITH_EXAMPLE)
CONFIGURE_ARGS+= --flags="Example"
EXECUTABLE= ansi-wl-pprint-example
PLIST_SUB+= MAYBE_EXAMPLE=""
.else
CONFIGURE_ARGS+= --flags="-Example"
PLIST_SUB+= MAYBE_EXAMPLE="@comment "
.endif
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>