pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/xjump Initial import of xjump-2.7.5, the bestest...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0c02db5a37b5
branches:  trunk
changeset: 470787:0c02db5a37b5
user:      snj <snj%pkgsrc.org@localhost>
date:      Fri Mar 12 00:01:17 2004 +0000

description:
Initial import of xjump-2.7.5, the bestest of all silly little games.
Jump jump jump.

Packaged by "pancake," modified by Peter Bex and me.

diffstat:

 games/xjump/DESCR            |   4 ++
 games/xjump/Makefile         |  22 ++++++++++++++
 games/xjump/PLIST            |   2 +
 games/xjump/distinfo         |   7 ++++
 games/xjump/patches/patch-aa |  69 ++++++++++++++++++++++++++++++++++++++++++++
 games/xjump/patches/patch-ab |  44 ++++++++++++++++++++++++++++
 games/xjump/patches/patch-ac |  20 ++++++++++++
 7 files changed, 168 insertions(+), 0 deletions(-)

diffs (196 lines):

diff -r 460312e7e6b4 -r 0c02db5a37b5 games/xjump/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xjump/DESCR Fri Mar 12 00:01:17 2004 +0000
@@ -0,0 +1,4 @@
+The epitome of addictive and pointless games, xjump is simply a game
+where one jumps from one platform to a higher platform, over and over.
+If you can't keep up with the pace, the floor swallows you up and the
+game is over.
diff -r 460312e7e6b4 -r 0c02db5a37b5 games/xjump/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xjump/Makefile      Fri Mar 12 00:01:17 2004 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/03/12 00:01:17 snj Exp $
+
+DISTNAME=              xjump_2.7.5.orig
+PKGNAME=               xjump-2.7.5
+CATEGORIES=            wip games
+MASTER_SITES=          ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/\
+                       http://www.gtlib.cc.gatech.edu/pub/debian/pool/main/x/xjump/
+
+MAINTAINER=            pancake%phreaker.net@localhost
+HOMEPAGE=              http://www.gtlib.cc.gatech.edu/pub/debian/pool/main/x/xjump/
+COMMENT=               Jumping game for X
+
+WRKSRC=                        ${WRKDIR}/xjump-2.7.5.orig
+USE_BUILDLINK3=                yes
+ALL_TARGET=            xjump
+
+USE_X11=               YES
+
+do-install:
+       ${INSTALL} -g games -m 2755 ${WRKSRC}/xjump ${PREFIX}/bin/xjump
+
+.include "../../mk/bsd.pkg.mk"
diff -r 460312e7e6b4 -r 0c02db5a37b5 games/xjump/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xjump/PLIST Fri Mar 12 00:01:17 2004 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/03/12 00:01:18 snj Exp $
+bin/xjump
diff -r 460312e7e6b4 -r 0c02db5a37b5 games/xjump/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xjump/distinfo      Fri Mar 12 00:01:17 2004 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/03/12 00:01:18 snj Exp $
+
+SHA1 (xjump_2.7.5.orig.tar.gz) = 7cf7f1269ef2cd0640575f924f6e7a39668939f2
+Size (xjump_2.7.5.orig.tar.gz) = 15940 bytes
+SHA1 (patch-aa) = c69b7c280b025fa45b3c0d12bb6bf3684891058c
+SHA1 (patch-ab) = e50d487dac355fb904287bc05f6621025332a4f5
+SHA1 (patch-ac) = 3a8c3575119330d313709c4f99108c2157c22d01
diff -r 460312e7e6b4 -r 0c02db5a37b5 games/xjump/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xjump/patches/patch-aa      Fri Mar 12 00:01:17 2004 +0000
@@ -0,0 +1,69 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/03/12 00:01:18 snj Exp $
+
+--- Makefile.orig      2002-01-24 03:44:14.000000000 -0800
++++ Makefile   2004-03-11 15:41:57.000000000 -0800
+@@ -1,13 +1,12 @@
+ ########################################################
+ 
+ # »ÈÍѤ¹¤ë¥³¥ó¥Ñ¥¤¥é¤È¥ª¥×¥·¥ç¥ó¤ò»ØÄê
+-CC      = gcc -O2 
+ 
+ # ɸ½à°Ê³°¤Î¥¤¥ó¥¯¥ë¡¼¥É¥Õ¥¡¥¤¥ë¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò»ØÄê
+-IDIR    = -I/usr/X11R6/include
++IDIR    = $(CPPFLAGS)
+ 
+ # ɸ½à°Ê³°¤Î¥é¥¤¥Ö¥é¥ê¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò»ØÄê
+-LDIR    = -L/usr/X11R6/lib
++LDIR    = $(LDFLAGS)
+ 
+ #########################################################
+ 
+@@ -15,10 +14,10 @@ LDIR    = -L/usr/X11R6/lib
+ TARGET = /usr/games/
+ 
+ # ¥ì¥³¡¼¥É¥Õ¥¡¥¤¥ë¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò»ØÄê
+-RECORD_DIR  = /var/games/xjump
++RECORD_DIR  = /var/games
+ 
+ #¥ì¥³¡¼¥É¥Õ¥¡¥¤¥ë¤Î¥Õ¥¡¥¤¥ë̾¤ò»ØÄê(Ãí¡§¤³¤ì¤Ï¥Ð¥¤¥Ê¥ê¤ËËä¤á¹þ¤Þ¤ì¤Þ¤¹)
+-RECORD_FILE  = $(RECORD_DIR)/record
++RECORD_FILE  = $(RECORD_DIR)/xjump
+ 
+ #########################################################
+ 
+@@ -28,28 +27,28 @@ RECORD_ENTRY  = 20
+ ##########################################################
+ 
+ xjump : main.o game.o key.o misc.o record.o resource.o
+-      $(CC) -o xjump \
++      $(CC) $(CFLAGS) -o xjump \
+               main.o game.o key.o misc.o record.o resource.o\
+               -lXaw -lXmu -lXt -lXpm -lXext -lX11 $(LDIR)
+ 
+ main.o : main.c xjump.h record.h \
+               picture.xpm icon.xbm icon_msk.xbm Makefile
+-      $(CC) -c -DRECORD_ENTRY=$(RECORD_ENTRY) main.c $(IDIR)
++      $(CC) $(CFLAGS) -c -DRECORD_ENTRY=$(RECORD_ENTRY) main.c $(IDIR)
+ 
+ resource.o : resource.c
+-      $(CC) -c resource.c
++      $(CC) $(CFLAGS) -c resource.c
+ 
+ game.o : game.c xjump.h
+-      $(CC) -c game.c $(IDIR)
++      $(CC) $(CFLAGS) -c game.c $(IDIR)
+ 
+ key.o : key.c xjump.h
+-      $(CC) -c key.c $(IDIR)
++      $(CC) $(CFLAGS) -c key.c $(IDIR)
+ 
+ misc.o : misc.c
+-      $(CC) -c misc.c
++      $(CC) $(CFLAGS) -c misc.c
+ 
+ record.o : record.c record.h Makefile
+-      $(CC) -c \
++      $(CC) $(CFLAGS) -c \
+               -DRECORD_ENTRY=$(RECORD_ENTRY) \
+               -DRECORD_FILE=\"$(RECORD_FILE)\" \
+               record.c
diff -r 460312e7e6b4 -r 0c02db5a37b5 games/xjump/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xjump/patches/patch-ab      Fri Mar 12 00:01:17 2004 +0000
@@ -0,0 +1,44 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/03/12 00:01:18 snj Exp $
+
+--- record.c.orig      1997-11-08 08:41:40.000000000 +0100
++++ record.c   2004-03-08 18:48:54.000000000 +0100
+@@ -182,13 +182,17 @@
+ void init_record( void )
+ {
+   FILE *fp;
++  mode_t mask;
+ 
+   Record_entry = -1;
+ 
+-  if( ( fp = fopen( RECORD_FILE,"r+" ) ) == NULL ){
++  mask = umask(S_IWOTH);
++  if( ( fp = fopen( RECORD_FILE,"a+" ) ) == NULL ){
+     error();
+     return;
+   }
++  umask(mask);
++  rewind(fp);
+   flock( fileno(fp),LOCK_EX );
+   read_record( fp );
+   fclose( fp );
+@@ -233,15 +237,18 @@
+   FILE *fp;
+   int i,r;
+   int uid;
++  mode_t mask;
+ 
+   if( Record_entry == -1 )
+     return ;
+ 
+-  if( (fp = fopen(RECORD_FILE,"r+")) == NULL ){
++  mask = umask(S_IWOTH);
++  if( (fp = fopen(RECORD_FILE,"a+")) == NULL ){
+     error();
+     return;
+   }
+-
++  umask(mask);
++  rewind(fp);
+   flock( fileno(fp),LOCK_EX );
+   read_record( fp );
+ 
diff -r 460312e7e6b4 -r 0c02db5a37b5 games/xjump/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xjump/patches/patch-ac      Fri Mar 12 00:01:17 2004 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-ac,v 1.1.1.1 2004/03/12 00:01:18 snj Exp $
+
+--- resource.c.orig    2004-03-08 17:53:19.000000000 +0100
++++ resource.c 2004-03-08 17:53:56.000000000 +0100
+@@ -91,6 +91,8 @@
+ <KeyUp>space : key_off(UP)           \\n\
+ <Key>z       : key_on(UP)            \\n\
+ <KeyUp>z     : key_off(UP)start()    \\n\
++<Key>k       : key_on(UP)            \\n\
++<KeyUp>k     : key_off(UP)start()    \\n\
+ <Key>KP_8    : key_on(UP)            \\n\
+ <KeyUp>KP_8  : key_off(UP)start()    \\n\
+ <Btn1Down>   : key_on(UP)            \\n\
+@@ -98,5 +100,6 @@
+ \
+ <Key>p       : pause()               \\n\
+ Shift<Key>q  : quit()                \\n\
++<Key>q  : quit()                           \\n\
+ ",
+ NULL};



Home | Main Index | Thread Index | Old Index