An xview extension package.

PR:		3482
Submitted by:	Pedro F. Giffuni <pgiffuni@FPS.biblos.unal.edu.co>
This commit is contained in:
Satoshi Asami 1997-06-03 22:53:07 +00:00
parent 0a0ec00cc5
commit b450d70a1e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=6712
10 changed files with 415 additions and 0 deletions

View File

@ -0,0 +1,34 @@
# New ports collection makefile for: SlingShot
# Version required: 2.1
# Date created: 5 March 1997
# Whom: pgiffuni@FPS.biblos.unal.edu.co
#
# $Id$
#
DISTNAME= SlingShot2.1
PKGNAME= slingshot-2.1
CATEGORIES= x11
MASTER_SITES= ftp://ftp.cdrom.com/pub/X11/R5contrib/
EXTRACT_SUFX= .tar.Z
MAINTAINER= pgiffuni@FPS.biblos.unal.edu.co
LIB_DEPENDS= xview\\.3\\.:${PORTSDIR}/x11/xview-lib
WRKSRC= $(WRKDIR)/sspkg2.1
USE_X11= yes
USE_GMAKE= yes
MAKE_ENV= OPENWINHOME=$(X11BASE)
pre-patch:
${CP} $(WRKSRC)/config.sunos4x $(WRKSRC)/config.fbsd
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/SlingShot
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/SlingShot
${INSTALL_DATA} ${WRKSRC}/doc/*.ps ${PREFIX}/share/doc/SlingShot
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (SlingShot2.1.tar.Z) = 4ac24274f94867268423bc35af658be2

View File

@ -0,0 +1,91 @@
*** Makefile.orig Thu Apr 24 20:12:18 1997
--- Makefile Thu Apr 24 20:30:17 1997
***************
*** 2,8 ****
# @(#) Makefile 1.21 93/10/25
SSPKGHOME = .
! INSTALL_DIR = /home2/install
TARFILE = /home2/tmp/sspkgs-tar
SRCDIR = $(SSPKGHOME)/src
--- 2,8 ----
# @(#) Makefile 1.21 93/10/25
SSPKGHOME = .
! INSTALL_DIR = $(PREFIX)
TARFILE = /home2/tmp/sspkgs-tar
SRCDIR = $(SSPKGHOME)/src
***************
*** 16,29 ****
subdirs: $(INCLUDEDIR) $(SRCDIR) examples
$(INCLUDEDIR): FORCE
! cd $@; make
$(SRCDIR): FORCE Make.config
! cd $@; make
examples: FORCE
! cd $@; make
#
# Make.config has things that are needed to build on various platforms.
--- 16,29 ----
subdirs: $(INCLUDEDIR) $(SRCDIR) examples
$(INCLUDEDIR): FORCE
! cd $@; $(MAKE)
$(SRCDIR): FORCE Make.config
! cd $@; $(MAKE)
examples: FORCE
! cd $@; $(MAKE)
#
# Make.config has things that are needed to build on various platforms.
***************
*** 35,40 ****
--- 35,43 ----
@ if [ -s /vmunix ]; then \
echo cp config.sunos4x Make.config ; \
cp config.sunos4x Make.config ; \
+ elif [ -s /kernel ]; then \
+ echo cp config.fbsd Make.config ; \
+ cp config.fbsd Make.config ; \
else \
echo cp config.svr4 Make.config ; \
cp config.svr4 Make.config ; \
***************
*** 45,57 ****
clean:
-sccs clean
! (cd $(INCLUDEDIR); make clean)
! (cd $(SRCDIR); make clean)
! (cd examples; make clean)
rm -f Make.config
! install: $(INSTALL_DIR) FORCE
! (cd $(INCLUDEDIR); make install INSTALL_DIR=$(INSTALL_DIR))
(cp $(LIBDIR)/* $(INSTALL_DIR)/lib)
-ranlib $(INSTALL_DIR)/lib/libsspkg.a
-ranlib $(INSTALL_DIR)/lib/libsspkg.sa.*
--- 48,60 ----
clean:
-sccs clean
! (cd $(INCLUDEDIR); $(MAKE) clean)
! (cd $(SRCDIR); $(MAKE) clean)
! (cd examples; $(MAKE) clean)
rm -f Make.config
! install: all $(INSTALL_DIR) FORCE
! (cd $(INCLUDEDIR); $(MAKE) install INSTALL_DIR=$(INSTALL_DIR))
(cp $(LIBDIR)/* $(INSTALL_DIR)/lib)
-ranlib $(INSTALL_DIR)/lib/libsspkg.a
-ranlib $(INSTALL_DIR)/lib/libsspkg.sa.*

View File

@ -0,0 +1,21 @@
*** config.sunos4x Fri Oct 22 12:35:02 1993
--- config.fbsd Thu Apr 24 20:32:41 1997
***************
*** 1,8 ****
# @(#) config.sunos4x 1.6 92/10/27
! CONFIGPIC = -pic
! CONFIGSHAREDLIBLD = ld -o $@ -assert pure-text $?
SHAREDLIB = $(LIBDIR)/libsspkg.so.1.0
SHAREDLIBDATA = $(LIBDIR)/libsspkg.sa.1.0
--- 1,8 ----
# @(#) config.sunos4x 1.6 92/10/27
! CONFIGPIC = -fpic
! CONFIGSHAREDLIBLD = ld -o $@ -Bshareable $?
SHAREDLIB = $(LIBDIR)/libsspkg.so.1.0
SHAREDLIBDATA = $(LIBDIR)/libsspkg.sa.1.0

View File

@ -0,0 +1,21 @@
*** src/Makefile.orig Mon Oct 25 13:37:43 1993
--- src/Makefile Wed Apr 30 00:40:56 1997
***************
*** 15,22 ****
INCDIR = $(SSPKGHOME)/include/sspkg
PRIVATEINCDIR = $(SSPKGHOME)/src
! #CFLAGS = -O
! CFLAGS = -g
CPPFLAGS = -I$(SSPKGHOME)/include -I$(PRIVATEINCDIR) -I$(OPENWINHOME)/include
--- 15,22 ----
INCDIR = $(SSPKGHOME)/include/sspkg
PRIVATEINCDIR = $(SSPKGHOME)/src
! CFLAGS = -O -DNO_SINCOS
! #CFLAGS = -g
CPPFLAGS = -I$(SSPKGHOME)/include -I$(PRIVATEINCDIR) -I$(OPENWINHOME)/include

View File

@ -0,0 +1,15 @@
*** src/tacho.c.orig Thu Apr 24 20:48:57 1997
--- src/tacho.c Thu Apr 24 20:56:55 1997
***************
*** 19,24 ****
--- 19,28 ----
#include "drawobj_impl.h"
#include <math.h>
+ #ifdef __FreeBSD__
+ #define irint(x) ((int)rint((x)))
+ #endif
+
Pkg_private int tacho_init();
Pkg_private Xv_opaque tacho_set_avlist();
Pkg_private Xv_opaque tacho_get_attr();

View File

@ -0,0 +1,192 @@
*** examples/Makefile.orig Tue Nov 2 14:18:49 1993
--- examples/Makefile Wed Apr 30 00:42:39 1997
***************
*** 1,5 ****
! # @(#) Makefile 1.21 93/11/02
SSPKGHOME = ..
--- 1,5 ----
! # @(#) $(MAKE)file 1.21 93/11/02
SSPKGHOME = ..
***************
*** 8,94 ****
SSPKGLIB = $(SSPKGHOME)/lib/libsspkg.a
! DBXFLAGS = -g
! CFLAGS = $(DBXFLAGS) -I$(SSPKGHOME)/include -I$(OPENWINHOME)/include
LDFLAGS = -L$(LIBDIR) $(LIBS) $(SSPKGLIB) -lm
all: icons array_tile clockobj color color2 \
! dnd dnd2 drawarea drawimage drawline drawtext grip \
group icons misc selection tacho thermo tree
array_tile: FORCE
! cd $@; make
clockobj: FORCE
! cd $@; make
dnd: FORCE
! cd $@; make
dnd2: FORCE
! cd $@; make
drawarea: FORCE
! cd $@; make
drawline: FORCE
! cd $@; make
group: FORCE
! cd $@; make
grip: FORCE
! cd $@; make
icons: FORCE
! cd $@; make
misc: FORCE
! cd $@; make
selection: FORCE
! cd $@; make
tree: FORCE
! cd $@; make
drawtext: FORCE
! cd $@; make
drawimage: FORCE
! cd $@; make
tacho: FORCE
! cd $@; make
color: FORCE
! cd $@; make
color2: FORCE
! cd $@; make
thermo: FORCE
! cd $@; make
clean:
! -(cd array_tile; make clean; rm -f .make.state)
! -(cd color; make clean; rm -f .make.state)
! -(cd color2; make clean; rm -f .make.state)
! -(cd clockobj; make clean; rm -f .make.state)
! -(cd dnd; make clean; rm -f .make.state)
! -(cd dnd2; make clean; rm -f .make.state)
! -(cd drawarea; make clean; rm -f .make.state)
! -(cd drawimage; make clean; rm -f .make.state)
! -(cd drawline; make clean; rm -f .make.state)
! -(cd drawtext; make clean; rm -f .make.state)
! -(cd grip; make clean; rm -f .make.state)
! -(cd group; make clean; rm -f .make.state)
! -(cd icons; make clean; rm -f .make.state)
! -(cd misc; make clean; rm -f .make.state)
! -(cd selection; make clean; rm -f .make.state)
! -(cd tree; make clean; rm -f .make.state)
! -(cd tacho; make clean; rm -f .make.state)
! -(cd thermo; make clean; rm -f .make.state)
FORCE:
--- 8,94 ----
SSPKGLIB = $(SSPKGHOME)/lib/libsspkg.a
! DBXFLAGS = -O
! CFLAGS = $(DBXFLAGS) -I$(SSPKGHOME)/../include -I$(OPENWINHOME)/include
LDFLAGS = -L$(LIBDIR) $(LIBS) $(SSPKGLIB) -lm
all: icons array_tile clockobj color color2 \
! dnd drawarea drawimage drawline drawtext grip \
group icons misc selection tacho thermo tree
array_tile: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
clockobj: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
dnd: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
dnd2: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
drawarea: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
drawline: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
group: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
grip: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
icons: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
misc: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
selection: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
tree: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
drawtext: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
drawimage: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
tacho: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
color: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
color2: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
thermo: FORCE
! cd $@; $(MAKE) all 'CFLAGS=$(CFLAGS)' 'CC=$(CC)' 'MAKE=$(MAKE)'
clean:
! -(cd array_tile; $(MAKE) clean; rm -f .make.state)
! -(cd color; $(MAKE) clean; rm -f .make.state)
! -(cd color2; $(MAKE) clean; rm -f .make.state)
! -(cd clockobj; $(MAKE) clean; rm -f .make.state)
! -(cd dnd; $(MAKE) clean; rm -f .make.state)
! -(cd dnd2; $(MAKE) clean; rm -f .make.state)
! -(cd drawarea; $(MAKE) clean; rm -f .make.state)
! -(cd drawimage; $(MAKE) clean; rm -f .make.state)
! -(cd drawline; $(MAKE) clean; rm -f .make.state)
! -(cd drawtext; $(MAKE) clean; rm -f .make.state)
! -(cd grip; $(MAKE) clean; rm -f .make.state)
! -(cd group; $(MAKE) clean; rm -f .make.state)
! -(cd icons; $(MAKE) clean; rm -f .make.state)
! -(cd misc; $(MAKE) clean; rm -f .make.state)
! -(cd selection; $(MAKE) clean; rm -f .make.state)
! -(cd tree; $(MAKE) clean; rm -f .make.state)
! -(cd tacho; $(MAKE) clean; rm -f .make.state)
! -(cd thermo; $(MAKE) clean; rm -f .make.state)
FORCE:

View File

@ -0,0 +1 @@
Supplemental Libraries to extend Xview

View File

@ -0,0 +1,15 @@
Slingshot provides rectangles (like the Xt Intrinsics' RectObj gadget),
drag-and-drop support, images, icons and text, trees, lines, arrows...
You can look at the documentation for the details, but here's a few
teasers: there are new objects (clock, bag, box). The grip and the
drawarea have had a few interesting features added. The documentation
has been improved dramatically. The drawtext can now be editible.
CAVEATS
-------
This is NOT an official or supported product of Sun Microsystems, Inc.
This software has been developed to leverage other efforts, and it is
being released because it is hoped others can get benefits from it too.
However, there ARE bugs in this software which may never be fixed, and
there is no guarantee of compatability between releases.

View File

@ -0,0 +1,24 @@
include/sspkg/box.h
include/sspkg/tree.h
include/sspkg/rectobj.h
include/sspkg/list.h
include/sspkg/disp_list.h
include/sspkg/grip.h
include/sspkg/drawobj.h
include/sspkg/canshell.h
include/sspkg/array.h
include/sspkg/patchlevel.h
lib/libsspkg.so.1.0
lib/libsspkg.so
lib/libsspkg.sa.1.0
lib/libsspkg.a
share/doc/SlingShot/README
share/doc/SlingShot/appA.ps
share/doc/SlingShot/appB.ps
share/doc/SlingShot/appC.ps
share/doc/SlingShot/appD.ps
share/doc/SlingShot/appE.ps
share/doc/SlingShot/ch1.ps
share/doc/SlingShot/ch2.ps
share/doc/SlingShot/ch3.ps