summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgutteridge <gutteridge@pkgsrc.org>2019-10-29 05:12:47 +0000
committergutteridge <gutteridge@pkgsrc.org>2019-10-29 05:12:47 +0000
commite24bd2d6ae078337b688b280d5c0512d8a157195 (patch)
tree0c46c097227cfd8803ef0d24f7d6da05b3d2343f
parent68a8411220cad1d35beb227c686fb247fc87b134 (diff)
downloadpkgsrc-e24bd2d6ae078337b688b280d5c0512d8a157195.tar.gz
ghc7: build fix (workaround) for NetBSD 9.x
NetBSD 9.x have libcurses with a newer major version than the bootstrap kit is linked against. For now, work around this with compat80. (This could also be dealt with by creating versioned bootstrap kits, but that's more involved, and NetBSD 9.x is pre- release software, so best to leave this off for now.) Thanks to Greg Troxel for the compat80 hint.
-rw-r--r--lang/ghc7/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/ghc7/Makefile b/lang/ghc7/Makefile
index a99437a6fdf..1de2e356fe9 100644
--- a/lang/ghc7/Makefile
+++ b/lang/ghc7/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2019/08/11 13:21:21 wiz Exp $
+# $NetBSD: Makefile,v 1.35 2019/10/29 05:12:47 gutteridge Exp $
# -----------------------------------------------------------------------------
# Package metadata
#
@@ -188,6 +188,13 @@ STRIP_FILES_SKIP+= lib/${PKGNAME_NOREV}/libHSrts.a
BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
+# 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].*)
+BUILD_DEPENDS+= compat80-[0-9]*:../../emulators/compat80
+.endif
+
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"