openbsd-ports/games/xboing/patches/patch-Imakefile
2010-08-25 18:04:37 +00:00

83 lines
2.9 KiB
Plaintext

$OpenBSD: patch-Imakefile,v 1.8 2010/08/25 18:04:37 jasper Exp $
--- Imakefile.orig Fri Nov 22 02:28:46 1996
+++ Imakefile Wed Aug 25 20:02:50 2010
@@ -24,23 +24,23 @@ XCOMM ================================================
XCOMM This is the directory where the highscore, level & sound data will be
XCOMM placed. Default will be the current directory.
- XBOING_DIR = .
+ XBOING_DIR = ${PREFIX}/share/xboing
XCOMM These are some defines that must be set. Some may be overwritten in the
XCOMM machine arch section.
- XPMLIB = -L/usr/X11/lib -lXpm
- XPMINCLUDE = -I/usr/X11/include/X11
+ XPMLIB = -lXpm
+ XPMINCLUDE = -I${X11BASE}/include/X11
XBOINGINCLUDE = -I./include
LEVEL_INSTALL_DIR = $(XBOING_DIR)/levels
SOUNDS_DIR = $(XBOING_DIR)/sounds
BACKUP_DIR = $(XBOING_DIR)/../backups
- HIGH_SCORE_FILE = $(XBOING_DIR)/.xboing.scr
- AUDIO_AVAILABLE = False
- AUDIO_SRC = audio/NOaudio.c
+ HIGH_SCORE_DIR = /var/games
+ HIGH_SCORE_FILE = $(HIGH_SCORE_DIR)/xboing.score
+ AUDIO_AVAILABLE = True
+ AUDIO_SRC = audio/LINUXaudio.c
AUDIO_INCLUDE =
- AUDIO_LIB =
- CDEBUGFLAGS = -g
+ AUDIO_LIB = -lsndio
XCOMM Uncomment this if you want to use ANY of the AUDIO sound systems
#define COMPILE_IN_AUDIO
@@ -53,7 +53,7 @@ XCOMM #define USE_NETAUDIO
XCOMM Below are the special defines for different machine archs.
-#if defined(HPArchitecture) && defined(COMPILE_IN_AUDIO)
+#if defined(HPArchitecture) && defined(COMPILE_IN_AUDIO) && !defined(OpenBSDArchitecture)
AUDIO_AVAILABLE = True
AUDIO_SRC = audio/HPaudio.c
AUDIO_INCLUDE =
@@ -74,14 +74,14 @@ XCOMM Below are the special defines for different mach
AUDIO_LIB =
#endif /* svr4 */
-#if defined(SGIArchitecture) && defined(COMPILE_IN_AUDIO)
+#if defined(SGIArchitecture) && defined(COMPILE_IN_AUDIO) && !defined(OpenBSDArchitecture)
AUDIO_AVAILABLE = True
AUDIO_SRC = audio/SGIaudio.c
AUDIO_INCLUDE =
AUDIO_LIB = -laudio
#endif /* SGIArchitecture */
-#if defined(SparcArchitecture) && defined(COMPILE_IN_AUDIO)
+#if defined(SparcArchitecture) && defined(COMPILE_IN_AUDIO) && !defined(OpenBSDArchitecture)
AUDIO_AVAILABLE = True
AUDIO_SRC = audio/SUNaudio.c
@@ -132,8 +132,8 @@ XCOMM hasn't a usleep() function.
-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\" \
+ -DREADMEP_FILE=\"$(XBOING_DIR)/problems.doc\" \
+ -DUSE_FLOCK=\"True\"
XCOMM -DNEED_USLEEP=\"True\" \
XCOMM -DNO_LOCKING=\"True\"
@@ -203,9 +203,6 @@ install:: $(PROGRAMS)
done; \
fi
@:
- @echo "Creating a highscore file " $(HIGH_SCORE_FILE)
- @touch $(HIGH_SCORE_FILE);
- @chmod a+rw $(HIGH_SCORE_FILE);
XCOMM I use this for my daily backup of my code.