From owner-freebsd-ports Tue Apr 25 20: 0:48 2000 Delivered-To: freebsd-ports@freebsd.org Received: from rock.ghis.net (rock.ghis.net [209.222.164.7]) by hub.freebsd.org (Postfix) with ESMTP id 2D5CB37BAF9 for ; Tue, 25 Apr 2000 20:00:40 -0700 (PDT) (envelope-from will@blackdawn.com) Received: from argon.blackdawn.com (01-108.dial.008.popsite.net [209.69.194.108]) by rock.ghis.net (8.9.3/8.9.3) with ESMTP id UAA23153; Tue, 25 Apr 2000 20:00:16 -0700 (PDT) Received: by argon.blackdawn.com (Postfix, from userid 1000) id 98974192C; Tue, 25 Apr 2000 22:59:59 -0400 (EDT) Date: Tue, 25 Apr 2000 22:59:59 -0400 From: Will Andrews To: FreeBSD Ports Cc: Maxim Sobolev Subject: GLTron update - need help Message-ID: <20000425225959.C1683@argon.blackdawn.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="RnlQjJ0d97Da+TV1" X-Mailer: Mutt 1.0.1i X-Operating-System: FreeBSD 5.0-CURRENT i386 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Hi, I've managed to upgrade GLTron to 0.59 with the recent SDL 1.1 and SDL_mixer imports. However, I can't get the game to actually run (for some reason every time I run it it gives me an error such as "Fatal signal: Segmentation Fault (SDL Parachute Deployed)". Not being a SDL expert, and not finding any coredumps, I couldn't figure out what to do. So, here's the patch against the current port. Note that patches/patch-a[ab] have been removed, and the patch below will add patches/patch-a[de]. Remember to remove *.orig's before running ``make''. Thanks for feedback, -- Will Andrews GCS/E/S @d- s+:+>+:- a--->+++ C++ UB++++ P+ L- E--- W+++ !N !o ?K w--- ?O M+ V-- PS+ PE++ Y+ PGP+>+++ t++ 5 X++ R+ tv+ b++>++++ DI+++ D+ G++>+++ e->++++ h! r-->+++ y? --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="gltron.diff" Index: Makefile =================================================================== RCS file: /extra/cvsroot/ports/games/gltron/Makefile,v retrieving revision 1.10 diff -u -r1.10 Makefile --- Makefile 2000/04/14 06:43:01 1.10 +++ Makefile 2000/04/25 03:52:07 @@ -6,30 +6,41 @@ # PORTNAME= gltron -PORTVERSION= 0.53 +PORTVERSION= 0.59 CATEGORIES= games -MASTER_SITES= http://www.ards.net/Andreas/gltron/ +MASTER_SITES= ftp://ftp.sourceforge.net/pub/sourceforge/gltron/ MAINTAINER= will@FreeBSD.org -LIB_DEPENDS= glut.3:${PORTSDIR}/graphics/Mesa3 +LIB_DEPENDS= SDL.2:${PORTSDIR}/devel/sdl \ + 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 +@@ -752,7 +752,7 @@ + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lSDL -lpthread $LIBS" ++LIBS="-L$ac_default_prefix/lib -lSDL -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 <