2010-05-15 22:14:30 +00:00
|
|
|
# New ports collection makefile for: hs-citeproc-hs
|
|
|
|
# Date created: May 14, 2010
|
|
|
|
# Whom: Gabor Pali <pgj@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= citeproc-hs
|
2012-06-03 22:30:29 +00:00
|
|
|
PORTVERSION= 0.3.4
|
2010-05-15 22:14:30 +00:00
|
|
|
CATEGORIES= textproc haskell
|
|
|
|
|
|
|
|
MAINTAINER= haskell@FreeBSD.org
|
|
|
|
COMMENT= A Citation Style Language implementation in Haskell
|
|
|
|
|
2011-05-09 05:28:57 +00:00
|
|
|
LICENSE= BSD
|
|
|
|
|
|
|
|
USE_CABAL= json mtl pandoc-types>=1.8 utf8-string xml
|
2010-05-15 22:14:30 +00:00
|
|
|
|
2011-05-09 05:28:57 +00:00
|
|
|
OPTIONS= BIBUTILS "Use Chris Putnam's Bibutils" on \
|
|
|
|
NETWORK "Use network and HTTP to retrieve CSL file" on
|
2010-05-15 22:14:30 +00:00
|
|
|
|
2010-05-22 22:41:50 +00:00
|
|
|
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.options.mk"
|
2010-05-15 22:14:30 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_BIBUTILS)
|
|
|
|
CONFIGURE_ARGS+= --flags="bibutils"
|
2011-05-09 05:28:57 +00:00
|
|
|
USE_CABAL+= hs-bibutils>=0.3
|
2010-05-15 22:14:30 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --flags="-bibutils"
|
|
|
|
.endif
|
|
|
|
|
2011-05-09 05:28:57 +00:00
|
|
|
.if defined(WITH_NETWORK)
|
|
|
|
CONFIGURE_ARGS+= --flags="network"
|
|
|
|
USE_CABAL+= HTTP>=4000.0.9 network>=2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --flags="-network"
|
|
|
|
.endif
|
|
|
|
|
2010-05-15 22:14:30 +00:00
|
|
|
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
|
|
|
|
.include <bsd.port.mk>
|