summaryrefslogtreecommitdiffhomepage
path: root/patches/hexer-1.0.6.local.patch
diff options
context:
space:
mode:
authorØrjan Malde <red@foxi.me>2020-09-25 22:56:24 +0200
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-09-25 21:57:48 +0100
commit191faac17c3282abb2b02d8b2b7cce77d28815b4 (patch)
tree4ab6d5b9661863c0b611961ffd96821ced00a08b /patches/hexer-1.0.6.local.patch
parent0f65e33989bcc70318eadd92f30b737014c3f22b (diff)
downloadmidipix_build-191faac17c3282abb2b02d8b2b7cce77d28815b4.tar.bz2
midipix_build-191faac17c3282abb2b02d8b2b7cce77d28815b4.tar.xz
groups/231.native_packages_etc.group: adds hexer v1.0.6
Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
Diffstat (limited to 'patches/hexer-1.0.6.local.patch')
-rw-r--r--patches/hexer-1.0.6.local.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/patches/hexer-1.0.6.local.patch b/patches/hexer-1.0.6.local.patch
new file mode 100644
index 00000000..15b200d0
--- /dev/null
+++ b/patches/hexer-1.0.6.local.patch
@@ -0,0 +1,45 @@
+diff -ru hexer-1.0.6.orig/edit.c hexer-1.0.6/edit.c
+--- hexer-1.0.6.orig/edit.c 2020-04-24 15:06:48.000000000 +0200
++++ hexer-1.0.6/edit.c 2020-09-25 22:48:48.412100792 +0200
+@@ -51,7 +51,7 @@
+ #include <ctype.h>
+ #include <assert.h>
+ #include <unistd.h>
+-#include <curses.h>
++#include <ncurses.h>
+ #include <term.h>
+
+ #include "buffer.h"
+diff -ru hexer-1.0.6.orig/Makefile hexer-1.0.6/Makefile
+--- hexer-1.0.6.orig/Makefile 2020-04-24 15:06:48.000000000 +0200
++++ hexer-1.0.6/Makefile 2020-09-25 22:53:09.703828744 +0200
+@@ -19,7 +19,7 @@
+ #LTERMCAP ?= -ltermcap
+ #
+ # ...or this one if you want to use curses.
+-LTERMCAP ?= -lcurses
++LTERMCAP ?= -lncurses -ltinfo
+
+ CPPFLAGS_STD ?= -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 \
+ -D_FILE_OFFSET_BITS=64
+@@ -72,7 +72,7 @@
+ $(CC) $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -DMYCALC=1 -o $@ calc.c -lm
+
+ bin2c: bin2c.c
+- $(CC_FOR_BUILD) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ bin2c.c
++ $(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ bin2c.c
+
+ helptext.c: help.txt bin2c
+ ./bin2c -n helptext -o $@ help.txt
+diff -ru hexer-1.0.6.orig/tio.c hexer-1.0.6/tio.c
+--- hexer-1.0.6.orig/tio.c 2020-04-24 15:06:48.000000000 +0200
++++ hexer-1.0.6/tio.c 2020-09-25 22:48:26.032101493 +0200
+@@ -73,7 +73,7 @@
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <signal.h>
+-#include <curses.h>
++#include <ncurses.h>
+ #include <term.h>
+
+ #ifndef bzero