openbsd-ports/www/hs-snap/Makefile
2013-11-25 14:16:22 +00:00

71 lines
2.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2013/11/25 14:16:23 sthen Exp $
COMMENT = Snap project starter and glue code library
DISTNAME = snap-0.12.0
CATEGORIES = www
HOMEPAGE = http://snapframework.com/
MAINTAINER = Jim Razmus II <jim@openbsd.org>, \
Matthias Kilian <kili@openbsd.org>
# BSD3
PERMIT_PACKAGE_CDROM = Yes
MODULES = converters/libiconv \
lang/ghc
MODGHC_BUILD = cabal hackage haddock register
# Support dynamic project reloading via hint.
MODGHC_SETUP_CONF_ARGS =-f hint
WANTLIB += c m pthread util z
RUN_DEPENDS += devel/hs-MonadCatchIO-transformers>=0.2,<0.4 \
devel/hs-aeson>=0.6,<0.7 \
devel/hs-cereal>=0.3,<0.4 \
devel/hs-comonad>=1.1,<3.1 \
devel/hs-configurator>=0.1,<0.3 \
devel/hs-directory-tree>=0.11,<0.12 \
devel/hs-dlist>=0.5,<0.6 \
devel/hs-errors>=1.4,<1.5 \
devel/hs-hashable>=1.1,<1.2 \
devel/hs-lens>=3.7.6,<3.10 \
devel/hs-logict>=0.4.2,<0.7 \
devel/hs-mtl>2.0,<2.2 \
devel/hs-regex-posix>=0.95,<1 \
devel/hs-stm>=2.2,<2.5 \
devel/hs-syb>=0.1,<0.5 \
devel/hs-text>=0.11,<0.12 \
devel/hs-transformers>=0.2,<0.4 \
devel/hs-unordered-containers>=0.1.4,<0.3 \
devel/hs-vector>=0.7.1,<0.11 \
devel/hs-vector-algorithms>=0.4,<0.6 \
security/hs-mwc-random>=0.8,<0.13 \
security/hs-pwstore-fast>=2.2,<2.4 \
textproc/hs-attoparsec>=0.10,<0.11 \
textproc/hs-heist>=0.12,<0.13 \
textproc/hs-xmlhtml>=0.1,<0.3 \
www/hs-clientsession>=0.8,<0.10 \
www/hs-snap-core>=0.9,<0.11 \
www/hs-snap-server>=0.9,<0.11
# Those are NOT mentioned in snap.cabal, but they are required by
# default snap projects created with "snap init", so it's probably a
# good idea to add them:
RUN_DEPENDS += www/hs-snap-loader-dynamic \
www/hs-snap-loader-static
BUILD_DEPENDS += ${RUN_DEPENDS}
# Reuse snaps minimal Setup.hs in the project templates to allow
# building a snap project with something like
# $ runghc Setup.hs configure && runghc Setup.hs build
post-extract:
.for t in barebones default tutorial
@cp -p ${WRKSRC}/Setup.hs ${WRKSRC}/project_template/$t/Setup.hs
.endfor
.include <bsd.port.mk>