disable the ability to build cmus with curses libraries besides ncursesw.

cmus doesn't build with others because it uses a type MEVENT which is
only available in ncursesw.
This commit is contained in:
maya 2016-08-24 09:34:32 +00:00
parent a188c4da01
commit c6735f03ed
2 changed files with 4 additions and 17 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.62 2016/08/17 00:06:40 ryoon Exp $
# $NetBSD: Makefile,v 1.63 2016/08/24 09:34:32 maya Exp $
DISTNAME= cmus-2.7.1
PKGREVISION= 2
@ -40,4 +40,5 @@ CONFIGURE_ARGS+= CONFIG_SUN=n
.include "../../mk/dlopen.buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/ncursesw/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,8 @@
# $NetBSD: options.mk,v 1.14 2014/08/18 09:34:49 gls Exp $
# $NetBSD: options.mk,v 1.15 2016/08/24 09:34:32 maya Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.cmus
PKG_SUPPORTED_OPTIONS= flac mad vorbis arts libao musepack faad wavpack pulseaudio
PKG_SUPPORTED_OPTIONS+= wide-curses ffmpeg opus jack
PKG_SUPPORTED_OPTIONS+= ffmpeg opus jack
PKG_OPTIONS_OPTIONAL_GROUPS= mod
PKG_OPTIONS_GROUP.mod= modplug mikmod
PKG_SUGGESTED_OPTIONS= flac libao mad modplug vorbis
@ -167,17 +167,3 @@ PLIST.opus= yes
.else
CONFIGURE_ARGS+= CONFIG_OPUS=n
.endif
###
### Wide curses support; otherwise, default to using narrow curses.
###
# cmus works fine with a 5.0+ NetBSD curses
.if !empty(MACHINE_PLATFORM:MNetBSD-[5-9].*-*)
. include "../../mk/curses.buildlink3.mk"
.else
. if !empty(PKG_OPTIONS:Mwide-curses)
. include "../../devel/ncursesw/buildlink3.mk"
. else
. include "../../devel/ncurses/buildlink3.mk"
. endif
.endif