From owner-freebsd-ports-bugs@FreeBSD.ORG Tue May 13 16:30:15 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8CDF937B401 for ; Tue, 13 May 2003 16:30:15 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1828B43F85 for ; Tue, 13 May 2003 16:30:15 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4DNUEUp051939 for ; Tue, 13 May 2003 16:30:14 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4DNUEHQ051938; Tue, 13 May 2003 16:30:14 -0700 (PDT) Date: Tue, 13 May 2003 16:30:14 -0700 (PDT) Message-Id: <200305132330.h4DNUEHQ051938@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Eric Anholt Subject: Re: ports/52178: New port: games/openglad X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Eric Anholt List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 May 2003 23:30:15 -0000 The following reply was made to PR ports/52178; it has been noted by GNATS. From: Eric Anholt 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 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--