# New ports collection makefile for: hs-yesod
# Date created:        December 26, 2011
# Whom:                haskell@FreeBSD.org
#
# $FreeBSD: ports/www/hs-yesod/Makefile,v 1.1 2012/02/18 17:53:13 pgj Exp $
#

PORTNAME=	yesod
PORTVERSION=	0.9.4.1
CATEGORIES=	www haskell

MAINTAINER=	haskell@FreeBSD.org
COMMENT=	Creation of type-safe, RESTful web applications

LICENSE=	BSD

USE_CABAL=	attoparsec>=0.10 blaze-builder>=0.2.1.4 blaze-html>=0.4.1.3 \
		hamlet>=0.10 http-types>=0.6.1 monad-control>=0.2 \
		parsec>=2.1 shakespeare-css>=0.10 shakespeare-js>=0.10 \
		shakespeare-text>=0.10 text>=0.11 transformers>=0.2.2 \
		unix-compat>=0.2 wai>=0.4 wai-extra>=0.4.6 warp>=0.4 \
		yesod-auth>=0.7 yesod-core>=0.9.3.4 yesod-form>=0.3 \
		yesod-json>=0.2.2 yesod-persistent>=0.2

EXECUTABLE=	yesod

OPTIONS=	THREADED	"Multi-threaded execution"	on

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

.if defined(WITH_THREADED)
CONFIGURE_ARGS+=	--flags="threaded"
.else
CONFIGURE_ARGS+=	--flags="-threaded"
.endif

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