From 4f7e5a288da332eae0412f5b033201842212bd1f Mon Sep 17 00:00:00 2001 From: Automaton Date: Sat, 15 Dec 2012 03:26:36 +0100 Subject: [PATCH] Import astro/stars version 1.0_1 --- astro/stars/Makefile | 30 ++++++++++++++++++++ astro/stars/distinfo | 2 ++ astro/stars/files/patch-aa | 57 ++++++++++++++++++++++++++++++++++++++ astro/stars/pkg-descr | 7 +++++ 4 files changed, 96 insertions(+) create mode 100644 astro/stars/Makefile create mode 100644 astro/stars/distinfo create mode 100644 astro/stars/files/patch-aa create mode 100644 astro/stars/pkg-descr diff --git a/astro/stars/Makefile b/astro/stars/Makefile new file mode 100644 index 00000000000..84ebe5ee479 --- /dev/null +++ b/astro/stars/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: stars-1.0 +# Date created: 10 Jul 1996 +# Whom: searle +# +# $FreeBSD: ports/astro/stars/Makefile,v 1.27 2012/11/17 05:54:26 svnexp Exp $ +# + +PORTNAME= stars +PORTVERSION= 1.0 +PORTREVISION= 1 +CATEGORIES= astro +MASTER_SITES= http://hpux.connect.org.uk/ftp/hpux/X11/Demos/${PORTNAME}-${PORTVERSION}/ +DISTNAME= ${PORTNAME}-${PORTVERSION}-src-11.00 + +MAINTAINER= ports@FreeBSD.org +COMMENT= Star field demo + +PLIST_FILES= bin/stars +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +USE_XORG= x11 + +do-build: + @${CC} -I${PREFIX}/include ${CFLAGS} -c ${WRKSRC}/xwin.c -o ${WRKSRC}/xwin.o + @${CC} -I${PREFIX}/include ${CFLAGS} -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/distinfo b/astro/stars/distinfo new file mode 100644 index 00000000000..f729f366687 --- /dev/null +++ b/astro/stars/distinfo @@ -0,0 +1,2 @@ +SHA256 (stars-1.0-src-11.00.tar.gz) = 519d65d1f81db6159c32e9b6f1acee7a7ace8ab3f13cae4e9da35324f916347e +SIZE (stars-1.0-src-11.00.tar.gz) = 5410 diff --git a/astro/stars/files/patch-aa b/astro/stars/files/patch-aa new file mode 100644 index 00000000000..96b2fb126ef --- /dev/null +++ b/astro/stars/files/patch-aa @@ -0,0 +1,57 @@ +--- main.c.orig 1996-04-10 12:58:49.000000000 +0200 ++++ main.c 2011-12-20 20:04:16.146176426 +0100 +@@ -48,7 +48,7 @@ + void events(); + void shutdn(); + +-void main() ++int main() + { + setup(); + events(); +@@ -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