summaryrefslogtreecommitdiff
path: root/lang/ghc80
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2022-05-05 08:18:59 +0000
committernia <nia@pkgsrc.org>2022-05-05 08:18:59 +0000
commit9ca81da3067836b33a126b1ce4ea763d63151891 (patch)
tree8f2789170481917b13191939c352b76db2dbf53c /lang/ghc80
parente7763293c07dea44b26f1efc6300858f03e7b8ea (diff)
downloadpkgsrc-9ca81da3067836b33a126b1ce4ea763d63151891.tar.gz
ghc*: Use OPSYS_VERSION to numerically compare NetBSD versions
Diffstat (limited to 'lang/ghc80')
-rw-r--r--lang/ghc80/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/ghc80/Makefile b/lang/ghc80/Makefile
index 2cc4638e813..4c77368d7d9 100644
--- a/lang/ghc80/Makefile
+++ b/lang/ghc80/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2021/12/08 16:02:15 adam Exp $
+# $NetBSD: Makefile,v 1.16 2022/05/05 08:18:59 nia Exp $
# -----------------------------------------------------------------------------
# Package metadata
#
@@ -178,7 +178,7 @@ BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx
# NetBSD 9.x have libcurses with a newer major version than the
# bootstrap kit is linked against. For now, work around this with
# compat80.
-.if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M[0-8].*)
+.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} >= 090000
BUILD_DEPENDS+= compat80-[0-9]*:../../emulators/compat80
# In a sandboxed build environment, we have to reach over to the
# installed libraries themselves, since the symlinks compat80 adds