diff options
author | snj <snj@pkgsrc.org> | 2004-03-12 00:01:17 +0000 |
---|---|---|
committer | snj <snj@pkgsrc.org> | 2004-03-12 00:01:17 +0000 |
commit | 5b02d0005438cea659a8bea87ac609676908db2c (patch) | |
tree | cfd224b501e553adbe7f106420e7fce17a250678 /games | |
parent | 4b8bae1c918d5379fb0274f12e57197e2dcf9e68 (diff) | |
download | pkgsrc-5b02d0005438cea659a8bea87ac609676908db2c.tar.gz |
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 (limited to 'games')
-rw-r--r-- | games/xjump/DESCR | 4 | ||||
-rw-r--r-- | games/xjump/Makefile | 22 | ||||
-rw-r--r-- | games/xjump/PLIST | 2 | ||||
-rw-r--r-- | games/xjump/distinfo | 7 | ||||
-rw-r--r-- | games/xjump/patches/patch-aa | 69 | ||||
-rw-r--r-- | games/xjump/patches/patch-ab | 44 | ||||
-rw-r--r-- | games/xjump/patches/patch-ac | 20 |
7 files changed, 168 insertions, 0 deletions
diff --git a/games/xjump/DESCR b/games/xjump/DESCR new file mode 100644 index 00000000000..7876f0358c1 --- /dev/null +++ b/games/xjump/DESCR @@ -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 --git a/games/xjump/Makefile b/games/xjump/Makefile new file mode 100644 index 00000000000..27728e6b4f0 --- /dev/null +++ b/games/xjump/Makefile @@ -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 +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 --git a/games/xjump/PLIST b/games/xjump/PLIST new file mode 100644 index 00000000000..1ccace498e3 --- /dev/null +++ b/games/xjump/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/03/12 00:01:18 snj Exp $ +bin/xjump diff --git a/games/xjump/distinfo b/games/xjump/distinfo new file mode 100644 index 00000000000..9a38f98f921 --- /dev/null +++ b/games/xjump/distinfo @@ -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 --git a/games/xjump/patches/patch-aa b/games/xjump/patches/patch-aa new file mode 100644 index 00000000000..40fe40c6599 --- /dev/null +++ b/games/xjump/patches/patch-aa @@ -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 --git a/games/xjump/patches/patch-ab b/games/xjump/patches/patch-ab new file mode 100644 index 00000000000..c071a6bf665 --- /dev/null +++ b/games/xjump/patches/patch-ab @@ -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 --git a/games/xjump/patches/patch-ac b/games/xjump/patches/patch-ac new file mode 100644 index 00000000000..9fcf5f18e63 --- /dev/null +++ b/games/xjump/patches/patch-ac @@ -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}; |