summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-04-25 01:01:13 +0000
committerMike Frysinger <vapier@gentoo.org>2005-04-25 01:01:13 +0000
commitc9ff516cc5887dd79fd6c82b4cb36094c1af1e2f (patch)
treead6b0ed7531627b38aca34ed3bc808fb838c4712 /games-arcade/crack-attack/files
parentAdded doc to IUSE. (diff)
downloadgentoo-2-c9ff516cc5887dd79fd6c82b4cb36094c1af1e2f.tar.gz
gentoo-2-c9ff516cc5887dd79fd6c82b4cb36094c1af1e2f.tar.bz2
gentoo-2-c9ff516cc5887dd79fd6c82b4cb36094c1af1e2f.zip
Fix path issues #90263 by hodak@nemo.physics.ncsu.edu / Andrew Sayman.
(Portage version: 2.0.51.20)
Diffstat (limited to 'games-arcade/crack-attack/files')
-rw-r--r--games-arcade/crack-attack/files/crack-attack-1.1.13-binpaths.patch77
-rw-r--r--games-arcade/crack-attack/files/digest-crack-attack-1.1.13-r11
2 files changed, 78 insertions, 0 deletions
diff --git a/games-arcade/crack-attack/files/crack-attack-1.1.13-binpaths.patch b/games-arcade/crack-attack/files/crack-attack-1.1.13-binpaths.patch
new file mode 100644
index 000000000000..6c4628aff344
--- /dev/null
+++ b/games-arcade/crack-attack/files/crack-attack-1.1.13-binpaths.patch
@@ -0,0 +1,77 @@
+Fix paths so the game actually works :)
+
+Patch suggested by Andrew Sayman and taken from upstream CVS
+
+http://bugs.gentoo.org/show_bug.cgi?id=90263
+
+Index: src/Game.h
+===================================================================
+RCS file: /cvsroot/crack-attack/crack-attack/src/Game.h,v
+retrieving revision 1.18
+retrieving revision 1.19
+diff -u -r1.18 -r1.19
+--- src/Game.h
++++ src/Game.h
+@@ -82,7 +82,7 @@
+ # define GC_DATA_DIRECTORY(x) DATA_DIRECTORY x
+ # endif
+ # define GC_LOCAL_DATA_DIRECTORY GC_DD "." GC_BINARY GC_DD
+-# define GC_BINARY_LOCATION DATA_DIRECTORY ".." GC_DD ".."
++# define GC_BINARY_LOCATION BINARY_DIRECTORY GC_DD GC_BINARY
+ #else
+ # define GC_DATA_DIRECTORY(x) ".." GC_DD "data" GC_DD x
+ # define GC_LOCAL_DATA_DIRECTORY ".." GC_DD "localdata" GC_DD
+Index: src/gtk-gui/Makefile.am
+===================================================================
+RCS file: /cvsroot/crack-attack/crack-attack/src/gtk-gui/Makefile.am,v
+retrieving revision 1.4
+retrieving revision 1.5
+diff -u -r1.4 -r1.5
+--- src/gtk-gui/Makefile.am
++++ src/gtk-gui/Makefile.am
+@@ -5,10 +5,17 @@
+ interface.h callbacks.h support.h gui_main.h persist.h modeparser.h
+
+ AM_CXXFLAGS = -O2
+-INCLUDES = -DDATA_DIRECTORY='"${pkgdatadir}/"' \
+- -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
+- -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
+- @PACKAGE_CFLAGS@ @DEBUG_INCLUDES@
++
++if WANT_BINRELOC
++ PATH_INCLUDES =
++else
++ PATH_INCLUDES = -DDATA_DIRECTORY='"${pkgdatadir}/"' \
++ -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
++ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
++ -DBINARY_DIRECTORY='"${bindir}"'
++endif
++
++INCLUDES = @PACKAGE_CFLAGS@ @DEBUG_INCLUDES@ ${PATH_INCLUDES}
+
+ AM_LDFLAGS = ${all_libraries}
+ LDADD = ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS} -lGL -lGLU -lglut -lXi -lX11 -lXmu @PACKAGE_LIBS@
+Index: src/Makefile.am
+===================================================================
+RCS file: /cvsroot/crack-attack/crack-attack/src/Makefile.am,v
+retrieving revision 1.9
+retrieving revision 1.11
+diff -u -r1.9 -r1.11
+--- src/Makefile.am
++++ src/Makefile.am
+@@ -19,11 +19,12 @@
+ AM_CXXFLAGS = -DBR_PTHREAD=0 @DEBUG_CFLAGS@ @AUDIO_CFLAGS@
+
+ if WANT_BINRELOC
++ PATH_INCLUDES =
++else
+ PATH_INCLUDES = -DDATA_DIRECTORY='"${pkgdatadir}/"' \
+ -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
+- -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\"
+-else
+- PATH_INCLUDES =
++ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
++ -DBINARY_DIRECTORY='"${bindir}"'
+ endif
+
+ INCLUDES = @PACKAGE_CFLAGS@ @DEBUG_INCLUDES@ ${PATH_INCLUDES}
diff --git a/games-arcade/crack-attack/files/digest-crack-attack-1.1.13-r1 b/games-arcade/crack-attack/files/digest-crack-attack-1.1.13-r1
new file mode 100644
index 000000000000..ea8b5dcab036
--- /dev/null
+++ b/games-arcade/crack-attack/files/digest-crack-attack-1.1.13-r1
@@ -0,0 +1 @@
+MD5 9eb4963f44ed6f631d3a6e899c907cb6 crack-attack-1.1.13.tar.bz2 619484