Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Mar 2000 20:07:26 +0200 (EET)
From:      acid@stu.cn.ua
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/17186: BIEW (binary viewer+editor) port - working version
Message-ID:  <200003041807.UAA92815@stalker.stu.cn.ua>

next in thread | raw e-mail | index | archive | help

>Number:         17186
>Category:       ports
>Synopsis:       BIEW (binary viewer+editor) port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar  4 10:10:02 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Michael Vasilenko
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
Chernigiv State Technological University
>Environment:


>Description:

    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.

   Port has been tested on 3.4 and 4.0-CURRENT, sorry for my previous
posting (ports/17179), this one should work, REALLY.
   
>How-To-Repeat:


>Fix:
	
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	editors/biew
#	editors/biew/files
#	editors/biew/files/md5
#	editors/biew/patches
#	editors/biew/patches/patch-aa
#	editors/biew/patches/patch-ab
#	editors/biew/patches/patch-ae
#	editors/biew/patches/patch-af
#	editors/biew/patches/patch-ag
#	editors/biew/patches/patch-ah
#	editors/biew/patches/patch-ac
#	editors/biew/patches/patch-ad
#	editors/biew/pkg
#	editors/biew/pkg/COMMENT
#	editors/biew/pkg/DESCR
#	editors/biew/pkg/PLIST
#	editors/biew/Makefile
#
echo c - editors/biew
mkdir -p editors/biew > /dev/null 2>&1
echo c - editors/biew/files
mkdir -p editors/biew/files > /dev/null 2>&1
echo x - editors/biew/files/md5
sed 's/^X//' >editors/biew/files/md5 << 'END-of-editors/biew/files/md5'
XMD5 (biew-501.tar.bz2) = b2ce070901ee1e0b2949a595bf3c087f
END-of-editors/biew/files/md5
echo c - editors/biew/patches
mkdir -p editors/biew/patches > /dev/null 2>&1
echo x - editors/biew/patches/patch-aa
sed 's/^X//' >editors/biew/patches/patch-aa << 'END-of-editors/biew/patches/patch-aa'
X--- lib/sysdep/generic/unix/os_dep.c.orig	Fri Mar  3 11:08:20 2000
X+++ lib/sysdep/generic/unix/os_dep.c	Sat Mar  4 14:35:49 2000
X@@ -46,7 +46,7 @@
X 
X char * __get_help_name(void)
X {
X-	return "/usr/lib/biew/biew.hlp";
X+	return "/usr/local/share/biew/biew.hlp";
X }
X 
X static void cleanup(int sig)
END-of-editors/biew/patches/patch-aa
echo x - editors/biew/patches/patch-ab
sed 's/^X//' >editors/biew/patches/patch-ab << 'END-of-editors/biew/patches/patch-ab'
X--- tools/biewhlp/biewhlp.c.orig	Fri Mar  3 11:08:24 2000
X+++ tools/biewhlp/biewhlp.c	Sat Mar  4 15:00:57 2000
X@@ -29,7 +29,7 @@
X BGLOBAL bOutput;
X 
X #define BBIO_CACHE_SIZE 0x1000
X-#define ARCHIVER "lzss e"
X+#define ARCHIVER "./lzss e"
X #define TEMPFNAME "temp_hlp.tmp"
X 
X void MyCallBack(IniInfo *ini)
END-of-editors/biew/patches/patch-ab
echo x - editors/biew/patches/patch-ae
sed 's/^X//' >editors/biew/patches/patch-ae << 'END-of-editors/biew/patches/patch-ae'
X--- lib/sysdep/generic/unix/kbd_code.h	Fri Mar  3 11:02:00 2000
X+++ lib/sysdep/generic/unix/kbd_code.h	Sat Mar  4 15:59:28 2000
X@@ -58,8 +58,11 @@
X */
X 
X #ifdef HAVE_NCURSES
X-
X+#if defined(__FreeBSD_version) && __FreeBSD_version < 400010
X+#include <ncurses/curses.h>
X+#else
X #include <curses.h>
X+#endif
X 
X /*
X     All non-symbol keys (function keys, arrows, etc) must be xx00
END-of-editors/biew/patches/patch-ae
echo x - editors/biew/patches/patch-af
sed 's/^X//' >editors/biew/patches/patch-af << 'END-of-editors/biew/patches/patch-af'
X--- lib/sysdep/generic/unix/keyboard.c	Fri Mar  3 11:08:20 2000
X+++ lib/sysdep/generic/unix/keyboard.c	Sat Mar  4 15:36:23 2000
X@@ -25,7 +25,11 @@
X 
X #ifdef HAVE_NCURSES
X 
X+#if defined(__FreeBSD_version) && __FreeBSD_version < 400010
X+#include <ncurses/curses.h>
X+#else
X #include <curses.h>
X+#endif
X 
X #ifdef HAVE_MOUSE
X #include <limits.h>
END-of-editors/biew/patches/patch-af
echo x - editors/biew/patches/patch-ag
sed 's/^X//' >editors/biew/patches/patch-ag << 'END-of-editors/biew/patches/patch-ag'
X--- lib/sysdep/generic/unix/mouse.c	Fri Mar  3 11:08:20 2000
X+++ lib/sysdep/generic/unix/mouse.c	Sat Mar  4 15:44:04 2000
X@@ -19,7 +19,11 @@
X #include <string.h>
X 
X #ifdef HAVE_NCURSES
X+#if defined (__FreeBSD_version) && __FreeBSD_version < 400010
X+#include <ncurses/curses.h>
X+#else
X #include <curses.h>
X+#endif
X #endif
X 
X #ifdef HAVE_MOUSE
END-of-editors/biew/patches/patch-ag
echo x - editors/biew/patches/patch-ah
sed 's/^X//' >editors/biew/patches/patch-ah << 'END-of-editors/biew/patches/patch-ah'
X--- bconsole.c.orig	Fri Mar  3 11:08:17 2000
X+++ bconsole.c	Sat Mar  4 19:44:57 2000
X@@ -33,9 +33,6 @@
X unsigned short Width,Height;
X extern TWindow * ErrorWnd;
X 
X-#define TRUE 1
X-#define FALSE 0
X-
X #define MAXINPUT 79
X 
X #define FORMFEED 12
END-of-editors/biew/patches/patch-ah
echo x - editors/biew/patches/patch-ac
sed 's/^X//' >editors/biew/patches/patch-ac << 'END-of-editors/biew/patches/patch-ac'
X--- makefile.inc.orig	Fri Mar  3 11:02:14 2000
X+++ makefile.inc	Sat Mar  4 19:32:28 2000
X@@ -158,7 +158,7 @@
X #  LDFLAGS set it for link method                                         #
X ###########################################################################
X CFLAGS = -Wall -O2 -fomit-frame-pointer -fcaller-saves\
X- -DNDEBUG=1 $(CDEFOS) $(CDEFSYS)
X+ -DNDEBUG=1 $(CDEFOS) $(CDEFSYS) $(CSYSFLAGS)
X #-ffunction-sections
X LDFLAGS = -s $(OSLDEF)
X 
END-of-editors/biew/patches/patch-ac
echo x - editors/biew/patches/patch-ad
sed 's/^X//' >editors/biew/patches/patch-ad << 'END-of-editors/biew/patches/patch-ad'
X--- lib/sysdep/generic/unix/vio.c	Fri Mar  3 11:08:20 2000
X+++ lib/sysdep/generic/unix/vio.c	Sat Mar  4 15:36:46 2000
X@@ -32,8 +32,11 @@
X #define VMAX_Y 100
X 
X #ifdef HAVE_NCURSES
X-
X+#if defined(__FreeBSD_version) && __FreeBSD_version < 400010
X+#include <ncurses/curses.h>
X+#else
X #include <curses.h>
X+#endif
X 
X const static int __ncurses_color[8] = {
X     COLOR_BLACK,
END-of-editors/biew/patches/patch-ad
echo c - editors/biew/pkg
mkdir -p editors/biew/pkg > /dev/null 2>&1
echo x - editors/biew/pkg/COMMENT
sed 's/^X//' >editors/biew/pkg/COMMENT << 'END-of-editors/biew/pkg/COMMENT'
XBinary vIEWer + editor for binary, hexadecimal and dis-asm modes.
END-of-editors/biew/pkg/COMMENT
echo x - editors/biew/pkg/DESCR
sed 's/^X//' >editors/biew/pkg/DESCR << 'END-of-editors/biew/pkg/DESCR'
X    Biew  is  Binary  vIEWer  with   built-in   editor   for   binary,
Xhexadecimal and disassembler modes. The program also has  text  viewer
Xwith different  Russia  codepages  support  (Windows-1251,  MSDOS-866,
Xetc.). Run the program with  -?  or  without  arguments  for  help  on
Xprogram switches.
END-of-editors/biew/pkg/DESCR
echo x - editors/biew/pkg/PLIST
sed 's/^X//' >editors/biew/pkg/PLIST << 'END-of-editors/biew/pkg/PLIST'
Xbin/biew
Xshare/biew/biew.hlp
END-of-editors/biew/pkg/PLIST
echo x - editors/biew/Makefile
sed 's/^X//' >editors/biew/Makefile << 'END-of-editors/biew/Makefile'
X# New ports collection makefile for:	biew
X# Version required:	5.0.1
X# Date created:		04 February 2000
X# Whom:			Michael Vasilenko <acid@stu.cn.ua>
X#
X# $FreeBSD$
X#
X
XDISTNAME=	biew-501
XPKGNAME=	biew-5.01
XCATEGORIES=	editors
XMASTER_SITES=	ftp://biew.sourceforge.net/pub/biew/5.x/src/ \
X		http://download.sourceforge.net/biew/
X
XMAINTAINER=	ports@FreeBSD.org
X
XUSE_BZIP2=	yes
XUSE_GMAKE=	yes
XMAKE_ARGS=	"USE_NCURSES_PSEUDO=y"
X
X.include <bsd.port.pre.mk>
X.if ${OSVERSION} < 400010
XLIB_DEPENDS=   ncurses.4:${PORTSDIR}/devel/ncurses
XMAKE_ARGS+=	"CSYSFLAGS=-D__FreeBSD_version=${OSVERSION} -I${LOCALBASE}/include"
XMAKE_ARGS+=	"OSLDEF=-L${LOCALBASE}/lib"
X.endif
X
Xpre-build:
X	 ${LN} -sf ${WRKSRC}/makefile ${WRKSRC}/Makefile
X
Xpost-build:
X	@ ${LN} -sf ${WRKSRC}/tools/biewhlp/makefile ${WRKSRC}/tools/biewhlp/Makefile
X	@ ${LN} -sf ${WRKSRC}/tools/lzss/makefile ${WRKSRC}/tools/lzss/Makefile
X	@ ${LN} -sf ${WRKSRC}/lib ${WRKSRC}/tools/biewhlp/lib
X	@ ${LN} -sf ${WRKSRC}/lib ${WRKSRC}/tools/lzss/lib
X	@ (cd ${WRKSRC}/tools/biewhlp;${GMAKE})
X	@ (cd ${WRKSRC}/tools/lzss;${GMAKE})
X	@ (cd ${WRKSRC}/hlp;${LN} -sf ../tools/biewhlp/biewhlp ./;\
X	${LN} -sf ../tools/lzss/lzss ./;./biewhlp biewhlp.prj)
X
Xdo-install:
X	@ ${INSTALL_PROGRAM} ${WRKSRC}/biew ${PREFIX}/bin
X	@ ${MKDIR} ${PREFIX}/share/biew
X	@ ${INSTALL_DATA} ${WRKSRC}/hlp/biew.hlp ${PREFIX}/share/biew
X
X.include <bsd.port.post.mk>
END-of-editors/biew/Makefile
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003041807.UAA92815>