pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/moc-devel Add patches to work with NetBSD's curses.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0f8bd0b96e7c
branches:  trunk
changeset: 561201:0f8bd0b96e7c
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jul 07 21:18:52 2009 +0000

description:
Add patches to work with NetBSD's curses.

diffstat:

 audio/moc-devel/Makefile         |   6 +-----
 audio/moc-devel/distinfo         |   7 +++++--
 audio/moc-devel/patches/patch-ad |  12 ++++++++++--
 audio/moc-devel/patches/patch-ae |  19 +++++++++++++++++++
 audio/moc-devel/patches/patch-af |  15 +++++++++++++++
 audio/moc-devel/patches/patch-ag |  13 +++++++++++++
 6 files changed, 63 insertions(+), 9 deletions(-)

diffs (124 lines):

diff -r 8a3e54eae4ce -r 0f8bd0b96e7c audio/moc-devel/Makefile
--- a/audio/moc-devel/Makefile  Tue Jul 07 21:17:42 2009 +0000
+++ b/audio/moc-devel/Makefile  Tue Jul 07 21:18:52 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2009/02/21 13:22:43 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2009/07/07 21:18:52 joerg Exp $
 
 DISTNAME=              moc-2.5.0-alpha3
 PKGNAME=               ${DISTNAME:S/-alpha/./:moc%=moc-devel%}
@@ -18,13 +18,9 @@
 GNU_CONFIGURE=         yes
 USE_PKGLOCALEDIR=      yes
 USE_LIBTOOL=           yes
-USE_NCURSES=           yes
 USE_TOOLS+=            pkg-config
 #USE_TOOLS+=           autoconf automake
 
-# We require ncurses because with curses arrow key navigation is buggy
-CONFIGURE_ARGS+=       --with-ncurses
-
 SUBST_CLASSES+=                oss
 SUBST_STAGE.oss=       pre-configure
 SUBST_FILES.oss=       config.example options.c
diff -r 8a3e54eae4ce -r 0f8bd0b96e7c audio/moc-devel/distinfo
--- a/audio/moc-devel/distinfo  Tue Jul 07 21:17:42 2009 +0000
+++ b/audio/moc-devel/distinfo  Tue Jul 07 21:18:52 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2009/06/08 07:25:20 hasso Exp $
+$NetBSD: distinfo,v 1.3 2009/07/07 21:18:52 joerg Exp $
 
 SHA1 (moc-2.5.0-alpha3.tar.bz2) = 59251b6239ad38f3f5ba8a1f73d1e90246765ab7
 RMD160 (moc-2.5.0-alpha3.tar.bz2) = 7a603538e2080f3e182a543bc82100a09a56c2fe
@@ -6,4 +6,7 @@
 SHA1 (patch-aa) = 058c2f72e22d3a31aee6e921aa9c110326a305f3
 SHA1 (patch-ab) = 750f9a75c368788cf7d6f55e2ef44d7e41d99aa4
 SHA1 (patch-ac) = 6b42e7df0dc3dfeb0a7c5e5226a28b01d2fd27c7
-SHA1 (patch-ad) = 5785a54e683f8c063e7b603e7cc07a33dd080590
+SHA1 (patch-ad) = 4816d3a17e832ee1b8be76f342a4512fad9fc642
+SHA1 (patch-ae) = f7b98f7af3843432bab24049b17c8639a0dfce59
+SHA1 (patch-af) = 0176dff0c460a12a563df10685818face3c4b3d5
+SHA1 (patch-ag) = 818df09cf6d06165cbd1c62681a3b5d84daa30bf
diff -r 8a3e54eae4ce -r 0f8bd0b96e7c audio/moc-devel/patches/patch-ad
--- a/audio/moc-devel/patches/patch-ad  Tue Jul 07 21:17:42 2009 +0000
+++ b/audio/moc-devel/patches/patch-ad  Tue Jul 07 21:18:52 2009 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-ad,v 1.1.1.1 2008/04/07 16:10:37 bjs Exp $
+$NetBSD: patch-ad,v 1.2 2009/07/07 21:18:52 joerg Exp $
 
---- configure.orig     2008-02-25 17:38:19.000000000 -0500
+--- configure.orig     2008-02-25 23:38:19.000000000 +0100
 +++ configure
 @@ -22895,6 +22895,72 @@ if test `eval echo '${'$as_ac_var'}'` = 
  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
@@ -75,3 +75,11 @@
  fi
  done
  
+@@ -27118,6 +27184,7 @@ else
+ sed 's/^/| /' conftest.$ac_ext >&5
+ 
+       mp_cv_ncursesw=no
++        LIBS="$mp_save_LIBS"
+ fi
+ 
+ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
diff -r 8a3e54eae4ce -r 0f8bd0b96e7c audio/moc-devel/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/moc-devel/patches/patch-ae  Tue Jul 07 21:18:52 2009 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-ae,v 1.1 2009/07/07 21:18:52 joerg Exp $
+
+--- interface_elements.h.orig  2009-07-07 12:34:49.000000000 +0200
++++ interface_elements.h
+@@ -1,7 +1,13 @@
+ #ifndef INTERFACE_ELEMENTS_H
+ #define INTERFACE_ELEMENTS_H
+ 
+-#include <ncurses.h>
++#ifdef HAVE_NCURSESW_H
++# include <ncursesw/curses.h>
++#elif HAVE_NCURSES_H
++# include <ncurses.h>
++#elif HAVE_CURSES_H
++# include <curses.h>
++#endif
+ 
+ #include "files.h"
+ #include "keys.h"
diff -r 8a3e54eae4ce -r 0f8bd0b96e7c audio/moc-devel/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/moc-devel/patches/patch-af  Tue Jul 07 21:18:52 2009 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-af,v 1.1 2009/07/07 21:18:52 joerg Exp $
+
+--- m4/mp_with_curses.m4.orig  2009-07-07 12:30:19.000000000 +0200
++++ m4/mp_with_curses.m4
+@@ -45,8 +45,8 @@ AC_DEFUN([MP_WITH_CURSES],
+    if test ! "$CURSES_LIB" -a "$with_ncurses" != yes
+    then
+      AC_CACHE_CHECK([for working curses], mp_cv_curses,
+-       [LIBS="$LIBS -lcurses"
+-        AC_TRY_LINK(
++       [LIBS="$mp_save_LIBS -lcurses"
++        AC_TRYLINK(
+           [#include <curses.h>],
+           [chtype a; int b=A_STANDOUT, c=KEY_LEFT; initscr(); ],
+           mp_cv_curses=yes, mp_cv_curses=no)])
diff -r 8a3e54eae4ce -r 0f8bd0b96e7c audio/moc-devel/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/moc-devel/patches/patch-ag  Tue Jul 07 21:18:52 2009 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ag,v 1.1 2009/07/07 21:18:52 joerg Exp $
+
+--- interface_elements.c.orig  2009-07-07 13:23:11.000000000 +0200
++++ interface_elements.c
+@@ -2526,7 +2526,7 @@ static void info_win_draw_title (const s
+               }
+               else {
+               wattrset (w->win, get_color(CLR_TITLE));
+-              xmvwaddnstr (w->win, 1, 4, w->title, COLS - 5);
++              xmvwaddnstr (w->win, 1, 4, w->title ? w->title : "", COLS - 5);
+               }
+       }
+ 



Home | Main Index | Thread Index | Old Index