Wed Feb 24 18:08:12 2010 UTC ()
-NetBSD-current's wide curses is good enough -- I'm assuming that any
 builtin wide curses which is recognized by pkgsrc/ncursesw/builtin.mk
 is fine.
-Set the keyboard mode to raw() explicitely. ncurses seems to do
 this in some magical way, didn't find a hint in documentation.
-Explicitely disable widechar support if the pkgsrc option is deselected -
 otherwise it gets enabled unwantedly if widechar support is found in the
 normal curses lib.


(drochner)
diff -r1.17 -r1.18 pkgsrc/audio/ncmpc/Makefile
diff -r1.10 -r1.11 pkgsrc/audio/ncmpc/distinfo
diff -r1.1 -r1.2 pkgsrc/audio/ncmpc/options.mk
diff -r0 -r1.1 pkgsrc/audio/ncmpc/patches/patch-ae

cvs diff -r1.17 -r1.18 pkgsrc/audio/ncmpc/Makefile (expand / switch to unified diff)

--- pkgsrc/audio/ncmpc/Makefile 2009/10/20 20:32:46 1.17
+++ pkgsrc/audio/ncmpc/Makefile 2010/02/24 18:08:12 1.18
@@ -1,24 +1,22 @@ @@ -1,24 +1,22 @@
1# $NetBSD: Makefile,v 1.17 2009/10/20 20:32:46 jakllsch Exp $ 1# $NetBSD: Makefile,v 1.18 2010/02/24 18:08:12 drochner Exp $
2 2
3DISTNAME= ncmpc-0.15 3DISTNAME= ncmpc-0.15
4CATEGORIES= audio 4CATEGORIES= audio
5MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=musicpd/} 5MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=musicpd/}
6EXTRACT_SUFX= .tar.bz2 6EXTRACT_SUFX= .tar.bz2
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://mpd.wikia.com/wiki/Client:Ncmpc 9HOMEPAGE= http://mpd.wikia.com/wiki/Client:Ncmpc
10COMMENT= Curses client for Music Player Daemon 10COMMENT= Curses client for Music Player Daemon
11 11
12PKG_DESTDIR_SUPPORT= user-destdir 12PKG_DESTDIR_SUPPORT= user-destdir
13 13
14.include "options.mk" 14.include "options.mk"
15 15
16GNU_CONFIGURE= yes 16GNU_CONFIGURE= yes
17USE_PKGLOCALEDIR= yes 17USE_PKGLOCALEDIR= yes
18USE_LIBTOOL= yes 18USE_LIBTOOL= yes
19USE_TOOLS+= pkg-config msgfmt 19USE_TOOLS+= pkg-config msgfmt
20 20
21USE_NCURSES= yes 
22 
23.include "../../devel/glib2/buildlink3.mk" 21.include "../../devel/glib2/buildlink3.mk"
24.include "../../mk/bsd.pkg.mk" 22.include "../../mk/bsd.pkg.mk"

cvs diff -r1.10 -r1.11 pkgsrc/audio/ncmpc/distinfo (expand / switch to unified diff)

--- pkgsrc/audio/ncmpc/distinfo 2009/10/20 20:32:46 1.10
+++ pkgsrc/audio/ncmpc/distinfo 2010/02/24 18:08:12 1.11
@@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
1$NetBSD: distinfo,v 1.10 2009/10/20 20:32:46 jakllsch Exp $ 1$NetBSD: distinfo,v 1.11 2010/02/24 18:08:12 drochner Exp $
2 2
3SHA1 (ncmpc-0.15.tar.bz2) = 710e6028c3630cf92a21c98f35598c81b4753638 3SHA1 (ncmpc-0.15.tar.bz2) = 710e6028c3630cf92a21c98f35598c81b4753638
4RMD160 (ncmpc-0.15.tar.bz2) = 2a58726b7ff77ff4520ee43adfccec3d5fe2e0e1 4RMD160 (ncmpc-0.15.tar.bz2) = 2a58726b7ff77ff4520ee43adfccec3d5fe2e0e1
5Size (ncmpc-0.15.tar.bz2) = 260080 bytes 5Size (ncmpc-0.15.tar.bz2) = 260080 bytes
6SHA1 (patch-ad) = 792edb732f84b82c30ef9375d45bb036727a00b4 6SHA1 (patch-ad) = 792edb732f84b82c30ef9375d45bb036727a00b4
 7SHA1 (patch-ae) = 4539ec9a737f0dd8244d6d0583a3dc7022d84f14

cvs diff -r1.1 -r1.2 pkgsrc/audio/ncmpc/options.mk (expand / switch to unified diff)

--- pkgsrc/audio/ncmpc/options.mk 2009/02/07 18:45:15 1.1
+++ pkgsrc/audio/ncmpc/options.mk 2010/02/24 18:08:12 1.2
@@ -1,16 +1,17 @@ @@ -1,16 +1,17 @@
1# $NetBSD: options.mk,v 1.1 2009/02/07 18:45:15 jakllsch Exp $ 1# $NetBSD: options.mk,v 1.2 2010/02/24 18:08:12 drochner Exp $
2 2
3PKG_OPTIONS_VAR= PKG_OPTIONS.ncmpc 3PKG_OPTIONS_VAR= PKG_OPTIONS.ncmpc
4PKG_SUPPORTED_OPTIONS= wide-curses 4PKG_SUPPORTED_OPTIONS= wide-curses
5PKG_SUGGESTED_OPTIONS= wide-curses 5PKG_SUGGESTED_OPTIONS= wide-curses
6 6
7.include "../../mk/bsd.options.mk" 7.include "../../mk/bsd.options.mk"
8 8
9### 9###
10### Wide curses support; otherwise, default to using narrow curses. 10### Wide curses support; otherwise, default to using narrow curses.
11### 11###
12.if !empty(PKG_OPTIONS:Mwide-curses) 12.if !empty(PKG_OPTIONS:Mwide-curses)
13. include "../../devel/ncursesw/buildlink3.mk" 13. include "../../devel/ncursesw/buildlink3.mk"
14.else 14.else
 15CONFIGURE_ARGS+= --disable-wide
15. include "../../devel/ncurses/buildlink3.mk" 16. include "../../devel/ncurses/buildlink3.mk"
16.endif 17.endif

File Added: pkgsrc/audio/ncmpc/patches/Attic/patch-ae
$NetBSD: patch-ae,v 1.1 2010/02/24 18:08:12 drochner Exp $

--- src/ncu.c.orig	2009-09-24 14:05:30.000000000 +0000
+++ src/ncu.c
@@ -58,6 +58,7 @@ ncu_init(void)
 
 	/* enable extra keys */
 	keypad(stdscr, TRUE);
+	raw();
 
 	/* initialize mouse support */
 #ifdef HAVE_GETMOUSE