diff options
author | chuckr <chuckr@FreeBSD.org> | 1996-08-04 06:42:46 +0800 |
---|---|---|
committer | chuckr <chuckr@FreeBSD.org> | 1996-08-04 06:42:46 +0800 |
commit | fd7f0628fa32639d71f4337cd2869a2c60fbe757 (patch) | |
tree | ce5793a46225e55e55277ab8be7d6828b65cd8e0 /astro | |
parent | 8cfdcd84e4b41ee756fe511580581197821c3b15 (diff) | |
download | freebsd-ports-graphics-fd7f0628fa32639d71f4337cd2869a2c60fbe757.tar.gz freebsd-ports-graphics-fd7f0628fa32639d71f4337cd2869a2c60fbe757.tar.zst freebsd-ports-graphics-fd7f0628fa32639d71f4337cd2869a2c60fbe757.zip |
New port for x11, stars. Could make you dizzy!
Submitted by: Michael Searle
Diffstat (limited to 'astro')
-rw-r--r-- | astro/stars/Makefile | 28 | ||||
-rw-r--r-- | astro/stars/distinfo | 1 | ||||
-rw-r--r-- | astro/stars/files/patch-aa | 48 | ||||
-rw-r--r-- | astro/stars/pkg-comment | 1 | ||||
-rw-r--r-- | astro/stars/pkg-descr | 10 | ||||
-rw-r--r-- | astro/stars/pkg-plist | 2 |
6 files changed, 90 insertions, 0 deletions
diff --git a/astro/stars/Makefile b/astro/stars/Makefile new file mode 100644 index 00000000000..f56f9fe1863 --- /dev/null +++ b/astro/stars/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: stars-1.0 +# Version required: 1.0 +# Date created: 10 Jul 1996 +# Whom: searle +# +# $Id$ +# + +DISTNAME= stars-1.0-ss-9.03 +PKGNAME= stars-1.0 +CATEGORIES+= x11 +MASTER_SITES= ftp://hpux.csc.liv.ac.uk/hpux/X11/Demos/stars-1.0/ \ + ftp://askdonald.ask.uni-karlsruhe.de/hpux/X11/Demos/stars-1.0/ + +MAINTAINER= searle@longacre.demon.co.uk + +USE_X11= yes +WRKSRC= $(WRKDIR)/$(PKGNAME) + +do-build: + cc -I$(PREFIX)/include -O2 -c $(WRKSRC)/xwin.c -o $(WRKSRC)/xwin.o + cc -I$(PREFIX)/include -O2 -c $(WRKSRC)/main.c -o $(WRKSRC)/main.o + cc $(WRKSRC)/main.o $(WRKSRC)/xwin.o -L$(PREFIX)/lib -lX11 -lm -o $(WRKSRC)/stars + +do-install: + install -c $(WRKSRC)/stars $(PREFIX)/bin/stars + +.include <bsd.port.mk> diff --git a/astro/stars/distinfo b/astro/stars/distinfo new file mode 100644 index 00000000000..de27462cee8 --- /dev/null +++ b/astro/stars/distinfo @@ -0,0 +1 @@ +MD5 (stars-1.0-ss-9.03.tar.gz) = a7ff052723773c7031a5d59c76137cd9 diff --git a/astro/stars/files/patch-aa b/astro/stars/files/patch-aa new file mode 100644 index 00000000000..a6027ebdcac --- /dev/null +++ b/astro/stars/files/patch-aa @@ -0,0 +1,48 @@ +--- main.c.orig Wed Apr 10 06:58:49 1996 ++++ main.c Sat Aug 3 17:51:59 1996 +@@ -241,37 +241,37 @@ + + XQueryKeymap(xgh.display, keys); + +- if(keys[7] & 64) ++ if(keys[3] & 1) + Quit=1; + +- if(keys[12] & 16 && Speed < 20) ++ if(((keys[2] & 32) || (keys[10] & 64) ) && (Speed < 20)) + Speed++; + +- if(keys[12] & 8 && Speed > -20) ++ if( ((keys[2] & 16) || (keys[10] & 4) ) && (Speed > -20)) + Speed--; + + for(l=0; l<NumStars; l++) + c[l]=b[l]; + + XSetForeground(xgh.display,gc1,HiCol); +- if(keys[16] & 16) { ++ if(keys[12] & 64) { + r2+=0.02; + XFillPolygon(xgh.display,pix,gc1,a[0],3,Convex,CoordModeOrigin); + } +- if(keys[16] & 128) { ++ if(keys[12] & 16) { + r2-=0.02; + XFillPolygon(xgh.display,pix,gc1,a[2],3,Convex,CoordModeOrigin); + } +- if(keys[16] & 64) { ++ if(keys[13] & 1) { + r1+=0.02; + XFillPolygon(xgh.display,pix,gc1,a[1],3,Convex,CoordModeOrigin); + } +- if(keys[16] & 32) { ++ if(keys[12] & 4) { + r1-=0.02; + XFillPolygon(xgh.display,pix,gc1,a[3],3,Convex,CoordModeOrigin); + } + +- if(keys[16] & 2) ++ if(keys[8] & 2) + { + Speed=0; + r1=r2=0; diff --git a/astro/stars/pkg-comment b/astro/stars/pkg-comment new file mode 100644 index 00000000000..33f0c63a6b1 --- /dev/null +++ b/astro/stars/pkg-comment @@ -0,0 +1 @@ +Star field demo. diff --git a/astro/stars/pkg-descr b/astro/stars/pkg-descr new file mode 100644 index 00000000000..beca8ad9a35 --- /dev/null +++ b/astro/stars/pkg-descr @@ -0,0 +1,10 @@ +Keys: + * Cursor keys move the view around. + * +/- Speed the stars up and down. + * Space resets the speed and the view. + * Q quits. + +Have fun and don't get too dizzy! + +Michael Searle +searle@longacre.demon.co.uk diff --git a/astro/stars/pkg-plist b/astro/stars/pkg-plist new file mode 100644 index 00000000000..45c3638f8c7 --- /dev/null +++ b/astro/stars/pkg-plist @@ -0,0 +1,2 @@ +@cwd /usr/X11R6 +bin/stars |