XView library.

This commit is contained in:
angelos 1998-06-08 00:30:55 +00:00
parent 507e1cf246
commit 834b89f8b8
11 changed files with 3097 additions and 0 deletions

25
x11/xview-lib/Makefile Normal file
View File

@ -0,0 +1,25 @@
# OpenBSD makefile for: xview-lib
# Version required: 3.2p1-X11R6
# Date created: June 7 1998
# Whom: Angelos D. Keromytis
#
# $OpenBSD: Makefile,v 1.1.1.1 1998/06/08 00:30:55 angelos Exp $
#
DISTNAME= xview-lib
PKGNAME= xview-lib-3.2.1
CATEGORIES= x11
DEPENDS= ${PORTSDIR}/x11/xview-config
WRKSRC= ${PORTSDIR}/x11/xview-config/work/xview3.2p1-X11R6
USE_IMAKE= yes
NO_WRKDIR= yes
do-fetch:
do-extract: # don't use NO_EXTRACT, dependency won't work
post-install:
${LDCONFIG} -m ${PREFIX}/lib
.include <bsd.port.mk>

View File

@ -0,0 +1,82 @@
diff -rc ../old/xview3.2p1-X11R6/bitmaps/Imakefile ./bitmaps/Imakefile
*** ../old/xview3.2p1-X11R6/bitmaps/Imakefile Tue Jun 29 01:19:54 1993
--- ./bitmaps/Imakefile Sun Nov 20 13:38:56 1994
***************
*** 36,42 ****
! all: $(SRCS)
! BuildIncludes($(INCLUDES_SRCS),$(BITMAP_INCDIR),/**/)
install:: $(SRCS)
$(MKDIRHIER) $(HEADER_DEST)/$(BITMAPINC)
--- 36,42 ----
! all:: $(SRCS)
! BuildIncludes($(INCLUDES_SRCS),$(BITMAP_INCDIR),.)
install:: $(SRCS)
$(MKDIRHIER) $(HEADER_DEST)/$(BITMAPINC)
diff -rc ../old/xview3.2p1-X11R6/doc/Imakefile ./doc/Imakefile
*** ../old/xview3.2p1-X11R6/doc/Imakefile Tue Jun 29 01:13:15 1993
--- ./doc/Imakefile Sun Nov 20 13:38:59 1994
***************
*** 17,23 ****
ALLFILES = $(DOCFILES)
install::
! $(MKDIRHIER) $(DOC_DEST)
InstallNonExecList($(DOCFILES),$(DOC_DEST))
PopulateSCCSTree(h,$(ALLFILES) README)
--- 17,23 ----
ALLFILES = $(DOCFILES)
install::
! $(MKDIRHIER) $(DOC_DEST)
InstallNonExecList($(DOCFILES),$(DOC_DEST))
PopulateSCCSTree(h,$(ALLFILES) README)
diff -rc ../old/xview3.2p1-X11R6/images/Imakefile ./images/Imakefile
*** ../old/xview3.2p1-X11R6/images/Imakefile Tue Jun 29 01:18:41 1993
--- ./images/Imakefile Sun Nov 20 13:38:59 1994
***************
*** 101,107 ****
! all: $(SRCS)
! BuildIncludes($(INCLUDES_SRCS),$(IMAGE_INCDIR),/**/)
install:: $(SRCS)
$(MKDIRHIER) $(HEADER_DEST)/$(IMAGEINC)
--- 101,107 ----
! all:: $(SRCS)
! BuildIncludes($(INCLUDES_SRCS),$(IMAGE_INCDIR),.)
install:: $(SRCS)
$(MKDIRHIER) $(HEADER_DEST)/$(IMAGEINC)
diff -rc ../old/xview3.2p1-X11R6/lib/pixrect/Imakefile ./lib/pixrect/Imakefile
*** ../old/xview3.2p1-X11R6/lib/pixrect/Imakefile Tue Jun 29 01:18:39 1993
--- ./lib/pixrect/Imakefile Sun Nov 20 13:39:15 1994
***************
*** 41,48 ****
all::
#if InstallPixrectHeaders
! BuildIncludes($(HEADERS),$(PIXRECT_INCDIR),/**/)
! BuildIncludes($(HEADERS2),$(INCDIR),/**/)
install::
$(MKDIRHIER) $(PIXRECT_HEADER_DEST)
--- 41,48 ----
all::
#if InstallPixrectHeaders
! BuildIncludes($(HEADERS),$(PIXRECT_INCDIR),.)
! BuildIncludes($(HEADERS2),$(INCDIR),.)
install::
$(MKDIRHIER) $(PIXRECT_HEADER_DEST)

