ports/150883: Ports games/openastromenace won't compile on 64 bit

Anonymous swell.k at gmail.com
Wed Jan 19 21:50:11 UTC 2011


The following reply was made to PR ports/150883; it has been noted by GNATS.

From: Anonymous <swell.k at gmail.com>
To: Rusty Nejdl <rnejdl at ringofsaturn.com>
Cc: bug-followup at FreeBSD.org
Subject: Re: ports/150883: Ports games/openastromenace won't compile on 64 bit
Date: Thu, 20 Jan 2011 00:38:43 +0300

 Can you try below diff? It should also fix build with gcc45.
 
 --- a.diff begins here ---
 Index: games/openastromenace/Makefile
 ===================================================================
 RCS file: /a/.cvsup/ports/games/openastromenace/Makefile,v
 retrieving revision 1.10
 diff -u -p -r1.10 Makefile
 --- games/openastromenace/Makefile	6 Jun 2010 20:43:48 -0000	1.10
 +++ games/openastromenace/Makefile	19 Jan 2011 21:24:51 -0000
 @@ -7,7 +7,7 @@
  
  PORTNAME=	openastromenace
  PORTVERSION=	1.2.0
 -PORTREVISION=	9
 +PORTREVISION=	10
  CATEGORIES=	games
  MASTER_SITES=	SF
  DISTFILES=	openamenace-src-${PORTVERSION}${EXTRACT_SUFX} \
 @@ -44,6 +44,10 @@ LANGPACK=	ru
  IGNORE=		cannot be build without/with multiple language packs. Please rerun 'make config' and select single language pack
  .endif
  
 +.if !defined(WITHOUT_NOUVEAU)
 +CFLAGS+=	-DOLD_MESA
 +.endif
 +
  post-patch:
  	${REINPLACE_CMD} -e 's|/usr/local/share/openastromenace|${DATADIR}|' \
  		${WRKSRC}/AstroMenaceSource/Main.cpp
 Index: games/openastromenace/files/patch-AstroMenaceSource-Core-Base.h
 ===================================================================
 RCS file: games/openastromenace/files/patch-AstroMenaceSource-Core-Base.h
 diff -N games/openastromenace/files/patch-AstroMenaceSource-Core-Base.h
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ games/openastromenace/files/patch-AstroMenaceSource-Core-Base.h	19 Jan 2011 21:19:09 -0000
 @@ -0,0 +1,17 @@
 +--- AstroMenaceSource/Core/Base.h~
 ++++ AstroMenaceSource/Core/Base.h
 +@@ -46,10 +46,14 @@
 + 	#include <OpenGL/gl.h>	// Header File For The OpenGL32 Library
 + 	#include <OpenGL/glu.h>	// Header File For The GLu32 Library
 + #else
 ++    #ifdef OLD_MESA
 + 	#define __glext_h_  // Don't let gl.h include glext.h
 ++    #endif
 + 	#include <GL/gl.h>	// Header File For The OpenGL32 Library
 + 	#include <GL/glu.h>	// Header File For The GLu32 Library
 ++    #ifdef OLD_MESA
 + 	#undef __glext_h_
 ++    #endif
 + #endif
 + 
 + #include <stdlib.h> // rand, ...
 Index: games/openastromenace/files/patch-AstroMenaceSource-Core-VirtualFileSystem-VFS.h
 ===================================================================
 RCS file: games/openastromenace/files/patch-AstroMenaceSource-Core-VirtualFileSystem-VFS.h
 diff -N games/openastromenace/files/patch-AstroMenaceSource-Core-VirtualFileSystem-VFS.h
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ games/openastromenace/files/patch-AstroMenaceSource-Core-VirtualFileSystem-VFS.h	19 Jan 2011 21:23:21 -0000
 @@ -0,0 +1,10 @@
 +--- AstroMenaceSource/Core/VirtualFileSystem/VFS.h~
 ++++ AstroMenaceSource/Core/VirtualFileSystem/VFS.h
 +@@ -34,6 +34,7 @@
 + #define VFS_H
 + 
 + 
 ++#include <cstdio>
 + #include "../Base.h"
 + 
 + 
 --- a.diff ends here ---



More information about the freebsd-ports-bugs mailing list