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/files | |
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/files')
-rw-r--r-- | games/xboing/files/patch-aa | 126 |
1 files changed, 126 insertions, 0 deletions
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 |