View File

@ -0,0 +1,64 @@
*** lib/libxview/notify/ndet_loop.c~ Tue Nov 22 04:40:21 1994
--- lib/libxview/notify/ndet_loop.c Tue Nov 22 05:35:17 1994
***************
*** 21,27 ****
--- 21,31 ----
#include <xview_private/nint.h>
#include <xview_private/ndis.h> /* For ndis_dispatch */
#ifndef SVR4
+ #ifndef __OpenBSD__
#include <syscall.h>
+ #else
+ #include <sys/syscall.h>
+ #endif
#else SVR4
#include <sys/syscall.h>
#include <sys/poll.h>
*** lib/libxview/notify/sys_fcntl.c~ Mon Jun 28 22:18:17 1993
--- lib/libxview/notify/sys_fcntl.c Tue Nov 22 07:48:49 1994
***************
*** 15,21 ****
--- 15,25 ----
*/
#ifndef SVR4
+ #ifndef __OpenBSD__
#include <syscall.h>
+ #else
+ #include <sys/syscall.h>
+ #endif
#else SVR4
#include <sys/syscall.h>
#endif SVR4
*** lib/libxview/notify/sys_read.c~ Mon Jun 28 22:18:01 1993
--- lib/libxview/notify/sys_read.c Tue Nov 22 08:16:11 1994
***************
*** 15,21 ****
--- 15,25 ----
*/
#ifndef SVR4
+ #ifndef __OpenBSD__
#include <syscall.h>
+ #else
+ #include <sys/syscall.h>
+ #endif
#else SVR4
#include <sys/syscall.h>
#endif SVR4
*** lib/libxview/notify/sys_select.c~ Mon Jun 28 22:18:11 1993
--- lib/libxview/notify/sys_select.c Tue Nov 22 08:20:27 1994
***************
*** 15,21 ****
--- 15,25 ----
*/
#ifndef SVR4
+ #ifndef __OpenBSD__
#include <syscall.h>
+ #else
+ #include <sys/syscall.h>
+ #endif
#else SVR4
#include <values.h>
#include <sys/time.h>

View File

