hunspell: Allow NetBSD curses to count as "wide curses"
This commit is contained in:
parent
00f9b840dd
commit
9d9286a1c2
2 changed files with 8 additions and 14 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue