diff options
author | jmacd <jmacd@FreeBSD.org> | 1995-02-02 17:08:52 +0800 |
---|---|---|
committer | jmacd <jmacd@FreeBSD.org> | 1995-02-02 17:08:52 +0800 |
commit | cb349037ef58b9ceccd989ef19dc76b671b1f475 (patch) | |
tree | 5dc60ed5b9c9bfd7a5ba580e3717ddc0804d60d1 /games/xboing | |
parent | aa6fe69ce05aa89983ec6d533992c605f57375ec (diff) | |
download | freebsd-ports-gnome-cb349037ef58b9ceccd989ef19dc76b671b1f475.tar.gz freebsd-ports-gnome-cb349037ef58b9ceccd989ef19dc76b671b1f475.tar.zst freebsd-ports-gnome-cb349037ef58b9ceccd989ef19dc76b671b1f475.zip |
New port.
Reviewed by:
Submitted by: JKOKOT@demeter.ipan.lublin.pl
Obtained from:
Diffstat (limited to 'games/xboing')
-rw-r--r-- | games/xboing/Makefile | 13 | ||||
-rw-r--r-- | games/xboing/files/patch-aa | 126 | ||||
-rw-r--r-- | games/xboing/pkg-comment | 1 | ||||
-rw-r--r-- | games/xboing/pkg-descr | 30 | ||||
-rw-r--r-- | games/xboing/pkg-plist | 67 |
5 files changed, 237 insertions, 0 deletions
diff --git a/games/xboing/Makefile b/games/xboing/Makefile new file mode 100644 index 000000000000..f3bcd9053fdd --- /dev/null +++ b/games/xboing/Makefile @@ -0,0 +1,13 @@ +# New ports collection makefile for: xboing +# Version required: 2.2 +# Date created: 31 Januar 1995 +# Whom: janek +# + +DISTNAME= xboing2.2 +EXTRACT_SUFX= .tar.gz +USE_IMAKE= yes +INSTALL_MANPAGES= yes +MASTER_SITES= ftp://ftp.icm.edu.pl/pub/X11/contrib/games/ + +.include <bsd.port.mk> diff --git a/games/xboing/files/patch-aa b/games/xboing/files/patch-aa new file mode 100644 index 000000000000..cc8f8f89bf4a --- /dev/null +++ b/games/xboing/files/patch-aa @@ -0,0 +1,126 @@ +diff -rc ../xboing2.2.orig/Imakefile ./Imakefile +*** ../xboing2.2.orig/Imakefile Thu Jun 2 02:11:10 1994 +--- ./Imakefile Wed Feb 1 00:26:57 1995 +*************** +*** 5,17 **** + XCOMM This is the directory where the highscore, level & sound data will be + XCOMM placed. Default will be the current directory. + +! XBOING_DIR = . + + XCOMM These are some defines that must be set. Some may be overwritten in the + XCOMM machine arch section. + +! XPMLIB = -L../xpm3.4/lib -lXpm +! XPMINCLUDE = -I../xpm3.4/lib + XBOINGINCLUDE = -I./include + LEVEL_INSTALL_DIR = $(XBOING_DIR)/levels + SOUNDS_DIR = $(XBOING_DIR)/sounds +--- 5,17 ---- + XCOMM This is the directory where the highscore, level & sound data will be + XCOMM placed. Default will be the current directory. + +! XBOING_DIR = /usr/X11R6/lib/X11/xboing + + XCOMM These are some defines that must be set. Some may be overwritten in the + XCOMM machine arch section. + +! XPMLIB = -lXpm +! XPMINCLUDE = -I/usr/X11R6/include/X11 + XBOINGINCLUDE = -I./include + LEVEL_INSTALL_DIR = $(XBOING_DIR)/levels + SOUNDS_DIR = $(XBOING_DIR)/sounds +*************** +*** 98,105 **** + -DLEVEL_INSTALL_DIR=\"$(LEVEL_INSTALL_DIR)\" \ + -DAUDIO_AVAILABLE=\"$(AUDIO_AVAILABLE)\" \ + -DSOUNDS_DIR=\"$(SOUNDS_DIR)\" \ +! -DREADMEP_FILE=\"$(XBOING_DIR)/docs/problems.doc\" +! XCOMM -DUSE_FLOCK=\"True\" \ + XCOMM -DNO_LOCKING=\"True\" + + LOCAL_LIBRARIES = $(AUDIO_LIB) $(XPMLIB) $(XLIB) -lm +--- 98,105 ---- + -DLEVEL_INSTALL_DIR=\"$(LEVEL_INSTALL_DIR)\" \ + -DAUDIO_AVAILABLE=\"$(AUDIO_AVAILABLE)\" \ + -DSOUNDS_DIR=\"$(SOUNDS_DIR)\" \ +! -DREADMEP_FILE=\"$(XBOING_DIR)/docs/problems.doc\" \ +! -DUSE_FLOCK=\"True\" + XCOMM -DNO_LOCKING=\"True\" + + LOCAL_LIBRARIES = $(AUDIO_LIB) $(XPMLIB) $(XLIB) -lm +diff -rc ../xboing2.2.orig/include/misc.h ./include/misc.h +*** ../xboing2.2.orig/include/misc.h Wed May 25 01:32:15 1994 +--- ./include/misc.h Wed Feb 1 00:37:19 1995 +*************** +*** 68,81 **** + int ObtainWindowWidthHeight(Display *display, Window window, + int *width, int *height); + void sleepSync(Display *display, unsigned long ms); +! int usleep(unsigned long usec); + int ObtainMousePosition(Display *display, Window window, int *x, int *y); + int YesNoDialogue(Display *display, char *message); + #else + int YesNoDialogue(); + int ObtainMousePosition(); + void sleepSync(); +! int usleep(); + int ObtainWindowWidthHeight(); + int ResizeMainWindow(); + char *GetHomeDir(); +--- 68,81 ---- + int ObtainWindowWidthHeight(Display *display, Window window, + int *width, int *height); + void sleepSync(Display *display, unsigned long ms); +! int Usleep(unsigned long usec); + int ObtainMousePosition(Display *display, Window window, int *x, int *y); + int YesNoDialogue(Display *display, char *message); + #else + int YesNoDialogue(); + int ObtainMousePosition(); + void sleepSync(); +! int Usleep(); + int ObtainWindowWidthHeight(); + int ResizeMainWindow(); + char *GetHomeDir(); +diff -rc ../xboing2.2.orig/misc.c ./misc.c +*** ../xboing2.2.orig/misc.c Mon May 30 05:59:39 1994 +--- ./misc.c Wed Feb 1 00:37:54 1995 +*************** +*** 65,73 **** + */ + + #if NeedFunctionPrototypes +! int usleep(unsigned long usec) + #else +! int usleep(usec) + unsigned long usec; + #endif + { +--- 65,73 ---- + */ + + #if NeedFunctionPrototypes +! int Usleep(unsigned long usec) + #else +! int Usleep(usec) + unsigned long usec; + #endif + { +*************** +*** 108,114 **** + ((et.tv_usec - st.tv_usec) / 1000) ); + + if ((ms) > ((1000 / 60) + SyncTime)) +! usleep(ms - SyncTime); + } + + #if NeedFunctionPrototypes +--- 108,114 ---- + ((et.tv_usec - st.tv_usec) / 1000) ); + + if ((ms) > ((1000 / 60) + SyncTime)) +! Usleep(ms - SyncTime); + } + + #if NeedFunctionPrototypes diff --git a/games/xboing/pkg-comment b/games/xboing/pkg-comment new file mode 100644 index 000000000000..9753b7e42ac3 --- /dev/null +++ b/games/xboing/pkg-comment @@ -0,0 +1 @@ +xboing - X windows arcade game. Version 2.2 diff --git a/games/xboing/pkg-descr b/games/xboing/pkg-descr new file mode 100644 index 000000000000..24433a83d5af --- /dev/null +++ b/games/xboing/pkg-descr @@ -0,0 +1,30 @@ + _ __ ____ _ ________ + | |/ // __ )____ (_)___ ____ _ / _/ _/ + | // __ / __ \/ / __ \/ __ `/ / / / / + / |/ /_/ / /_/ / / / / / /_/ / _/ /_/ / + /_/|_/_____/\____/_/_/ /_/\__, / /___/___/ + /____/ + + Version 2.2 - 2nd June 1994 + + +Description +----------- + +XBoing is a blockout type game where you have a paddle which you use to +bounce a ball around the game area blowing up blocks with the ball. You win by +obtaining points for each block destroyed and each level completed. The person +with the highest score wins. + +XBoing was started like many other projects to learn Xlib better. I had the +XPM library and was already using it in a Motif application. I thought that it +would be cool to have nice colour pictures/animations in an Xlib game. So I +did. Without the XPM library I would be still playing with the colours I think. + +Please read the manual page as the manual has some important game play +information. + +WARNING: This game requires a lot of grunt to run well. If someone is doing + a compile or the load is large then expect the game to be a bit + bumpy and hard to play. Sorry about that. ;-| + diff --git a/games/xboing/pkg-plist b/games/xboing/pkg-plist new file mode 100644 index 000000000000..2a2830a76ebc --- /dev/null +++ b/games/xboing/pkg-plist @@ -0,0 +1,67 @@ +@cd /usr/X11R6 +@owner games +@mode 555 +bin/xboing +@mode 666 +lib/X11/xboing/xboing.scr +@mode 444 +lib/X11/xboing/problems.doc +lib/X11/xboing/levels/demo.data +lib/X11/xboing/levels/editor.data +lib/X11/xboing/levels/level01.data +lib/X11/xboing/levels/level02.data +lib/X11/xboing/levels/level03.data +lib/X11/xboing/levels/level04.data +lib/X11/xboing/levels/level05.data +lib/X11/xboing/levels/level06.data +lib/X11/xboing/levels/level07.data +lib/X11/xboing/levels/level08.data +lib/X11/xboing/levels/level09.data +lib/X11/xboing/levels/level10.data +lib/X11/xboing/levels/level11.data +lib/X11/xboing/levels/level12.data +lib/X11/xboing/levels/level13.data +lib/X11/xboing/levels/level14.data +lib/X11/xboing/levels/level15.data +lib/X11/xboing/levels/level16.data +lib/X11/xboing/levels/level17.data +lib/X11/xboing/levels/level18.data +lib/X11/xboing/levels/level19.data +lib/X11/xboing/levels/level20.data +lib/X11/xboing/levels/level21.data +lib/X11/xboing/levels/level22.data +lib/X11/xboing/levels/level23.data +lib/X11/xboing/levels/level24.data +lib/X11/xboing/levels/level25.data +lib/X11/xboing/levels/level26.data +lib/X11/xboing/levels/level27.data +lib/X11/xboing/levels/level28.data +lib/X11/xboing/levels/level29.data +lib/X11/xboing/levels/level30.data +lib/X11/xboing/levels/level31.data +lib/X11/xboing/levels/level32.data +lib/X11/xboing/levels/level33.data +lib/X11/xboing/levels/level34.data +lib/X11/xboing/levels/level35.data +lib/X11/xboing/levels/level36.data +lib/X11/xboing/levels/level37.data +lib/X11/xboing/levels/level38.data +lib/X11/xboing/levels/level39.data +lib/X11/xboing/levels/level40.data +lib/X11/xboing/levels/level41.data +lib/X11/xboing/levels/level42.data +lib/X11/xboing/levels/level43.data +lib/X11/xboing/levels/level44.data +lib/X11/xboing/levels/level45.data +lib/X11/xboing/levels/level46.data +lib/X11/xboing/levels/level47.data +lib/X11/xboing/levels/level48.data +lib/X11/xboing/levels/level49.data +lib/X11/xboing/levels/level50.data +lib/X11/xboing/levels/level51.data +lib/X11/xboing/levels/level52.data +lib/X11/xboing/levels/level53.data +lib/X11/xboing/levels/level54.data +lib/X11/xboing/levels/level55.data +lib/X11/xboing/levels/new.data +man/man1/xboing.1.gz |