summaryrefslogtreecommitdiff
path: root/editors/biew
diff options
context:
space:
mode:
authorChris D. Faulhaber <jedgar@FreeBSD.org>2000-03-20 23:51:37 +0000
committerChris D. Faulhaber <jedgar@FreeBSD.org>2000-03-20 23:51:37 +0000
commit864f7eed852ead96f0a2d614696c5f2204309dda (patch)
treeb7d46a5641a57df960c8f77bed2f65a664d68021 /editors/biew
parentChanged LIB_DEPENDS: MesaGL.14->GL.14 due to Mesa-3.1 upgrade (diff)
Biew is Binary vIEWer with built-in editor for binary,
hexadecimal and disassembler modes. The program also has text viewer with different Russia codepages support (Windows-1251, MSDOS-866, etc.). PR: 17186 Submitted by: Michael Vasilenko <acid@stu.cn.ua>
Diffstat (limited to 'editors/biew')
-rw-r--r--editors/biew/Makefile47
-rw-r--r--editors/biew/distinfo1
-rw-r--r--editors/biew/files/patch-aa11
-rw-r--r--editors/biew/files/patch-ab11
-rw-r--r--editors/biew/files/patch-ac30
-rw-r--r--editors/biew/files/patch-ad15
-rw-r--r--editors/biew/files/patch-ae15
-rw-r--r--editors/biew/files/patch-af14
-rw-r--r--editors/biew/pkg-comment1
-rw-r--r--editors/biew/pkg-descr5
-rw-r--r--editors/biew/pkg-plist2
11 files changed, 152 insertions, 0 deletions
diff --git a/editors/biew/Makefile b/editors/biew/Makefile
new file mode 100644
index 000000000000..725bb2c19133
--- /dev/null
+++ b/editors/biew/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: biew
+# Version required: 5.0.1
+# Date created: 04 February 2000
+# Whom: Michael Vasilenko <acid@stu.cn.ua>
+#
+# $FreeBSD$
+#
+
+DISTNAME= biew-501
+PKGNAME= biew-5.01
+CATEGORIES= editors
+MASTER_SITES= ftp://biew.sourceforge.net/pub/biew/5.x/src/ \
+ http://download.sourceforge.net/biew/
+
+MAINTAINER= ports@FreeBSD.org
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+MAKE_ARGS= "USE_NCURSES_PSEUDO=y"
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 400010
+LIB_DEPENDS= ncurses.4:${PORTSDIR}/devel/ncurses
+MAKE_ARGS+= "CSYSFLAGS=-D__FreeBSD_version=${OSVERSION} -I${LOCALBASE}/include"
+MAKE_ARGS+= "OSLDEF=-L${LOCALBASE}/lib"
+.endif
+
+pre-build:
+ ${LN} -sf ${WRKSRC}/makefile ${WRKSRC}/Makefile
+
+post-build:
+ @ ${LN} -sf ${WRKSRC}/tools/biewhlp/makefile ${WRKSRC}/tools/biewhlp/Makefile
+ @ ${LN} -sf ${WRKSRC}/tools/lzss/makefile ${WRKSRC}/tools/lzss/Makefile
+ @ ${LN} -sf ${WRKSRC}/lib ${WRKSRC}/tools/biewhlp/lib
+ @ ${LN} -sf ${WRKSRC}/lib ${WRKSRC}/tools/lzss/lib
+ @ (cd ${WRKSRC}/tools/biewhlp;${GMAKE})
+ @ (cd ${WRKSRC}/tools/lzss;${GMAKE})
+ @ (cd ${WRKSRC}/hlp;${LN} -sf ../tools/biewhlp/biewhlp ./;\
+ ${LN} -sf ../tools/lzss/lzss ./;./biewhlp biewhlp.prj)
+
+do-install:
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/biew ${PREFIX}/bin
+ @ ${MKDIR} ${PREFIX}/share/biew
+ @ ${INSTALL_DATA} ${WRKSRC}/hlp/biew.hlp ${PREFIX}/share/biew
+
+.include <bsd.port.post.mk>
diff --git a/editors/biew/distinfo b/editors/biew/distinfo
new file mode 100644
index 000000000000..263469feb6e3
--- /dev/null
+++ b/editors/biew/distinfo
@@ -0,0 +1 @@
+MD5 (biew-501.tar.bz2) = b2ce070901ee1e0b2949a595bf3c087f
diff --git a/editors/biew/files/patch-aa b/editors/biew/files/patch-aa
new file mode 100644
index 000000000000..7b014716d6f0
--- /dev/null
+++ b/editors/biew/files/patch-aa
@@ -0,0 +1,11 @@
+--- lib/sysdep/generic/unix/os_dep.c.orig Fri Mar 3 11:08:20 2000
++++ lib/sysdep/generic/unix/os_dep.c Sat Mar 4 14:35:49 2000
+@@ -46,7 +46,7 @@
+
+ char * __get_help_name(void)
+ {
+- return "/usr/lib/biew/biew.hlp";
++ return "/usr/local/share/biew/biew.hlp";
+ }
+
+ static void cleanup(int sig)
diff --git a/editors/biew/files/patch-ab b/editors/biew/files/patch-ab
new file mode 100644
index 000000000000..857ef674fa2b
--- /dev/null
+++ b/editors/biew/files/patch-ab
@@ -0,0 +1,11 @@
+--- tools/biewhlp/biewhlp.c.orig Fri Mar 3 11:08:24 2000
++++ tools/biewhlp/biewhlp.c Sat Mar 4 15:00:57 2000
+@@ -29,7 +29,7 @@
+ BGLOBAL bOutput;
+
+ #define BBIO_CACHE_SIZE 0x1000
+-#define ARCHIVER "lzss e"
++#define ARCHIVER "./lzss e"
+ #define TEMPFNAME "temp_hlp.tmp"
+
+ void MyCallBack(IniInfo *ini)
diff --git a/editors/biew/files/patch-ac b/editors/biew/files/patch-ac
new file mode 100644
index 000000000000..bca4e4867457
--- /dev/null
+++ b/editors/biew/files/patch-ac
@@ -0,0 +1,30 @@
+--- makefile.inc.orig Fri Mar 3 04:02:14 2000
++++ makefile.inc Mon Mar 20 18:43:11 2000
+@@ -121,7 +121,7 @@
+ ##############################################################################
+ ifdef CONFIG_I386
+ MACHINE=i386
+-CDEFSYS=-D__BITNESS__=32 -D__PLATFORM__='"i386"' -D__BYTE_ORDER__=__LITTLE_ENDIAN__ -D__DEFAULT_DISASM=0 -m386
++CDEFSYS=-D__BITNESS__=32 -D__PLATFORM__='"i386"' -D__BYTE_ORDER__=__LITTLE_ENDIAN__ -D__DEFAULT_DISASM=0
+ endif
+ ifdef CONFIG_I486
+ MACHINE=i386
+@@ -151,14 +151,14 @@
+ # If you do not have GNU development system, modify RM CC LD variables #
+ ##############################################################################
+ RM=rm -f
+-CC=gcc
+-LD=gcc
++CC?=gcc
++LD=$(CC)
+ ###########################################################################
+ # CFLAGS set it for optimization #
+ # LDFLAGS set it for link method #
+ ###########################################################################
+-CFLAGS = -Wall -O2 -fomit-frame-pointer -fcaller-saves\
+- -DNDEBUG=1 $(CDEFOS) $(CDEFSYS)
++CFLAGS+= -Wall \
++ -DNDEBUG=1 $(CDEFOS) $(CDEFSYS) $(CSYSFLAGS)
+ #-ffunction-sections
+ LDFLAGS = -s $(OSLDEF)
+
diff --git a/editors/biew/files/patch-ad b/editors/biew/files/patch-ad
new file mode 100644
index 000000000000..91bd51fc9b4d
--- /dev/null
+++ b/editors/biew/files/patch-ad
@@ -0,0 +1,15 @@
+--- lib/sysdep/generic/unix/vio.c Fri Mar 3 11:08:20 2000
++++ lib/sysdep/generic/unix/vio.c Sat Mar 4 15:36:46 2000
+@@ -32,8 +32,11 @@
+ #define VMAX_Y 100
+
+ #ifdef HAVE_NCURSES
+-
++#if defined(__FreeBSD_version) && __FreeBSD_version < 400010
++#include <ncurses/curses.h>
++#else
+ #include <curses.h>
++#endif
+
+ const static int __ncurses_color[8] = {
+ COLOR_BLACK,
diff --git a/editors/biew/files/patch-ae b/editors/biew/files/patch-ae
new file mode 100644
index 000000000000..0f146734e9d9
--- /dev/null
+++ b/editors/biew/files/patch-ae
@@ -0,0 +1,15 @@
+--- lib/sysdep/generic/unix/kbd_code.h Fri Mar 3 11:02:00 2000
++++ lib/sysdep/generic/unix/kbd_code.h Sat Mar 4 15:59:28 2000
+@@ -58,8 +58,11 @@
+ */
+
+ #ifdef HAVE_NCURSES
+-
++#if defined(__FreeBSD_version) && __FreeBSD_version < 400010
++#include <ncurses/curses.h>
++#else
+ #include <curses.h>
++#endif
+
+ /*
+ All non-symbol keys (function keys, arrows, etc) must be xx00
diff --git a/editors/biew/files/patch-af b/editors/biew/files/patch-af
new file mode 100644
index 000000000000..f8ca7a7d94ed
--- /dev/null
+++ b/editors/biew/files/patch-af
@@ -0,0 +1,14 @@
+--- lib/sysdep/generic/unix/keyboard.c Fri Mar 3 11:08:20 2000
++++ lib/sysdep/generic/unix/keyboard.c Sat Mar 4 15:36:23 2000
+@@ -25,7 +25,11 @@
+
+ #ifdef HAVE_NCURSES
+
++#if defined(__FreeBSD_version) && __FreeBSD_version < 400010
++#include <ncurses/curses.h>
++#else
+ #include <curses.h>
++#endif
+
+ #ifdef HAVE_MOUSE
+ #include <limits.h>
diff --git a/editors/biew/pkg-comment b/editors/biew/pkg-comment
new file mode 100644
index 000000000000..1627607a451c
--- /dev/null
+++ b/editors/biew/pkg-comment
@@ -0,0 +1 @@
+Binary vIEWer + editor for binary, hexadecimal and dis-asm modes
diff --git a/editors/biew/pkg-descr b/editors/biew/pkg-descr
new file mode 100644
index 000000000000..bf3a9af2fbed
--- /dev/null
+++ b/editors/biew/pkg-descr
@@ -0,0 +1,5 @@
+ Biew is Binary vIEWer with built-in editor for binary,
+hexadecimal and disassembler modes. The program also has text viewer
+with different Russia codepages support (Windows-1251, MSDOS-866,
+etc.). Run the program with -? or without arguments for help on
+program switches.
diff --git a/editors/biew/pkg-plist b/editors/biew/pkg-plist
new file mode 100644
index 000000000000..b7e36ea78a28
--- /dev/null
+++ b/editors/biew/pkg-plist
@@ -0,0 +1,2 @@
+bin/biew
+share/biew/biew.hlp