aboutsummaryrefslogtreecommitdiff
path: root/devel/hs-c2hs/Makefile
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/Makefile
parentccd57bc622512f37d4c7c9eb5795a66ffc646746 (diff)
downloadports-4619933fd50673752160197402a2fb35001a6a77.tar.gz
ports-4619933fd50673752160197402a2fb35001a6a77.zip
Notes
Diffstat (limited to 'devel/hs-c2hs/Makefile')
-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