From 9eb353d3ade44bd8560de851be69e3dae0cc95ae Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 24 Dec 1997 15:43:30 +0000 Subject: [PATCH] stars --- astro/stars/Makefile | 28 +++++++++++++++++++++ astro/stars/files/md5 | 1 + astro/stars/patches/patch-aa | 48 ++++++++++++++++++++++++++++++++++++ astro/stars/pkg/COMMENT | 1 + astro/stars/pkg/DESCR | 10 ++++++++ astro/stars/pkg/PLIST | 1 + 6 files changed, 89 insertions(+) create mode 100644 astro/stars/Makefile create mode 100644 astro/stars/files/md5 create mode 100644 astro/stars/patches/patch-aa create mode 100644 astro/stars/pkg/COMMENT create mode 100644 astro/stars/pkg/DESCR create mode 100644 astro/stars/pkg/PLIST diff --git a/astro/stars/Makefile b/astro/stars/Makefile new file mode 100644 index 00000000000..5c39ef7d4e8 --- /dev/null +++ b/astro/stars/Makefile @@ -0,0 +1,28 @@ +# OpenBSD makefile for: stars-1.0 +# Version required: 1.0 +# Date created: 24 Dec 1997 +# Whom: ejovi +# +# $OpenBSD: Makefile,v 1.1.1.1 1997/12/24 15:43:30 joey Exp $ +# + +DISTNAME= stars-1.0-ss-9.03 +PKGNAME= stars-1.0 +CATEGORIES= astro 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= joey@OpenBSD.ORG + +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_PROGRAM) $(WRKSRC)/stars $(PREFIX)/bin/stars + +.include diff --git a/astro/stars/files/md5 b/astro/stars/files/md5 new file mode 100644 index 00000000000..de27462cee8 --- /dev/null +++ b/astro/stars/files/md5 @@ -0,0 +1 @@ +MD5 (stars-1.0-ss-9.03.tar.gz) = a7ff052723773c7031a5d59c76137cd9 diff --git a/astro/stars/patches/patch-aa b/astro/stars/patches/patch-aa new file mode 100644 index 00000000000..a6027ebdcac --- /dev/null +++ b/astro/stars/patches/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