aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2002-07-10 00:27:16 +0800
committerdwcjr <dwcjr@FreeBSD.org>2002-07-10 00:27:16 +0800
commitb43cc653664da0c6dc7228990f415e46667c609c (patch)
tree0d6568067a4860cb0a18b8cac45ea85c65315876 /games
parent58d7e677b0b94b9a9a0b8a1821a19319fb053288 (diff)
downloadfreebsd-ports-gnome-b43cc653664da0c6dc7228990f415e46667c609c.tar.gz
freebsd-ports-gnome-b43cc653664da0c6dc7228990f415e46667c609c.tar.zst
freebsd-ports-gnome-b43cc653664da0c6dc7228990f415e46667c609c.zip
Respect CFLAGS
PR: 40199 Submitted by: maintainer
Diffstat (limited to 'games')
-rw-r--r--games/etuxracer/files/patch-configure.in36
-rw-r--r--games/tuxracer-commercial/files/patch-configure.in36
-rw-r--r--games/tuxracer/files/patch-configure.in36
3 files changed, 96 insertions, 12 deletions
diff --git a/games/etuxracer/files/patch-configure.in b/games/etuxracer/files/patch-configure.in
index d55ba9935293..fba860800b10 100644
--- a/games/etuxracer/files/patch-configure.in
+++ b/games/etuxracer/files/patch-configure.in
@@ -1,6 +1,25 @@
---- configure.in.orig Mon Apr 30 16:23:53 2001
-+++ configure.in Mon Apr 30 16:39:21 2001
-@@ -303,6 +303,10 @@
+--- configure.in.orig Tue Jan 16 07:26:29 2001
++++ configure.in Thu Jul 4 00:47:06 2002
+@@ -43,16 +43,10 @@
+ dnl General options
+ dnl --------------------------------------------------------------------------
+ TR_CPPFLAGS=""
+-TR_CFLAGS="-O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations"
+-TR_CXXFLAGS="-O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations"
++TR_CFLAGS=""
++TR_CXXFLAGS=""
+ TR_LIBS=""
+
+-case "$host" in
+-i*86-*-*) TR_CFLAGS="$TR_CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2";
+- TR_CXXFLAGS="$TR_CXXFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2";;
+-alpha*-*-linux-*) TR_CFLAGS="$TR_CFLAGS -mieee";;
+-esac
+-
+ AC_ARG_ENABLE(debug, [ --enable-debug Produce an executable with debugging symbols],
+ [TR_CFLAGS="-g -Wall"; TR_CXXFLAGS="-g -Wall"],
+ [TR_CPPFLAGS="$TR_CPPFLAGS -DTUXRACER_NO_ASSERT=1"])
+@@ -303,6 +297,10 @@
saved_LIBS="$LIBS"
@@ -11,7 +30,7 @@
AC_DEFUN( CHECK_FOR_GL_LIB, [
AC_MSG_CHECKING([for $GL_LIB_NAME library])
LIBS="$saved_LIBS $TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME"
-@@ -313,15 +317,15 @@
+@@ -313,15 +311,15 @@
TR_LIBS="$TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME"
else
@@ -30,3 +49,12 @@
fi
fi
])
+@@ -466,7 +464,7 @@
+ if test "x$have_glx_h" = "xno" ; then
+ AC_MSG_ERROR([Cannot find GL/glx.h])
+ fi
+-
++ CFLAGS="$CFLAGS -DGLX_GLXEXT_LEGACY"
+ dnl Check that glXGetProcAddressARB is defined in glx.h
+ AC_MSG_CHECKING([whether glx.h defines glXGetProcAddressARB]);
+ AC_TRY_COMPILE( [#include <GL/glx.h>], [ char *foo = (char*) glXGetProcAddressARB; ],
diff --git a/games/tuxracer-commercial/files/patch-configure.in b/games/tuxracer-commercial/files/patch-configure.in
index d55ba9935293..fba860800b10 100644
--- a/games/tuxracer-commercial/files/patch-configure.in
+++ b/games/tuxracer-commercial/files/patch-configure.in
@@ -1,6 +1,25 @@
---- configure.in.orig Mon Apr 30 16:23:53 2001
-+++ configure.in Mon Apr 30 16:39:21 2001
-@@ -303,6 +303,10 @@
+--- configure.in.orig Tue Jan 16 07:26:29 2001
++++ configure.in Thu Jul 4 00:47:06 2002
+@@ -43,16 +43,10 @@
+ dnl General options
+ dnl --------------------------------------------------------------------------
+ TR_CPPFLAGS=""
+-TR_CFLAGS="-O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations"
+-TR_CXXFLAGS="-O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations"
++TR_CFLAGS=""
++TR_CXXFLAGS=""
+ TR_LIBS=""
+
+-case "$host" in
+-i*86-*-*) TR_CFLAGS="$TR_CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2";
+- TR_CXXFLAGS="$TR_CXXFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2";;
+-alpha*-*-linux-*) TR_CFLAGS="$TR_CFLAGS -mieee";;
+-esac
+-
+ AC_ARG_ENABLE(debug, [ --enable-debug Produce an executable with debugging symbols],
+ [TR_CFLAGS="-g -Wall"; TR_CXXFLAGS="-g -Wall"],
+ [TR_CPPFLAGS="$TR_CPPFLAGS -DTUXRACER_NO_ASSERT=1"])
+@@ -303,6 +297,10 @@
saved_LIBS="$LIBS"
@@ -11,7 +30,7 @@
AC_DEFUN( CHECK_FOR_GL_LIB, [
AC_MSG_CHECKING([for $GL_LIB_NAME library])
LIBS="$saved_LIBS $TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME"
-@@ -313,15 +317,15 @@
+@@ -313,15 +311,15 @@
TR_LIBS="$TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME"
else
@@ -30,3 +49,12 @@
fi
fi
])
+@@ -466,7 +464,7 @@
+ if test "x$have_glx_h" = "xno" ; then
+ AC_MSG_ERROR([Cannot find GL/glx.h])
+ fi
+-
++ CFLAGS="$CFLAGS -DGLX_GLXEXT_LEGACY"
+ dnl Check that glXGetProcAddressARB is defined in glx.h
+ AC_MSG_CHECKING([whether glx.h defines glXGetProcAddressARB]);
+ AC_TRY_COMPILE( [#include <GL/glx.h>], [ char *foo = (char*) glXGetProcAddressARB; ],
diff --git a/games/tuxracer/files/patch-configure.in b/games/tuxracer/files/patch-configure.in
index d55ba9935293..fba860800b10 100644
--- a/games/tuxracer/files/patch-configure.in
+++ b/games/tuxracer/files/patch-configure.in
@@ -1,6 +1,25 @@
---- configure.in.orig Mon Apr 30 16:23:53 2001
-+++ configure.in Mon Apr 30 16:39:21 2001
-@@ -303,6 +303,10 @@
+--- configure.in.orig Tue Jan 16 07:26:29 2001
++++ configure.in Thu Jul 4 00:47:06 2002
+@@ -43,16 +43,10 @@
+ dnl General options
+ dnl --------------------------------------------------------------------------
+ TR_CPPFLAGS=""
+-TR_CFLAGS="-O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations"
+-TR_CXXFLAGS="-O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations"
++TR_CFLAGS=""
++TR_CXXFLAGS=""
+ TR_LIBS=""
+
+-case "$host" in
+-i*86-*-*) TR_CFLAGS="$TR_CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2";
+- TR_CXXFLAGS="$TR_CXXFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2";;
+-alpha*-*-linux-*) TR_CFLAGS="$TR_CFLAGS -mieee";;
+-esac
+-
+ AC_ARG_ENABLE(debug, [ --enable-debug Produce an executable with debugging symbols],
+ [TR_CFLAGS="-g -Wall"; TR_CXXFLAGS="-g -Wall"],
+ [TR_CPPFLAGS="$TR_CPPFLAGS -DTUXRACER_NO_ASSERT=1"])
+@@ -303,6 +297,10 @@
saved_LIBS="$LIBS"
@@ -11,7 +30,7 @@
AC_DEFUN( CHECK_FOR_GL_LIB, [
AC_MSG_CHECKING([for $GL_LIB_NAME library])
LIBS="$saved_LIBS $TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME"
-@@ -313,15 +317,15 @@
+@@ -313,15 +311,15 @@
TR_LIBS="$TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME"
else
@@ -30,3 +49,12 @@
fi
fi
])
+@@ -466,7 +464,7 @@
+ if test "x$have_glx_h" = "xno" ; then
+ AC_MSG_ERROR([Cannot find GL/glx.h])
+ fi
+-
++ CFLAGS="$CFLAGS -DGLX_GLXEXT_LEGACY"
+ dnl Check that glXGetProcAddressARB is defined in glx.h
+ AC_MSG_CHECKING([whether glx.h defines glXGetProcAddressARB]);
+ AC_TRY_COMPILE( [#include <GL/glx.h>], [ char *foo = (char*) glXGetProcAddressARB; ],