Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Mar 2005 21:57:58 +0100 (CET)
From:      Ulrich Spoerlein <q@uni.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/78512: [MAINTAINER] games/quake2forge: Fix fetching and detection of libGL
Message-ID:  <200503062057.j26Kvwqi002320@roadrunner.q.local>
Resent-Message-ID: <200503062100.j26L0EEd084051@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         78512
>Category:       ports
>Synopsis:       [MAINTAINER] games/quake2forge: Fix fetching and detection of libGL
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 06 21:00:14 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Ulrich Spoerlein
>Release:        FreeBSD 5.4-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD roadrunner 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #4: Fri Mar  4 23:29:46 CET
>Description:
- The master site is currently down. Add a download mirror.
- The configure script clobbers OPENGL_LIBS, therefore linking with -lGL fails,
  strange I didn't notice this before ... (found by Mateusz J?drasik <imachine toya net pl>)

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- quake2forge-0.3.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/games/quake2forge/Makefile,v
retrieving revision 1.11
diff -u -u -r1.11 Makefile
--- Makefile	11 Aug 2004 19:09:02 -0000	1.11
+++ Makefile	6 Mar 2005 20:53:27 -0000
@@ -8,7 +8,8 @@
 PORTNAME=	quake2forge
 PORTVERSION=	0.3
 CATEGORIES=	games
-MASTER_SITES=	ftp://ftp.quakeforge.net/quake2forge/
+MASTER_SITES=	ftp://ftp.quakeforge.net/quake2forge/ \
+		http://www.galgenberg.net/~q/
 DISTNAME=	quake2-${PORTVERSION}
 
 MAINTAINER=	q@uni.de
Index: files/patch-configure.in
===================================================================
RCS file: /home/ncvs/ports/games/quake2forge/files/patch-configure.in,v
retrieving revision 1.1
diff -u -u -r1.1 patch-configure.in
--- files/patch-configure.in	11 Aug 2004 19:09:02 -0000	1.1
+++ files/patch-configure.in	6 Mar 2005 20:53:27 -0000
@@ -1,5 +1,5 @@
 --- configure.in.orig	Tue Mar 16 11:07:38 2004
-+++ configure.in	Thu Aug  5 09:59:56 2004
++++ configure.in	Fri Mar  4 14:30:46 2005
 @@ -109,6 +109,7 @@
  	# test for the library first, for people who may have the libs
  	# installed but no headers
@@ -15,4 +15,21 @@
 -		SVGALIB_LIBS="-lvga"
  		AC_SUBST(SVGALIB_CFLAGS)
  		AC_SUBST(SVGALIB_LIBS)
+ 	else
+@@ -221,7 +221,7 @@
+ 	# --with-opengl was explicitly given, so look in that directory
+ 	if test "x${ac_with_opengl}" != xauto ; then
+ 		OPENGL_CFLAGS="$OPENGL_CFLAGS -I$withval/include"
+-		OPENGL_LIBS="$OPENGL_CFLAGS -L$withval/lib"
++		OPENGL_LIBS="$OPENGL_LIBS -L$withval/lib"
+ 	fi
+ 	# save and set CPPFLAGS for coming tests
+ 	save_CPPFLAGS="$CPPFLAGS"
+@@ -263,7 +263,6 @@
+ 
+ 	if test "x$HAVE_OPENGL" = xyes; then
+ 		AC_DEFINE(HAVE_OPENGL, 1, [Define this if you have OpenGL])
+-		OPENGL_LIBS="-lGL"
+ 		AC_SUBST(OPENGL_CFLAGS)
+ 		AC_SUBST(OPENGL_LIBS)
  	else
--- quake2forge-0.3.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503062057.j26Kvwqi002320>