diff options
Diffstat (limited to 'textproc/hs-haxml/Makefile')
-rw-r--r-- | textproc/hs-haxml/Makefile | 3 |
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 " |