Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 May 2003 16:30:14 -0700 (PDT)
From:      Eric Anholt <eta@lclark.edu>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/52178: New port: games/openglad
Message-ID:  <200305132330.h4DNUEHQ051938@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/52178; it has been noted by GNATS.

From: Eric Anholt <eta@lclark.edu>
To: freebsd-gnats-submit@FreeBSD.org, ponomarew@oberon.net
Cc:  
Subject: Re: ports/52178: New port: games/openglad
Date: 13 May 2003 16:32:27 -0700

 --=-butpHP0lgkd0c7/ADxby
 Content-Type: text/plain
 Content-Transfer-Encoding: 7bit
 
 Would you mind if I do the following patch to openglad as I commit it? 
 It gives the default config file the default location of the data, and
 adds a patch to let it actually find the data if a trailing '/' is left
 off of DATADIR or the user's configured data dir.
 
 -- 
 Eric Anholt                                eta@lclark.edu          
 http://people.freebsd.org/~anholt/         anholt@FreeBSD.org
 
 --=-butpHP0lgkd0c7/ADxby
 Content-Disposition: attachment; filename=openglad.diff
 Content-Type: text/x-patch; name=openglad.diff; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 diff -ruN openglad.orig/Makefile openglad/Makefile
 --- openglad.orig/Makefile	Tue May 13 16:27:56 2003
 +++ openglad/Makefile	Tue May 13 16:14:29 2003
 @@ -19,11 +19,16 @@
  
  SDL_CONFIG=	${LOCALBASE}/bin/sdl11-config
  
 +USE_REINPLACE=	yes
  USE_GMAKE=	yes
  GNU_CONFIGURE=	yes
  
  CONFIGURE_ENV=	SDL_CONFIG="${SDL_CONFIG}" \
  		CPPFLAGS="-I${X11BASE}/include"
  PLIST_SUB=	DOCDIR=share/doc/${PORTNAME}
 +
 +post-configure:
 +	${REINPLACE_CMD} -e 's|/path/to/data/dir|${LOCALBASE}/share/openglad|g' \
 +		${WRKSRC}/openglad.cfg
  
  .include <bsd.port.mk>
 diff -ruN openglad.orig/files/patch-util.cpp openglad/files/patch-util.cpp
 --- openglad.orig/files/patch-util.cpp	Wed Dec 31 16:00:00 1969
 +++ openglad/files/patch-util.cpp	Tue May 13 16:10:54 2003
 @@ -0,0 +1,18 @@
 +--- src/util.cpp.orig	Tue Oct  1 20:41:14 2002
 ++++ src/util.cpp	Tue May 13 16:10:35 2003
 +@@ -160,6 +160,7 @@
 + 	if (cfg.query("dirs", "data"))
 + 	{
 + 		filepath = cfg.query("dirs", "data");
 ++		filepath += "/";
 + 		filepath += pos_dir;
 + 		filepath += file;
 + 
 +@@ -171,6 +172,7 @@
 + 	}
 + 
 + 	filepath = DATADIR;
 ++	filepath += "/";
 + 	filepath += pos_dir;
 + 	filepath += file;
 + 
 
 --=-butpHP0lgkd0c7/ADxby--
 



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