summaryrefslogtreecommitdiff
path: root/textproc/hs-haxml
diff options
context:
space:
mode:
authorOliver Braun <obraun@FreeBSD.org>2003-06-09 22:26:18 +0000
committerOliver Braun <obraun@FreeBSD.org>2003-06-09 22:26:18 +0000
commitce9681d793d748cbf409fa2d2b5a0792d3599402 (patch)
tree90b42d3f67beaab46ce4977054eaf68c3aa9cf61 /textproc/hs-haxml
parentUse ghc --numeric-version. (diff)
Use ghc --numeric-version.
Notes
Notes: svn path=/head/; revision=82630
Diffstat (limited to 'textproc/hs-haxml')
-rw-r--r--textproc/hs-haxml/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/textproc/hs-haxml/Makefile b/textproc/hs-haxml/Makefile
index 4ee0cec8c2e3..b2352ef57300 100644
--- a/textproc/hs-haxml/Makefile
+++ b/textproc/hs-haxml/Makefile
@@ -46,8 +46,7 @@ PLIST_SUB+= NHC98=""
PLIST_SUB+= NHC98="@comment "
.endif
.if defined(WITH_GHC)
-GHC_VERSION= `${PREFIX}/bin/ghc --version 2>&1 | \
- ${SED} 's/^.*version[ ]*\([0-9.]*\).*/\1/'`
+GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version`
PLIST_SUB+= GHC="" GHC_VERSION="${GHC_VERSION}"
.else
PLIST_SUB+= GHC="@comment "