-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.diff -r1.17 -r1.18 pkgsrc/audio/ncmpc/Makefile
(drochner)
@@ -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 | |||
3 | DISTNAME= ncmpc-0.15 | 3 | DISTNAME= ncmpc-0.15 | |
4 | CATEGORIES= audio | 4 | CATEGORIES= audio | |
5 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=musicpd/} | 5 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=musicpd/} | |
6 | EXTRACT_SUFX= .tar.bz2 | 6 | EXTRACT_SUFX= .tar.bz2 | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= http://mpd.wikia.com/wiki/Client:Ncmpc | 9 | HOMEPAGE= http://mpd.wikia.com/wiki/Client:Ncmpc | |
10 | COMMENT= Curses client for Music Player Daemon | 10 | COMMENT= Curses client for Music Player Daemon | |
11 | 11 | |||
12 | PKG_DESTDIR_SUPPORT= user-destdir | 12 | PKG_DESTDIR_SUPPORT= user-destdir | |
13 | 13 | |||
14 | .include "options.mk" | 14 | .include "options.mk" | |
15 | 15 | |||
16 | GNU_CONFIGURE= yes | 16 | GNU_CONFIGURE= yes | |
17 | USE_PKGLOCALEDIR= yes | 17 | USE_PKGLOCALEDIR= yes | |
18 | USE_LIBTOOL= yes | 18 | USE_LIBTOOL= yes | |
19 | USE_TOOLS+= pkg-config msgfmt | 19 | USE_TOOLS+= pkg-config msgfmt | |
20 | 20 | |||
21 | USE_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" |
@@ -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 | |||
3 | SHA1 (ncmpc-0.15.tar.bz2) = 710e6028c3630cf92a21c98f35598c81b4753638 | 3 | SHA1 (ncmpc-0.15.tar.bz2) = 710e6028c3630cf92a21c98f35598c81b4753638 | |
4 | RMD160 (ncmpc-0.15.tar.bz2) = 2a58726b7ff77ff4520ee43adfccec3d5fe2e0e1 | 4 | RMD160 (ncmpc-0.15.tar.bz2) = 2a58726b7ff77ff4520ee43adfccec3d5fe2e0e1 | |
5 | Size (ncmpc-0.15.tar.bz2) = 260080 bytes | 5 | Size (ncmpc-0.15.tar.bz2) = 260080 bytes | |
6 | SHA1 (patch-ad) = 792edb732f84b82c30ef9375d45bb036727a00b4 | 6 | SHA1 (patch-ad) = 792edb732f84b82c30ef9375d45bb036727a00b4 | |
7 | SHA1 (patch-ae) = 4539ec9a737f0dd8244d6d0583a3dc7022d84f14 |
@@ -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 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.ncmpc | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.ncmpc | |
4 | PKG_SUPPORTED_OPTIONS= wide-curses | 4 | PKG_SUPPORTED_OPTIONS= wide-curses | |
5 | PKG_SUGGESTED_OPTIONS= wide-curses | 5 | PKG_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 | |
15 | CONFIGURE_ARGS+= --disable-wide | |||
15 | . include "../../devel/ncurses/buildlink3.mk" | 16 | . include "../../devel/ncurses/buildlink3.mk" | |
16 | .endif | 17 | .endif |
$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