aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/hs-texmath
diff options
context:
space:
mode:
authorpgj <pgj@FreeBSD.org>2012-08-03 10:30:07 +0800
committerpgj <pgj@FreeBSD.org>2012-08-03 10:30:07 +0800
commitc375ed37df92a6e58eaf54cf831525f3a49c9629 (patch)
tree8ee3a15fcf61eb9a77ce79ffe7cc567f6e56e480 /textproc/hs-texmath
parent9c52697bc371ab647ee6cd5811c6ca220c7f6e11 (diff)
downloadfreebsd-ports-gnome-c375ed37df92a6e58eaf54cf831525f3a49c9629.tar.gz
freebsd-ports-gnome-c375ed37df92a6e58eaf54cf831525f3a49c9629.tar.zst
freebsd-ports-gnome-c375ed37df92a6e58eaf54cf831525f3a49c9629.zip
- Teach the Haskell Cabal ports to use the new options framework
- Remove some cruft Obtained from: FreeBSD Haskell
Diffstat (limited to 'textproc/hs-texmath')
-rw-r--r--textproc/hs-texmath/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/textproc/hs-texmath/Makefile b/textproc/hs-texmath/Makefile
index 93c2da817a6b..ce9c7049ab1f 100644
--- a/textproc/hs-texmath/Makefile
+++ b/textproc/hs-texmath/Makefile
@@ -7,6 +7,7 @@
PORTNAME= texmath
PORTVERSION= 0.6.0.6
+PORTREVISION= 1
CATEGORIES= textproc haskell
MAINTAINER= haskell@FreeBSD.org
@@ -18,12 +19,13 @@ CABAL_SETUP= Setup.hs
USE_CABAL= parsec>=3 syb xml
-OPTIONS= CGI "Compile CGI executable" off
+OPTIONS_DEFINE= CGI
+
+CGI_DESC= Compile CGI executable
-.include "${.CURDIR}/../../lang/ghc/bsd.cabal.options.mk"
.include <bsd.port.options.mk>
-.if defined(WITH_CGI)
+.if ${PORT_OPTIONS:MCGI}
CONFIGURE_ARGS+= --flags="cgi"
USE_CABAL+= cgi json utf8-string
EXECUTABLE+= texmath-cgi