Wed Jan 4 16:47:59 2017 UTC ()
Use the curses framework.


(roy)
diff -r1.29 -r1.30 pkgsrc/audio/herrie/Makefile
diff -r1.8 -r1.9 pkgsrc/audio/herrie/options.mk

cvs diff -r1.29 -r1.30 pkgsrc/audio/herrie/Makefile (expand / switch to context diff)
--- pkgsrc/audio/herrie/Makefile 2017/01/01 16:06:03 1.29
+++ pkgsrc/audio/herrie/Makefile 2017/01/04 16:47:59 1.30
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.29 2017/01/01 16:06:03 adam Exp $
+# $NetBSD: Makefile,v 1.30 2017/01/04 16:47:59 roy Exp $
 #
 
 DISTNAME=	herrie-2.2
-PKGREVISION=	14
+PKGREVISION=	15
 CATEGORIES=	audio
 MASTER_SITES=	http://herrie.info/distfiles/
 EXTRACT_SUFX=	.tar.bz2
@@ -28,11 +28,16 @@
 
 RESOLV_AUTO_VARS=	yes
 USE_FEATURES=		snprintf regcomp
-USE_NCURSES=		yes
 
 AUTO_MKDIRS=		yes
 
+FAKE_NCURSES=		yes
+
 .include "options.mk"
+
+.if ${CURSES_TYPE} != "ncursesw"
+CONFIGURE_ARGS+=	ncurses
+.endif
 
 SUBST_CLASSES+=		conf
 SUBST_STAGE.conf=	pre-configure

cvs diff -r1.8 -r1.9 pkgsrc/audio/herrie/options.mk (expand / switch to context diff)
--- pkgsrc/audio/herrie/options.mk 2016/07/10 09:42:07 1.8
+++ pkgsrc/audio/herrie/options.mk 2017/01/04 16:47:59 1.9
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.8 2016/07/10 09:42:07 rillig Exp $
+# $NetBSD: options.mk,v 1.9 2017/01/04 16:47:59 roy Exp $
 
 PKG_OPTIONS_VAR=		PKG_OPTIONS.herrie
 PKG_SUPPORTED_OPTIONS=		curl libao modplug libspiff sndfile	\
@@ -6,6 +6,7 @@
 PKG_SUGGESTED_OPTIONS=		curl
 PKG_OPTIONS_LEGACY_OPTS+=	ncursesw:wide-curses
 
+.include "../../mk/curses.buildlink3.mk"
 .include "../../mk/oss.buildlink3.mk"
 
 .if ${OSS_TYPE} == "native"
@@ -64,11 +65,4 @@
 .  include "../../audio/libvorbis/buildlink3.mk"
 .else
 CONFIGURE_ARGS+=	no_vorbis
-.endif
-
-.if !empty(PKG_OPTIONS:Mwide-curses)
-.  include "../../devel/ncursesw/buildlink3.mk"
-.else
-CONFIGURE_ARGS+=	ncurses
-.  include "../../devel/ncurses/buildlink3.mk"
 .endif