summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-11-28 19:24:19 +0000
committernia <nia@pkgsrc.org>2021-11-28 19:24:19 +0000
commit1a9ae589a814559bd06a53372bc94aab43529111 (patch)
treefd07f7beeee8c0c6e8011d79ff92c2c02d90e8c4 /textproc
parentf03a44f5cb96b98c6f23b77bc49d88c670b9d80f (diff)
downloadpkgsrc-1a9ae589a814559bd06a53372bc94aab43529111.tar.gz
hunspell: Allow NetBSD curses to count as "wide curses"
Diffstat (limited to 'textproc')
-rw-r--r--textproc/hunspell/Makefile8
-rw-r--r--textproc/hunspell/options.mk14
2 files changed, 8 insertions, 14 deletions
diff --git a/textproc/hunspell/Makefile b/textproc/hunspell/Makefile
index a2c503490bd..2e8b10c6414 100644
--- a/textproc/hunspell/Makefile
+++ b/textproc/hunspell/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.37 2021/05/24 19:54:25 wiz Exp $
+# $NetBSD: Makefile,v 1.38 2021/11/28 19:24:19 nia Exp $
DISTNAME= hunspell-1.7.0
-PKGREVISION= 5
+PKGREVISION= 6
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GITHUB:=hunspell/}
GITHUB_TAG= v${PKGVERSION_NOREV}
@@ -17,6 +17,8 @@ USE_TOOLS+= pkg-config perl:run autoreconf autoconf automake autopoint
USE_PKGLOCALEDIR= yes
USE_LANGUAGES= c c++03
+CPPFLAGS.SunOS+= -D_XPG6
+
CONFIGURE_ARGS+= --with-ui
PKGCONFIG_OVERRIDE+= hunspell.pc.in
@@ -39,7 +41,7 @@ post-patch:
.include "options.mk"
-
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/hunspell/options.mk b/textproc/hunspell/options.mk
index b4a838c16ee..d3a4e8b92cd 100644
--- a/textproc/hunspell/options.mk
+++ b/textproc/hunspell/options.mk
@@ -1,17 +1,9 @@
-# $NetBSD: options.mk,v 1.8 2021/05/03 09:46:59 wiz Exp $
+# $NetBSD: options.mk,v 1.9 2021/11/28 19:24:19 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.hunspell
+
+# handled by curses framework
PKG_SUPPORTED_OPTIONS= wide-curses
PKG_SUGGESTED_OPTIONS= wide-curses
.include "../../mk/bsd.options.mk"
-
-###
-### Wide curses support; otherwise, default to using narrow curses.
-###
-.if !empty(PKG_OPTIONS:Mwide-curses)
-.include "../../devel/ncursesw/buildlink3.mk"
-CPPFLAGS.SunOS+= -D_XPG6
-.else
-.include "../../mk/curses.buildlink3.mk"
-.endif