commit 38e30c8
hovercats
·
2024-11-09 07:23:07 +0000 UTC
parent 167e8be
cmus: add patch so that we can use oasis's netbsd-curses instead. this also incedantally disabled/removed color support
6 files changed,
+60,
-3
+1,
-1
1@@ -7,7 +7,7 @@ done
2 ./configure \
3 prefix=/usr
4
5-make
6+make NCURSES_LIBS="-lcurses -lterminfo"
7 make DESTDIR="$1" install
8
9 # Compress manpages
+1,
-0
1@@ -1,2 +1,3 @@
2 3537dde959f1da4ac91b68737d5b24bb447b7714c6f0b1a38fa1a961b98ca1db86
3 5b3ce4eb81e7f6c80f007f37d304bec9fb9a29658fe7afd492dca6f89afc4ae218
4+3dd83e61bdb10a0989707404d1fd1e3e2398934e6be149cd7f8a27fcc907c6aa99
+0,
-1
1@@ -1,2 +1 @@
2 ffmpeg
3-netbsd-curses make
1@@ -0,0 +1,56 @@
2+From 4df30bd425fae0981fc608df2553ea3f2587391b Mon Sep 17 00:00:00 2001
3+From: hovercats <hovercatswithlasereyes@protonmail.com>
4+Date: Sat, 9 Nov 2024 08:17:25 +0100
5+Subject: [PATCH] remove cursesw and curses check. it errors out with oasis's
6+ netbsd-curses
7+
8+---
9+ configure | 32 +++-----------------------------
10+ 1 file changed, 3 insertions(+), 29 deletions(-)
11+
12+diff --git a/configure b/configure
13+index fb750ad..882e9b0 100755
14+--- a/configure
15++++ b/configure
16+@@ -178,35 +178,9 @@ int main(void)
17+
18+ check_ncurses()
19+ {
20+- if pkg_config NCURSES "ncursesw" "" "-lncursesw"
21+- then
22+- widechars=y
23+- elif pkg_config NCURSES "ncurses" "" "-lncurses" || pkg_config NCURSES "curses" "" "-lcurses"
24+- then
25+- widechars=n
26+- msg_error "Your ncurses does not support wide characters!"
27+- msg_error "Install ncursesw if you need wide character support,"
28+- msg_error "you can ignore this warning otherwise."
29+- fi
30+- test -z "$widechars" && return 1
31+-
32+- msg_checking "for working ncurses setup"
33+- for flag in "" "-I/usr/include/ncurses" "-I/usr/include/ncursesw"
34+- do
35+- if try_compile_link "$ncurses_code" $flag $NCURSES_LIBS
36+- then
37+- NCURSES_CFLAGS="$NCURSES_CFLAGS $flag"
38+- msg_result yes
39+- working_curses=y
40+- break
41+- fi
42+- done
43+- if test -z "$working_curses"
44+- then
45+- msg_result no
46+- return 1
47+- fi
48+-
49++ widechars=n
50++ working_curses=y
51++
52+ check_function "resizeterm" $NCURSES_CFLAGS $NCURSES_LIBS
53+ HAVE_RESIZETERM=`test $? -ne 0 ; echo $?`
54+
55+--
56+2.45.1
57+
+1,
-0
1@@ -1,2 +1,3 @@
2 https://github.com/cmus/cmus/archive/v2.11.0.tar.gz
3 patches/0001-fix-incompability-with-netbsd-curses.patch
4+patches/0002-remove-cursesw-and-curses-check.-it-errors-out-with-.patch
+1,
-1
1@@ -1 +1 @@
2-2.11.0 2
3+2.11.0 3