From 0fc9b60d995424cc74b921aa52e0c8531d0dadc4 Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Thu, 18 May 2000 05:25:38 +0000 Subject: Update to GLTron 0.59. WARNING: This requires an enormous amount of CPU to run! If you don't have sound, be sure to compile with -DNO_SOUND. Helped by: sobomax --- games/gltron/Makefile | 31 ++++++++++----- games/gltron/distinfo | 2 +- games/gltron/files/patch-ac | 14 ++++--- games/gltron/files/patch-ad | 91 +++++++++++++++++++++++++++++++++++++++++++++ games/gltron/files/patch-ae | 34 +++++++++++++++++ games/gltron/pkg-plist | 43 +++++++++++++++------ 6 files changed, 187 insertions(+), 28 deletions(-) create mode 100644 games/gltron/files/patch-ad create mode 100644 games/gltron/files/patch-ae (limited to 'games/gltron') diff --git a/games/gltron/Makefile b/games/gltron/Makefile index dc1873beeb04..02911d2d06d7 100644 --- a/games/gltron/Makefile +++ b/games/gltron/Makefile @@ -6,30 +6,41 @@ # PORTNAME= gltron -PORTVERSION= 0.53 +PORTVERSION= 0.59 CATEGORIES= games -MASTER_SITES= http://www.ards.net/Andreas/gltron/ +MASTER_SITES= http://gltron.sourceforge.net/download/ MAINTAINER= will@FreeBSD.org -LIB_DEPENDS= glut.3:${PORTSDIR}/graphics/Mesa3 +LIB_DEPENDS= SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer \ + glut.3:${PORTSDIR}/graphics/Mesa3 + +.if defined(NO_SOUND) +SOUND="" +.else +SOUND="-DSOUND" +.endif USE_X_PREFIX= yes +GNU_CONFIGURE= yes USE_GMAKE= yes -MAKE_ENV+= OPT="${CFLAGS}" +MAKE_ENV+= OPT="${CFLAGS}" SOUND="${SOUND}" + +pre-build: + ${PERL} -pi -e "s+#include &6 + echo "configure:530: checking for main in -lm" >&5 +@@ -701,14 +701,14 @@ + { echo "configure: error: GLU should come with OpenGL" 1>&2; exit 1; } + fi + +-echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6 +-echo "configure:706: checking for main in -lpthread" >&5 ++echo $ac_n "checking for main in -pthread""... $ac_c" 1>&6 ++echo "configure:706: checking for main in -pthread" >&5 + ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'` + if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lpthread $LIBS" ++LIBS="-pthread $LIBS" + cat > conftest.$ac_ext <&6 + { echo "configure: error: SDL needs pthread to run properly" 1>&2; exit 1; } + fi + +-echo $ac_n "checking for main in -lSDL""... $ac_c" 1>&6 +-echo "configure:750: checking for main in -lSDL" >&5 ++echo $ac_n "checking for main in -lSDL-1.1""... $ac_c" 1>&6 ++echo "configure:750: checking for main in -lSDL-1.1" >&5 + ac_lib_var=`echo SDL'_'main | sed 'y%./+-%__p_%'` + if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lSDL -lpthread $LIBS" ++LIBS="-L$ac_default_prefix/lib -lSDL-1.1 -pthread $LIBS" + cat > conftest.$ac_ext <&6 +@@ -796,7 +796,7 @@ + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lSDL_mixer $LIBS" ++LIBS="-L$ac_default_prefix/lib -lSDL_mixer -lsmpeg $LIBS" + cat > conftest.$ac_ext <&6 +@@ -840,7 +840,7 @@ + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lpng $LIBS" ++LIBS="-L$ac_default_prefix/lib -lpng $LIBS" + cat > conftest.$ac_ext <