aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2009-08-02 00:33:19 +0800
committerdanfe <danfe@FreeBSD.org>2009-08-02 00:33:19 +0800
commit2c036f00dc74929470cf09826b5fcaae92c748e3 (patch)
tree4b4910093a71bdd89724d35a466879d1fcbb5057
parent1038af19907d1e5cbf58511274f153c1b0ba4ce0 (diff)
downloadfreebsd-ports-gnome-2c036f00dc74929470cf09826b5fcaae92c748e3.tar.gz
freebsd-ports-gnome-2c036f00dc74929470cf09826b5fcaae92c748e3.tar.zst
freebsd-ports-gnome-2c036f00dc74929470cf09826b5fcaae92c748e3.zip
- Add two missing patches to unbreak the build
- Depend on slang; ncurses renderer behaves badly
-rw-r--r--editors/biew/Makefile4
-rw-r--r--editors/biew/files/patch-biewlib_sysdep_generic_unix_keyboard.c22
-rw-r--r--editors/biew/files/patch-biewlib_sysdep_generic_unix_vio.c24
3 files changed, 48 insertions, 2 deletions
diff --git a/editors/biew/Makefile b/editors/biew/Makefile
index 013dc26a0bd2..8bed68d8010c 100644
--- a/editors/biew/Makefile
+++ b/editors/biew/Makefile
@@ -11,11 +11,11 @@ CATEGORIES= editors
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
+LIB_DEPENDS= slang.2:${PORTSDIR}/devel/libslang2
+
MAINTAINER= danfe@FreeBSD.org
COMMENT= Binary file viewer and editor
-BROKEN= does not build
-
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --cc="${CC}" --with-extraincdir="${LOCALBASE}/include" \
--ld="${CC}" --with-extralibdir="${LOCALBASE}/lib" \
diff --git a/editors/biew/files/patch-biewlib_sysdep_generic_unix_keyboard.c b/editors/biew/files/patch-biewlib_sysdep_generic_unix_keyboard.c
new file mode 100644
index 000000000000..2f387610bff0
--- /dev/null
+++ b/editors/biew/files/patch-biewlib_sysdep_generic_unix_keyboard.c
@@ -0,0 +1,22 @@
+--- biewlib/sysdep/generic/unix/keyboard.c.orig 2009-01-31 17:11:34.000000000 +0600
++++ biewlib/sysdep/generic/unix/keyboard.c 2009-03-18 04:11:03.000000000 +0600
+@@ -59,6 +59,9 @@
+ unsigned rawkb_mode=0;
+ int rawkb_escape;
+
++static void *nls_handle;
++static int is_unicode=0;
++
+ #ifdef _VT100_
+
+ #include <fcntl.h>
+@@ -75,9 +78,6 @@
+ static int in_fd;
+ static struct termios sattr;
+
+-static void *nls_handle;
+-static int is_unicode=0;
+-
+ typedef struct {
+ char c;
+ int key;
diff --git a/editors/biew/files/patch-biewlib_sysdep_generic_unix_vio.c b/editors/biew/files/patch-biewlib_sysdep_generic_unix_vio.c
new file mode 100644
index 000000000000..688d260c3824
--- /dev/null
+++ b/editors/biew/files/patch-biewlib_sysdep_generic_unix_vio.c
@@ -0,0 +1,24 @@
+--- biewlib/sysdep/generic/unix/vio.c.orig 2009-01-31 17:08:22.000000000 +0600
++++ biewlib/sysdep/generic/unix/vio.c 2009-03-18 04:11:42.000000000 +0600
+@@ -206,10 +206,6 @@
+ static char *vtmp;
+ static int out_fd;
+ static int _color[8] = {0,4,2,6,1,5,3,7};
+-static char *screen_cp;
+-static unsigned is_unicode=0;
+-
+-static void *nls_handle;
+
+ static unsigned char frames_vt100[0x30] =
+ "aaaxuuukkuxkjjjkmvwtqnttmlvwtqnvvwwmmllnnjlaaaaa";
+@@ -242,6 +238,10 @@
+
+ #endif /* _VT100_ */
+
++static char *screen_cp;
++static unsigned is_unicode=0;
++static void *nls_handle;
++
+ static unsigned char frames_dumb[0x30] =
+ ": %|{+++++|+++++`++}-++++++++-+++++++++++++#%[]~";
+