aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/tuxracer/Makefile9
-rw-r--r--games/tuxracer/files/patch-configure21
-rw-r--r--games/tuxracer/files/patch-configure.in77
3 files changed, 23 insertions, 84 deletions
diff --git a/games/tuxracer/Makefile b/games/tuxracer/Makefile
index fb8dc79cf67..e1ff7762070 100644
--- a/games/tuxracer/Makefile
+++ b/games/tuxracer/Makefile
@@ -17,19 +17,14 @@ USE_SDL= mixer sdl
USE_GL= gl
USE_XORG= x11 xt xmu xi
USES= gmake tk
-USE_AUTOTOOLS= automake14 autoconf
-AUTOMAKE_ARGS= -a
-CONFIGURE_ENV= THREAD_LIB="${PTHREAD_LIBS}"
+GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-tcl-inc="${TCL_INCLUDEDIR}" \
--with-tcl-libs="${LOCALBASE}/lib" \
--with-tcl-lib-name=tcl${TCL_VER:S/.//} \
--with-gl-libs="${LOCALBASE}/lib" \
--with-gl-inc="${LOCALBASE}/include" \
--with-data-dir=${DATADIR}
-MAKE_ENV= ${CONFIGURE_ENV}
-
-post-extract:
- @${RM} ${WRKSRC}/missing
+CPPFLAGS+= -DGLX_GLXEXT_LEGACY
post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
diff --git a/games/tuxracer/files/patch-configure b/games/tuxracer/files/patch-configure
new file mode 100644
index 00000000000..1a5dbc84f0a
--- /dev/null
+++ b/games/tuxracer/files/patch-configure
@@ -0,0 +1,21 @@
+--- configure.orig 2001-01-23 21:12:19.000000000 +0100
++++ configure 2014-09-25 11:41:47.000000000 +0200
+@@ -1795,16 +1795,10 @@
+
+
+ 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
+-
+ # Check whether --enable-debug or --disable-debug was given.
+ if test "${enable_debug+set}" = set; then
+ enableval="$enable_debug"
diff --git a/games/tuxracer/files/patch-configure.in b/games/tuxracer/files/patch-configure.in
deleted file mode 100644
index 57138f28db9..00000000000
--- a/games/tuxracer/files/patch-configure.in
+++ /dev/null
@@ -1,77 +0,0 @@
---- configure.in.orig 2001-01-16 15:26:29.000000000 +0000
-+++ configure.in 2010-06-14 11:51:45.000000000 +0000
-@@ -45,12 +45,6 @@
- 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],
-@@ -139,2 +133,6 @@
- TCL_LIB_LIST=`grep -v -E "^$TCL_LIB_NAME\$" <<EOF
-+tcl8.5
-+tcl85
-+tcl8.4
-+tcl84
- tcl8.3
-@@ -193,2 +191,6 @@
- tcl.h
-+tcl8.5.h
-+tcl85.h
-+tcl8.4.h
-+tcl84.h
- tcl8.3.h
-@@ -221,3 +223,4 @@
- if test "x$have_tcl_h" = "xno" -a "x$with_tcl_inc" = "x"; then
-- TCL_INC_LIST="/usr/include/tcl8.3 /usr/include/tcl8.2 \
-+ TCL_INC_LIST="/usr/include/tcl8.5 /usr/include/tcl8.4 \
-+ /usr/include/tcl8.3 /usr/include/tcl8.2 \
- /usr/include/tcl8.0 /usr/include/tcl"
-@@ -305,2 +308,6 @@
-
-+if test "x$THREAD_LIB" = "x" ; then
-+ THREAD_LIB="-lpthread"
-+fi
-+
- AC_DEFUN( CHECK_FOR_GL_LIB, [
-@@ -315,6 +322,6 @@
- else
-- dnl Try with -lpthread
-+ dnl Try with pthreads
-
- AC_MSG_CHECKING([for $GL_LIB_NAME library (with pthreads)])
-- LIBS="$saved_LIBS $TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME -lpthread"
-+ LIBS="$saved_LIBS $TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME $THREAD_LIB"
- AC_TRY_LINK( , , have_GL=yes, have_GL=no)
-@@ -323,3 +330,3 @@
- if test "x$have_GL" = "xyes" ; then
-- TR_LIBS="$TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME -lpthread"
-+ TR_LIBS="$TR_LIBS $GL_LDOPTS -l$GL_LIB_NAME $THREAD_LIB"
- fi
-@@ -468,3 +475,3 @@
- fi
--
-+ CFLAGS="$CFLAGS -DGLX_GLXEXT_LEGACY"
- dnl Check that glXGetProcAddressARB is defined in glx.h
-@@ -480,4 +487,7 @@
-
--dnl Check for glext.h
--AC_CHECK_HEADERS( "GL/glext.h", have_glext_h=yes, have_glext_h=no )
-+dnl Check for glext.h
-+dnl XXX: which requires GL/gl.h, and autoconf > 2.64 is barfing on this
-+dnl XXX: use following check to cover the bases
-+dnl AC_CHECK_HEADERS( "GL/glext.h", have_glext_h=yes, have_glext_h=no )
-+have_glext_h=yes
-
-@@ -497,2 +507,3 @@
- [
-+#include <GL/gl.h>
- #include <GL/glext.h>