1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/games/tank/files/patch-aa
Maxim Sobolev 374576c860 o Fix the port after it has been broken for ages (since Mesa3 release);
o make it CFLAGS/X11BASE and PREFIX-clean;
o install data files into ${PREFIX}/share, not into ${PREFIX}/lib as it was
  previously.

Prompted by:	bento
2001-03-14 12:20:49 +00:00

108 lines
2.7 KiB
Plaintext

diff -ruN ../../OLD/tank-0.4a/./Makefile ./Makefile
--- ../../OLD/tank-0.4a/./Makefile Sun Feb 2 09:59:42 1997
+++ ./Makefile Wed Mar 4 04:42:57 1998
@@ -43,11 +43,11 @@
"GLAUXINC = $(GLAUXINC)" linux-elf
linux-mesa:
- cd Mesa; $(MAKE) linux
+ # cd Mesa; $(MAKE) linux
$(MAKE) -f Makefile.Linux.Mesa linux
linux-mesa-elf:
- cd Mesa; $(MAKE) linux-elf
+ # cd Mesa; $(MAKE) linux-elf
$(MAKE) -f Makefile.Linux.Mesa linux-elf
aix-opengl:
@@ -65,7 +65,7 @@
$(MAKE) -f Makefile.Linux clean
mesa-clean:
- cd Mesa; $(MAKE) clean
+ # cd Mesa; $(MAKE) clean
$(MAKE) -f Makefile.Linux clean
backup:
diff -ruN ../../OLD/tank-0.4a/./collisions.c ./collisions.c
--- ../../OLD/tank-0.4a/./collisions.c Sun Feb 2 09:59:42 1997
+++ ./collisions.c Wed Mar 4 04:42:57 1998
@@ -10,7 +10,7 @@
#include <sys/time.h>
#include <math.h>
-#ifdef MESA
+#ifdef USING_MESA
#include <glaux.h>
#else
#include <aux.h>
diff -ruN ../../OLD/tank-0.4a/./daemon.c ./daemon.c
--- ../../OLD/tank-0.4a/./daemon.c Sun Feb 2 09:59:42 1997
+++ ./daemon.c Wed Mar 4 04:42:57 1998
@@ -24,7 +24,7 @@
#include <GL/gl.h>
#include <GL/glu.h>
-#ifdef MESA
+#ifdef USING_MESA
#include <glaux.h>
#else
#include <aux.h>
diff -ruN ../../OLD/tank-0.4a/./defines.h ./defines.h
--- ../../OLD/tank-0.4a/./defines.h Sun Feb 2 09:59:42 1997
+++ ./defines.h Wed Mar 4 04:44:12 1998
@@ -15,7 +15,7 @@
/* Definitions des variables du jeu */
/* ------------------------------------------------*/
-#define TANK_HOME "/usr/games/tank-0.4a"
+#define TANK_HOME (PREFIX "/share/tank")
/* ------------------------------------------------*/
/* Definitions du nombre maximum d'objets */
diff -ruN ../../OLD/tank-0.4a/./lists.c ./lists.c
--- ../../OLD/tank-0.4a/./lists.c Sun Feb 2 09:59:42 1997
+++ ./lists.c Wed Mar 4 04:42:57 1998
@@ -13,7 +13,7 @@
#include <GL/gl.h>
#include <GL/glu.h>
-#ifdef MESA
+#ifdef USING_MESA
#include <glaux.h>
#else
#include <aux.h>
diff -ruN ../../OLD/tank-0.4a/./operations.c ./operations.c
--- ../../OLD/tank-0.4a/./operations.c Sun Feb 2 09:59:43 1997
+++ ./operations.c Wed Mar 4 04:42:57 1998
@@ -13,7 +13,7 @@
#include "defines.h"
#include "operations.h"
-#ifdef MESA
+#ifdef USING_MESA
#include <glaux.h>
#else
#include <aux.h>
diff -ruN ../../OLD/tank-0.4a/./tank.c ./tank.c
--- ../../OLD/tank-0.4a/./tank.c Sun Feb 2 09:59:43 1997
+++ ./tank.c Wed Mar 4 04:44:26 1998
@@ -22,7 +22,7 @@
#include <GL/glx.h>
#include <X11/Xutil.h>
-#ifdef MESA
+#ifdef USING_MESA
#include <glaux.h>
#else
#include <aux.h>
@@ -1383,7 +1383,7 @@
#ifdef SOUND
- if(system("cat eatthis.au >/dev/audio &") != 0) {
+ if(system("/bin/cat " PREFIX "/share/tank/eatthis.au >/dev/audio &") != 0) {
}
#endif