xfedor port
This commit is contained in:
parent
f59ea04a04
commit
9318da7854
38
x11/xfedor/Makefile
Normal file
38
x11/xfedor/Makefile
Normal file
@ -0,0 +1,38 @@
|
||||
# OpenBSD makefile for: xfedor
|
||||
# Version required: 1994 year version with Imakefile
|
||||
# Date created: May 19 1998
|
||||
# Whom: Angelos D. Keromytis
|
||||
#
|
||||
# ATTENTION: It not work in > 256 colors modes, please fix it
|
||||
# if you can.
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 1998/05/19 05:29:54 angelos Exp $
|
||||
#
|
||||
|
||||
DISTNAME= xfedor
|
||||
PKGNAME= xfedor-1.0
|
||||
CATEGORIES= x11
|
||||
MASTER_SITES= ftp://ftp.kiarchive.ru/pub/x11/util/
|
||||
|
||||
LIB_DEPENDS= Xpm\\.4\\.:${PORTSDIR}/graphics/xpm
|
||||
|
||||
MAINTAINER= angelos@openbsd.org
|
||||
|
||||
USE_IMAKE= yes
|
||||
|
||||
XFHELP= ${X11BASE}/lib/X11/xfedor # See patches too
|
||||
XCAT1= ${X11BASE}/man/cat1
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC}; \
|
||||
${INSTALL_PROGRAM} xfedor ${PREFIX}/bin
|
||||
-mkdir -p ${XFHELP}
|
||||
chown ${SHAREOWN}.${SHAREGRP} ${XFHELP}
|
||||
chmod 755 ${XFHELP}
|
||||
cd ${WRKSRC}/help; \
|
||||
${INSTALL_DATA} * ${XFHELP}
|
||||
${INSTALL_DATA} ${FILESDIR}/default.sos ${XFHELP}
|
||||
cd ${WRKSRC}; \
|
||||
${INSTALL_MAN} xfedor.txt ${XCAT1}/xfedor.1
|
||||
|
||||
.include <bsd.port.mk>
|
1
x11/xfedor/files/default.sos
Normal file
1
x11/xfedor/files/default.sos
Normal file
@ -0,0 +1 @@
|
||||
No help on this subject
|
1
x11/xfedor/files/md5
Normal file
1
x11/xfedor/files/md5
Normal file
@ -0,0 +1 @@
|
||||
MD5 (xfedor.tar.gz) = 09166cec44c5091af0bb383ca18e6533
|
24
x11/xfedor/patches/patch-aa
Normal file
24
x11/xfedor/patches/patch-aa
Normal file
@ -0,0 +1,24 @@
|
||||
*** Imakefile.orig Thu May 26 20:56:29 1994
|
||||
--- Imakefile Tue Sep 3 01:15:19 1996
|
||||
***************
|
||||
*** 1,11 ****
|
||||
! XCOMM Specify here your Xpm installation directories
|
||||
! XPM_INCLUDEDIR = /project/motif/build/Xpm3.4/source/lib
|
||||
! XPM_LIBDIR = /project/motif/build/Xpm3.4/sun/lib
|
||||
!
|
||||
! EXTRA_INCLUDES = -I$(XPM_INCLUDEDIR)
|
||||
|
||||
DEPLIBS = $(DEPXLIB)
|
||||
! LOCAL_LIBRARIES = $(XLIB) -L$(XPM_LIBDIR) -lXpm
|
||||
SYS_LIBRARIES = -lm
|
||||
|
||||
SRCS = couchex.c myrast.c dialogue.c popup.c\
|
||||
--- 1,8 ----
|
||||
! DEFINES = -DDIRSOS=\"${X11BASE}/lib/X11/xfedor\"
|
||||
! EXTRA_INCLUDES = -I$(INCROOT)/X11
|
||||
|
||||
DEPLIBS = $(DEPXLIB)
|
||||
! LOCAL_LIBRARIES = $(XLIB) -lXpm
|
||||
SYS_LIBRARIES = -lm
|
||||
|
||||
SRCS = couchex.c myrast.c dialogue.c popup.c\
|
19
x11/xfedor/patches/patch-ab
Normal file
19
x11/xfedor/patches/patch-ab
Normal file
@ -0,0 +1,19 @@
|
||||
*** sos.c.bak Thu May 26 21:59:13 1994
|
||||
--- sos.c Tue Sep 3 01:15:19 1996
|
||||
***************
|
||||
*** 36,42 ****
|
||||
{
|
||||
|
||||
if ((dirsos = getenv("SOS"))==0)
|
||||
! if (UnixFileNameMode) dirsos = "/usr/local/lib/X11/xfedor" ;
|
||||
else dirsos = "";
|
||||
if (UnixFileNameMode) {
|
||||
newdirsos = (char *)malloc(strlen(dirsos)+2);
|
||||
--- 36,42 ----
|
||||
{
|
||||
|
||||
if ((dirsos = getenv("SOS"))==0)
|
||||
! if (UnixFileNameMode) dirsos = DIRSOS;
|
||||
else dirsos = "";
|
||||
if (UnixFileNameMode) {
|
||||
newdirsos = (char *)malloc(strlen(dirsos)+2);
|
19
x11/xfedor/patches/patch-ac
Normal file
19
x11/xfedor/patches/patch-ac
Normal file
@ -0,0 +1,19 @@
|
||||
*** bitmaps/bull.bak Mon Jun 13 17:59:16 1988
|
||||
--- bitmaps/bull Tue Sep 3 01:46:36 1996
|
||||
***************
|
||||
*** 1,7 ****
|
||||
#define bull_width 70
|
||||
#define bull_height 75
|
||||
#define bull_x_hot 0
|
||||
! #define bull-y_hot -1
|
||||
static char bull_bits[] = {
|
||||
0xff, 0xff, 0xff, 0xff, 0x5f, 0xfe, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff,
|
||||
0xff, 0x29, 0xfc, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff, 0x3f, 0x00, 0xf0,
|
||||
--- 1,7 ----
|
||||
#define bull_width 70
|
||||
#define bull_height 75
|
||||
#define bull_x_hot 0
|
||||
! #define bull_y_hot -1
|
||||
static char bull_bits[] = {
|
||||
0xff, 0xff, 0xff, 0xff, 0x5f, 0xfe, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff,
|
||||
0xff, 0x29, 0xfc, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff, 0x3f, 0x00, 0xf0,
|
57
x11/xfedor/patches/patch-ad
Normal file
57
x11/xfedor/patches/patch-ad
Normal file
@ -0,0 +1,57 @@
|
||||
*** couchex.c.orig Thu May 26 21:59:03 1994
|
||||
--- couchex.c Tue Sep 3 02:09:18 1996
|
||||
***************
|
||||
*** 366,377 ****
|
||||
{
|
||||
XEvent rep ;
|
||||
static int ZoneCour = 0 ;
|
||||
! int i, keysym ;
|
||||
char s[1] ;
|
||||
|
||||
do {
|
||||
XNextEvent(Dpl,&rep) ;
|
||||
! if (rep.type == KeyPress) XLookupString(&rep,s,1,&keysym,NULL);
|
||||
} while ( ((rep.type != Expose) || (rep.xexpose.count != 0)) &&
|
||||
((rep.type != KeyPress) || (IsModifierKey(keysym))) &&
|
||||
(rep.type != ButtonPress) &&
|
||||
--- 366,378 ----
|
||||
{
|
||||
XEvent rep ;
|
||||
static int ZoneCour = 0 ;
|
||||
! int i ;
|
||||
! KeySym keysym ;
|
||||
char s[1] ;
|
||||
|
||||
do {
|
||||
XNextEvent(Dpl,&rep) ;
|
||||
! if (rep.type == KeyPress) XLookupString(&rep.xkey,s,1,&keysym,NULL);
|
||||
} while ( ((rep.type != Expose) || (rep.xexpose.count != 0)) &&
|
||||
((rep.type != KeyPress) || (IsModifierKey(keysym))) &&
|
||||
(rep.type != ButtonPress) &&
|
||||
***************
|
||||
*** 788,798 ****
|
||||
int wd ;
|
||||
{
|
||||
int px, py ;
|
||||
! long bidon ;
|
||||
XWindowAttributes watt ;
|
||||
|
||||
XGetWindowAttributes(Dpl,wd,&watt);
|
||||
! XQueryPointer(Dpl,root,&bidon,&bidon,&px,&py,&bidon,&bidon,&bidon);
|
||||
|
||||
if ((px + watt.width/2) > DisplayWidth(Dpl,screen))
|
||||
px = DisplayWidth(Dpl,screen) - watt.width/2 ;
|
||||
--- 789,801 ----
|
||||
int wd ;
|
||||
{
|
||||
int px, py ;
|
||||
! Window bidon ;
|
||||
! int fake;
|
||||
! unsigned int mfake;
|
||||
XWindowAttributes watt ;
|
||||
|
||||
XGetWindowAttributes(Dpl,wd,&watt);
|
||||
! XQueryPointer(Dpl,root,&bidon,&bidon,&px,&py,&fake,&fake,&mfake);
|
||||
|
||||
if ((px + watt.width/2) > DisplayWidth(Dpl,screen))
|
||||
px = DisplayWidth(Dpl,screen) - watt.width/2 ;
|
56
x11/xfedor/patches/patch-ae
Normal file
56
x11/xfedor/patches/patch-ae
Normal file
@ -0,0 +1,56 @@
|
||||
*** filer.c.orig Thu May 26 21:59:10 1994
|
||||
--- filer.c Tue Sep 3 15:01:15 1996
|
||||
***************
|
||||
*** 85,91 ****
|
||||
{
|
||||
int i ;
|
||||
int nchars ;
|
||||
! char * filename[138] ;
|
||||
int bytesperrow ;
|
||||
unsigned char * vidmem ;
|
||||
int vidwidth ;
|
||||
--- 85,91 ----
|
||||
{
|
||||
int i ;
|
||||
int nchars ;
|
||||
! char filename[138] ;
|
||||
int bytesperrow ;
|
||||
unsigned char * vidmem ;
|
||||
int vidwidth ;
|
||||
***************
|
||||
*** 187,193 ****
|
||||
fprintf(stderr,"\n");
|
||||
fprintf(stderr, msg, p1, p2, p3, p4);
|
||||
fprintf(stderr,"\n");
|
||||
! fclose(pF);
|
||||
return -1 ;
|
||||
}
|
||||
|
||||
--- 187,196 ----
|
||||
fprintf(stderr,"\n");
|
||||
fprintf(stderr, msg, p1, p2, p3, p4);
|
||||
fprintf(stderr,"\n");
|
||||
! if (pF != NULL) {
|
||||
! fclose(pF);
|
||||
! pF = NULL;
|
||||
! }
|
||||
return -1 ;
|
||||
}
|
||||
|
||||
***************
|
||||
*** 300,306 ****
|
||||
|
||||
if (!Extension(filename,".bdf")) strcat(filename,".bdf");
|
||||
|
||||
! if ((pF = fopen( filename, "r")) == NULL) return fatal("Can't open file");
|
||||
|
||||
getline(linebuf);
|
||||
if ((sscanf(linebuf, "STARTFONT %s", namebuf) != 1) ||
|
||||
--- 303,309 ----
|
||||
|
||||
if (!Extension(filename,".bdf")) strcat(filename,".bdf");
|
||||
|
||||
! if ((pF = fopen( filename, "r")) == NULL) return fatal("Can't open file %s", filename);
|
||||
|
||||
getline(linebuf);
|
||||
if ((sscanf(linebuf, "STARTFONT %s", namebuf) != 1) ||
|
83
x11/xfedor/patches/patch-af
Normal file
83
x11/xfedor/patches/patch-af
Normal file
@ -0,0 +1,83 @@
|
||||
*** /dev/null Tue May 19 01:26:19 1998
|
||||
--- xfedor.man Tue May 19 01:28:40 1998
|
||||
***************
|
||||
*** 0 ****
|
||||
--- 1,78 ----
|
||||
+
|
||||
+ XFEDOR(1) X Version 11 XFEDOR(1)
|
||||
+
|
||||
+ NAME
|
||||
+ xfedor - font, cursor, icon editor.
|
||||
+
|
||||
+ SYNTAX
|
||||
+ xfedor [-f fontfile[.bdf]] [-b bitmapfile[.xbm]]
|
||||
+ [-m mousefiles] [-p pixmapfile[.xpm]]
|
||||
+ [-z] [-xy] [-f1 fontname] [-f2 fontname]
|
||||
+ [-g +x+y] [-d host:display.screen]
|
||||
+
|
||||
+ DESCRIPTION
|
||||
+ xfedor is an X Window System Version 11 client.
|
||||
+ xfedor is essentially a font editor for X11 bdf files (V 2.1).
|
||||
+ xfedor can also generates limited (128x128) bitmaps in X11 format
|
||||
+ or in XPM format (color) and has facilities for creating cursors.
|
||||
+ xfedor is pure Xlib and doesn't support X resources.
|
||||
+
|
||||
+ ARGUMENTS
|
||||
+ -f fontfile
|
||||
+ a bdf file to be read at startup.
|
||||
+ (xfedor appends .bdf if there is no extention).
|
||||
+ -b bitmapfile
|
||||
+ bitmap file in X11 format : "include file C".
|
||||
+ (priority to .xbm extensions)
|
||||
+ -m mousefiles
|
||||
+ two bitmap X11 files, mousefileFore and mousefileMask,
|
||||
+ are looking for in $MAP directory. (as at run-time)
|
||||
+ -p pixmapfile
|
||||
+ pixmap file (color) in XPM format (ASCII editable)
|
||||
+ (priority for .xpm extensions)
|
||||
+ -rv
|
||||
+ reverse video : white on black (default black on white).
|
||||
+ -f1 fontname
|
||||
+ font to be use in general interface
|
||||
+ -f2 fontname
|
||||
+ font to be use in mouse guide lines
|
||||
+ +x+y
|
||||
+ initial geometry of the main window (default 10,10).
|
||||
+ -z, -xy
|
||||
+ Pixmap format used in image transferts (XPutImage,XGetImage).
|
||||
+
|
||||
+ SHELL VARIABLES
|
||||
+ BDF
|
||||
+ directory for read and write bdf files.
|
||||
+ default value is empty string (current).
|
||||
+ SOS
|
||||
+ directory where xfedor search help files (optional).
|
||||
+ default is /usr/local/lib/X11/xfedor.
|
||||
+ MAP
|
||||
+ directory to read and write bitmap/pixmap files from.
|
||||
+ default value is empty string (current).
|
||||
+ DISPLAY
|
||||
+ default server name.
|
||||
+ HOME
|
||||
+ User home directory. Used as ~ replacement when it
|
||||
+ appears as the first character of file name.
|
||||
+
|
||||
+ If the file name begins by a /, full path is taken.
|
||||
+
|
||||
+ FILES
|
||||
+ $SOS/*.sos help files:
|
||||
+ (*.sos, with * = {BEZIERS,FILL,METRIC,ROTATE,
|
||||
+ WRITE,CIRCLE,FONT,NUM,SAVE,CUTAP,GARB,SOS,
|
||||
+ RECTANGLE,EDIT,LINE,RESIZE,TRANSLATE,default)
|
||||
+ $MAP/Fore* bitmap files for cursor foreground
|
||||
+ $MAP/Mask* bitmap files for cursor background
|
||||
+ $BDF/*.bdf Bitmap Distribution Format Files.
|
||||
+ $MAP/*.xbm Bitmap X11 file (#define ..)
|
||||
+ $MAP/*.xpm XPM format file (color format in ASCII).
|
||||
+
|
||||
+ SEE ALSO
|
||||
+ bitmap(X), bdftosnf(X), xsetroot(X), pixmap.
|
||||
+
|
||||
+ AUTHORS
|
||||
+ A young Daniel DARDAILLER
|
||||
+
|
1
x11/xfedor/pkg/COMMENT
Normal file
1
x11/xfedor/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
a .bdf fonts/.xbm bitmaps/.xpm colored pixmaps/mouse cursor editor
|
30
x11/xfedor/pkg/DESCR
Normal file
30
x11/xfedor/pkg/DESCR
Normal file
@ -0,0 +1,30 @@
|
||||
It not work in > 256 colors modes, please fix it, if you can.
|
||||
Ache
|
||||
--------------------------- Original README -------------------------------
|
||||
Xfedor is a bdf/xbm/xpm/mouse editor.
|
||||
It has been achieved before Xt or Motif were available, so it is only
|
||||
based on Xlib :-|
|
||||
|
||||
Known problems:
|
||||
- very very old proprietary/personal:-) look&feelsick
|
||||
- C comments in french
|
||||
- filer.c module (BDF reader/writer) has to be reviewed for new BDF
|
||||
stuff and some bugs (COMMENT lines lost, unexpected changes in
|
||||
read/write only actions...)
|
||||
- non Xt based => icccm problems, fixed geometry, lack of resources...
|
||||
- not even X based originally, so don't expect something great.
|
||||
(visual problem I would say on weird X server).
|
||||
|
||||
Otherwise, it can still help to create mouse cursors, colored pixmaps and
|
||||
possibly fonts (if you don't care about XLFD compliance...).
|
||||
|
||||
Xfedor needs the Xpm library to link.
|
||||
|
||||
|
||||
|
||||
Daniel Dardailler.
|
||||
daniel@osf.org
|
||||
Last updated: May 26 1994
|
||||
|
||||
PS: I do *not* support this code anylonger. Nobody does.
|
||||
|
20
x11/xfedor/pkg/PLIST
Normal file
20
x11/xfedor/pkg/PLIST
Normal file
@ -0,0 +1,20 @@
|
||||
bin/xfedor
|
||||
lib/X11/xfedor/BEZIERS.sos
|
||||
lib/X11/xfedor/CIRCLE.sos
|
||||
lib/X11/xfedor/CUTAP.sos
|
||||
lib/X11/xfedor/EDIT.sos
|
||||
lib/X11/xfedor/FILL.sos
|
||||
lib/X11/xfedor/FONT.sos
|
||||
lib/X11/xfedor/GARB.sos
|
||||
lib/X11/xfedor/LINE.sos
|
||||
lib/X11/xfedor/METRIC.sos
|
||||
lib/X11/xfedor/NUM.sos
|
||||
lib/X11/xfedor/RECTANGLE.sos
|
||||
lib/X11/xfedor/RESIZE.sos
|
||||
lib/X11/xfedor/ROTATE.sos
|
||||
lib/X11/xfedor/SAVE.sos
|
||||
lib/X11/xfedor/SOS.sos
|
||||
lib/X11/xfedor/TRANSLATE.sos
|
||||
lib/X11/xfedor/WRITE.sos
|
||||
lib/X11/xfedor/default.sos
|
||||
man/cat1/xfedor.1
|
Loading…
Reference in New Issue
Block a user