@ -0,0 +1,34 @@
diff -rc ../old/xview3.2p1-X11R6/lib/libolgx/ol_init.c ./lib/libolgx/ol_init.c
*** ../old/xview3.2p1-X11R6/lib/libolgx/ol_init.c Tue Jun 29 01:18:28 1993
--- ./lib/libolgx/ol_init.c Sun Nov 20 13:38:59 1994
***************
*** 9,15 ****
--- 9,18 ----
#include <stdio.h>
#include <stdlib.h>
+ #include <sys/param.h>
+ #if !(defined(BSD) && (BSD >= 199103))
#include <malloc.h>
+ #endif
#include <X11/Xlib.h>
#include "olgx_impl.h"
#include "busy.h"
diff -rc ../old/xview3.2p1-X11R6/lib/libolgx/ol_sb.c ./lib/libolgx/ol_sb.c
*** ../old/xview3.2p1-X11R6/lib/libolgx/ol_sb.c Tue Jun 29 01:18:29 1993
--- ./lib/libolgx/ol_sb.c Sun Nov 20 13:38:59 1994
***************
*** 11,17 ****
--- 11,22 ----
*/
#include <stdio.h>
+ #include <sys/param.h>
+ #if (defined(BSD) && (BSD >= 199103))
+ #include <stdlib.h>
+ #else
#include <malloc.h>
+ #endif
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include "olgx_impl.h"

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,168 @@
*** lib/libxview/win/win_input.c~ Tue Oct 8 22:51:45 1996
--- lib/libxview/win/win_input.c Wed Apr 17 02:26:55 1996
***************
*** 854,860 ****
#ifdef X11R6
/* lumpi@dobag.in-berlin.de */
int ksym_pcc;
! XGetKeyboardMapping(display,NoSymbol,0,&ksym_pcc);
for (index = 0; index < ksym_pcc; index++) {
#else
for (index = 0; index < display->keysyms_per_keycode; index++) {
--- 854,862 ----
#ifdef X11R6
/* lumpi@dobag.in-berlin.de */
int ksym_pcc;
! int tc_min_keycode, tc_max_keycode;
! XDisplayKeycodes(display, &tc_min_keycode, &tc_max_keycode);
! XGetKeyboardMapping(display,tc_min_keycode,tc_max_keycode-tc_min_keycode-1,&ksym_pcc);
for (index = 0; index < ksym_pcc; index++) {
#else
for (index = 0; index < display->keysyms_per_keycode; index++) {
***************
*** 862,868 ****
if ((ksym = XLookupKeysym(ek, index)) != NoSymbol)
if (IsKeypadKey(ksym)) {
/* See if key has been rebound. */
! if (!translate_key(display, ksym, ek->state,
buffer, BUFFERSIZE)) {
(void)win_translate_KP_keysym(ksym, buffer);
}
--- 864,870 ----
if ((ksym = XLookupKeysym(ek, index)) != NoSymbol)
if (IsKeypadKey(ksym)) {
/* See if key has been rebound. */
! if (translate_key(display, ksym, ek->state,
buffer, BUFFERSIZE)) {
(void)win_translate_KP_keysym(ksym, buffer);
}
***************
*** 2721,2728 ****
* Xlib's.
*/
! #ifdef X11R6
! /* lumpi@dobag.in-berlin.de */
static int
translate_key(dpy, symbol, modifiers, buffer, nbytes)
Display *dpy;
--- 2723,2732 ----
* Xlib's.
*/
! #ifdef X11R6
! /* lumpi@dobag.in-berlin.de
! tom@sees.bangor.ac.uk this replacement for X11R6 doesn't work. At least
! it should now return sensible values though. */
static int
translate_key(dpy, symbol, modifiers, buffer, nbytes)
Display *dpy;
***************
*** 2732,2742 ****
int nbytes;
{
/* This is _very_ rude ! */
! strcpy(buffer,XKeysymToString(symbol));
}
- #else
static int
translate_key(dpy, symbol, modifiers, buffer, nbytes)
Display *dpy;
--- 2736,2753 ----
int nbytes;
{
/* This is _very_ rude ! */
! char *string;
! string = XKeysymToString(symbol);
! if (string) {
! strncpy(buffer,XKeysymToString(symbol),nbytes);
! return(strlen(buffer));
! }
! else
! return 0;
}
+ #else
static int
translate_key(dpy, symbol, modifiers, buffer, nbytes)
Display *dpy;
***************
*** 2762,2765 ****
}
return 0;
}
! #endif
--- 2773,2776 ----
}
return 0;
}
! #endif
3.
*** lib/libxview/ttysw/tty_mapkey.c~ Tue Jun 29 06:17:20 1993
--- lib/libxview/ttysw/tty_mapkey.c Tue Jan 16 23:58:56 1996
***************
*** 500,506 ****
* have more time.
*/
! #ifdef i386
static void
ttysw_arrow_keys_to_string(xv_id, str)
unsigned xv_id;
--- 500,506 ----
* have more time.
*/
! #if defined(i386) && !defined (__OpenBSD__)
static void
ttysw_arrow_keys_to_string(xv_id, str)
unsigned xv_id;
*** lib/libxview/ttysw/cim_size.c.orig Tue Jun 29 06:17:14 1993
--- lib/libxview/ttysw/cim_size.c Sat Oct 25 00:53:49 1997
***************
*** 156,174 ****
{
if (lines_ptr) {
! cfree((CHAR *) (lines_ptr));
lines_ptr = NULL;
}
if (image) {
! cfree((CHAR **) image);
image = NULL;
}
if (mode_ptr) {
! cfree((char *) (mode_ptr));
mode_ptr = NULL;
}
if (screenmode) {
! cfree((char **) screenmode);
screenmode = NULL;
}
}
--- 156,174 ----
{
if (lines_ptr) {
! free((CHAR *) (lines_ptr));
lines_ptr = NULL;
}
if (image) {
! free((CHAR **) image);
image = NULL;
}
if (mode_ptr) {
! free((char *) (mode_ptr));
mode_ptr = NULL;
}
if (screenmode) {
! free((char **) screenmode);
screenmode = NULL;
}
}

View File

@ -0,0 +1,14 @@
--- ../alt/lib/libxview/notify/ndet_fd.c Tue Jun 29 07:18:08 1993
+++ lib/libxview/notify/ndet_fd.c Sat Jul 26 00:42:21 1997
@@ -27,8 +27,9 @@
#define GETDTABLESIZE() \
(dtablesize_cache?dtablesize_cache:(dtablesize_cache=(int)sysconf(_SC_OPEN_MAX)))
#else
-#define GETDTABLESIZE() \
- (dtablesize_cache?dtablesize_cache:(dtablesize_cache=getdtablesize()))
+#define GETDTABLESIZE() \
+ (dtablesize_cache ? dtablesize_cache : \
+ (dtablesize_cache = MIN(getdtablesize(), FD_SETSIZE)))
#endif SVR4
static int ndet_fd_table_size; /* Number of descriptor slots

View File

@ -0,0 +1,14 @@
--- ../alt/lib/libxview/notify/ndisdispch.c Tue Jun 29 07:18:06 1993
+++ lib/libxview/notify/ndisdispch.c Sat Jul 26 00:55:47 1997
@@ -30,8 +30,9 @@
#define GETDTABLESIZE() \
(dtablesize_cache?dtablesize_cache:(dtablesize_cache=(int)sysconf(_SC_OPEN_MAX)))
#else
-#define GETDTABLESIZE() \
- (dtablesize_cache?dtablesize_cache:(dtablesize_cache=getdtablesize()))
+#define GETDTABLESIZE() \
+ (dtablesize_cache ? dtablesize_cache : \
+ (dtablesize_cache = MIN(getdtablesize(), FD_SETSIZE)))
#endif SVR4
pkg_private_data u_int ndis_flags = 0;

View File

@ -0,0 +1 @@
OpenLook Toolkit libs, includes, and man pages.

20
x11/xview-lib/pkg/DESCR Normal file
View File

@ -0,0 +1,20 @@
What Is XView
-------------
XView (X Window-System-based Visual/Integrated Environment for Workstations)
is a user-interface toolkit to support interactive, graphics-based
applications running under the X Window System. XView provides a set of
pre-built, user-interface objects such as canvases, scrollbars, menus, and
control panels. The appearance and functionality of these objects follow
the OPEN LOOK Graphical User Interface (GUI) specification. XView features
an object-oriented style Application Programmer's Interface (API) that is
straightforward and easy to learn.
This package contains the libraries, headers and support files
nessicary to build XView applications.
Source Notes
------------
This version of the XView source corresponds to that provided with
OpenWindows Version 3.2 from SunSoft Inc. Libraries generated with this
source should be interchangeable with those from the OpenWindows Version 3.2
release.

287
x11/xview-lib/pkg/PLIST Normal file
View File

@ -0,0 +1,287 @@
bin/xgettext
bin/msgfmt
lib/libolgx.so.3.2
lib/libxview.so.3.2
lib/libolgx.so
lib/libxview.so
@exec /sbin/ldconfig -m %B
lib/.text_extras_menu
lib/.textswrc
lib/.ttyswrc
lib/text_extras_menu
lib/textswrc
lib/ttyswrc
lib/help/textsw.info
lib/help/ttysw.info
lib/help/xview.info
man/man1/msgfmt.1.gz
man/man1/xgettext.1.gz
man/man1/xview.1.gz
include/bitmaps/1x1
include/bitmaps/2x2
include/bitmaps/black
include/bitmaps/boxes
include/bitmaps/calculator
include/bitmaps/cntr_ptr
include/bitmaps/cntr_ptrmsk
include/bitmaps/cross_weave
include/bitmaps/dimple1
include/bitmaps/dimple3
include/bitmaps/dot
include/bitmaps/dropbar7
include/bitmaps/dropbar8
include/bitmaps/escherknot
include/bitmaps/flagdown
include/bitmaps/flagup
include/bitmaps/flipped_gray
include/bitmaps/gray
include/bitmaps/gray1
include/bitmaps/gray3
include/bitmaps/hlines2
include/bitmaps/hlines3
include/bitmaps/icon
include/bitmaps/keyboard16
include/bitmaps/left_ptr
include/bitmaps/left_ptrmsk
include/bitmaps/letters
include/bitmaps/light_gray
include/bitmaps/mailempty
include/bitmaps/mailemptymsk
include/bitmaps/mailfull
include/bitmaps/mailfullmsk
include/bitmaps/mensetmanus
include/bitmaps/menu10
include/bitmaps/menu12
include/bitmaps/menu16
include/bitmaps/menu8
include/bitmaps/noletters
include/bitmaps/opendot
include/bitmaps/opendotMask
include/bitmaps/plaid
include/bitmaps/right_ptr
include/bitmaps/right_ptrmsk
include/bitmaps/root_weave
include/bitmaps/scales
include/bitmaps/sipb
include/bitmaps/star
include/bitmaps/starMask
include/bitmaps/stipple
include/bitmaps/target
include/bitmaps/terminal
include/bitmaps/tie_fighter
include/bitmaps/txtdup
include/bitmaps/txtdupmask
include/bitmaps/txtdupmore
include/bitmaps/txtdupok
include/bitmaps/txtdupokmask
include/bitmaps/txtdupokmore
include/bitmaps/txtmv
include/bitmaps/txtmvmask
include/bitmaps/txtmvmore
include/bitmaps/txtmvok
include/bitmaps/txtmvokmask
include/bitmaps/txtmvokmore
include/bitmaps/vlines2
include/bitmaps/vlines3
include/bitmaps/weird_size
include/bitmaps/wide_weave
include/bitmaps/wierd_size
include/bitmaps/wingdogs
include/bitmaps/woman
include/bitmaps/xfd_icon
include/bitmaps/xlogo11
include/bitmaps/xlogo16
include/bitmaps/xlogo32
include/bitmaps/xlogo64
include/images/bg1.xbm
include/images/bg2.xbm
include/images/bg3.xbm
include/images/default.icon
include/images/dup_cursor.pr
include/images/fl_arrow.xbm
include/images/fl_doc.xbm
include/images/fl_folder.xbm
include/images/focus_right.cursor
include/images/focus_up.cursor
include/images/mglass.icon
include/images/mglass_mask.icon
include/images/qmark.cursor
include/images/square_17.pr
include/images/square_25.pr
include/images/square_75.pr
include/images/text_move_cursor.pr
include/olgx/olgx.h
include/olgx_private/busy.h
include/olgx_private/grey.h
include/olgx_private/olgx_impl.h
include/pixrect/bw2var.h
include/pixrect/cg12_var.h
include/pixrect/cg2reg.h
include/pixrect/cg2var.h
include/pixrect/cg3var.h
include/pixrect/cg4var.h
include/pixrect/cg8var.h
include/pixrect/cg9var.h
include/pixrect/gp1cmds.h
include/pixrect/gp1reg.h
include/pixrect/mem32_var.h
include/pixrect/mem_rop_impl_ops.h
include/pixrect/mem_rop_impl_util.h
include/pixrect/memreg.h
include/pixrect/memvar.h
include/pixrect/pixfont.h
include/pixrect/pixrect.h
include/pixrect/pixrect_hs.h
include/pixrect/pr_dblbuf.h
include/pixrect/pr_impl_make.h
include/pixrect/pr_impl_util.h
include/pixrect/pr_io.h
include/pixrect/pr_line.h
include/pixrect/pr_planegroups.h
include/pixrect/pr_util.h
include/pixrect/rasterfile.h
include/pixrect/traprop.h
include/pixrect/tv1var.h
include/xview/alert.h
include/xview/attr.h
include/xview/attrol.h
include/xview/base.h
include/xview/canvas.h
include/xview/cms.h
include/xview/cms_grays.h
include/xview/cms_mono.h
include/xview/cms_rgb.h
include/xview/cmsrainbow.h
include/xview/cursor.h
include/xview/db.h
include/xview/defaults.h
include/xview/dragdrop.h
include/xview/drawable.h
include/xview/expandname.h
include/xview/file_chsr.h
include/xview/file_list.h
include/xview/font.h
include/xview/frame.h
include/xview/fullscreen.h
include/xview/generic.h
include/xview/hist.h
include/xview/icon.h
include/xview/icon_load.h
include/xview/notice.h
include/xview/notify.h
include/xview/openmenu.h
include/xview/openwin.h
include/xview/panel.h
include/xview/path.h
include/xview/pixwin.h
include/xview/pkg.h
include/xview/pkg_public.h
include/xview/rect.h
include/xview/rectlist.h
include/xview/screen.h
include/xview/scrollbar.h
include/xview/sel_attrs.h
include/xview/sel_compat.h
include/xview/sel_pkg.h
include/xview/sel_svc.h
include/xview/selection.h
include/xview/seln.h
include/xview/server.h
include/xview/str_utils.h
include/xview/sun.h
include/xview/svrimage.h
include/xview/termsw.h
include/xview/text.h
include/xview/textsw.h
include/xview/tty.h
include/xview/ttysw.h
include/xview/win_enum.h
include/xview/win_env.h
include/xview/win_event.h
include/xview/win_input.h
include/xview/win_notify.h
include/xview/win_screen.h
include/xview/win_struct.h
include/xview/window.h
include/xview/window_hs.h
include/xview/wmgr.h
include/xview/xv_c_types.h
include/xview/xv_error.h
include/xview/xv_i18n.h
include/xview/xv_version.h
include/xview/xv_xrect.h
include/xview/xview.h
include/xview/xview_xvin.h
include/xview_private/attr_impl.h
include/xview_private/bitmask.h
include/xview_private/charimage.h
include/xview_private/charscreen.h
include/xview_private/cms_impl.h
include/xview_private/cnvs_impl.h
include/xview_private/curs_impl.h
include/xview_private/dndimpl.h
include/xview_private/draw_impl.h
include/xview_private/ei.h
include/xview_private/es.h
include/xview_private/ev.h
include/xview_private/ev_impl.h
include/xview_private/fchsr_impl.h
include/xview_private/filter.h
include/xview_private/finger_tbl.h
include/xview_private/flist_impl.h
include/xview_private/fm_impl.h
include/xview_private/font_impl.h
include/xview_private/frame_base.h
include/xview_private/frame_cmd.h
include/xview_private/frame_help.h
include/xview_private/fs_impl.h
include/xview_private/gen_impl.h
include/xview_private/gettext.h
include/xview_private/hashfn.h
include/xview_private/hist_impl.h
include/xview_private/i18n_impl.h
include/xview_private/icon_impl.h
include/xview_private/io_stream.h
include/xview_private/item_impl.h
include/xview_private/ndet.h
include/xview_private/ndis.h
include/xview_private/nint.h
include/xview_private/noticeimpl.h
include/xview_private/ntfy.h
include/xview_private/ntfy_ctbl.h
include/xview_private/om_impl.h
include/xview_private/omi_impl.h
include/xview_private/ow_impl.h
include/xview_private/p_lst_impl.h
include/xview_private/panel_impl.h
include/xview_private/path_impl.h
include/xview_private/portable.h
include/xview_private/primal.h
include/xview_private/ps_impl.h
include/xview_private/pw_impl.h
include/xview_private/sb_impl.h
include/xview_private/scrn_impl.h
include/xview_private/scrn_vis.h
include/xview_private/sel_impl.h
include/xview_private/seln_impl.h
include/xview_private/site_impl.h
include/xview_private/svr_atom.h
include/xview_private/svr_impl.h
include/xview_private/svr_kmdata.h
include/xview_private/svrim_impl.h
include/xview_private/term_impl.h
include/xview_private/tty_impl.h
include/xview_private/ttyansi.h
include/xview_private/txt_18impl.h
include/xview_private/txt_impl.h
include/xview_private/ultrix_cpt.h
include/xview_private/win_info.h
include/xview_private/win_keymap.h
include/xview_private/windowimpl.h
include/xview_private/wmgr_decor.h
include/xview_private/xv_color.h
include/xview_private/xv_debug.h
include/xview_private/xv_list.h
include/xview_private/xv_path_util.h
lib/libolgx.a
lib/libxview.a