1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00

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>
This commit is contained in:
Chris D. Faulhaber 2000-03-20 23:51:37 +00:00
parent 7cc807dbea
commit 864f7eed85
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=26875
11 changed files with 152 additions and 0 deletions

47
editors/biew/Makefile Normal file
View File

@ -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>

1
editors/biew/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (biew-501.tar.bz2) = b2ce070901ee1e0b2949a595bf3c087f

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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,

View File

@ -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

View File

@ -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>

1
editors/biew/pkg-comment Normal file
View File

@ -0,0 +1 @@
Binary vIEWer + editor for binary, hexadecimal and dis-asm modes

5
editors/biew/pkg-descr Normal file
View File

@ -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.

2
editors/biew/pkg-plist Normal file
View File

@ -0,0 +1,2 @@
bin/biew
share/biew/biew.hlp