summaryrefslogtreecommitdiff
path: root/devel/hs-c2hs
diff options
context:
space:
mode:
authorOliver Braun <obraun@FreeBSD.org>2003-06-09 21:46:09 +0000
committerOliver Braun <obraun@FreeBSD.org>2003-06-09 21:46:09 +0000
commit4619933fd50673752160197402a2fb35001a6a77 (patch)
treefb2ff63d150d4bbf8f2c5f2bd1b51162c9c85c85 /devel/hs-c2hs
parentRemove ghc's package.conf.old. (diff)
Use ghc --numeric-version.
Notes
Notes: svn path=/head/; revision=82629
Diffstat (limited to 'devel/hs-c2hs')
-rw-r--r--devel/hs-c2hs/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/devel/hs-c2hs/Makefile b/devel/hs-c2hs/Makefile
index 0b1166415f1a..e197ba4d39e2 100644
--- a/devel/hs-c2hs/Makefile
+++ b/devel/hs-c2hs/Makefile
@@ -20,8 +20,7 @@ RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc
HAS_CONFIGURE= yes
USE_GMAKE= yes
-GHC_VERSION= `${PREFIX}/bin/ghc --version 2>&1 | \
- ${SED} 's/^.*version[ ]*\([0-9.]*\).*/\1/'`
+GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version`
PLIST_SUB+= C2HS_VERSION="${PORTVERSION}" GHC_VERSION="${GHC_VERSION}"
CONFIGURE_ARGS+= --prefix=${PREFIX} --enable-add-package