Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 May 2004 23:30:19 +0900
From:      KATO Tsuguru <tkato@prontomail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/66753: Update port: games/shaaft
Message-ID:  <20040517233019.15ad9ed4.tkato@prontomail.com>
Resent-Message-ID: <200405171440.i4HEeDxo072334@freefall.freebsd.org>

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

>Number:         66753
>Category:       ports
>Synopsis:       Update port: games/shaaft
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 17 07:40:13 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.9-RELEASE-p7 i386
>Organization:
>Environment:
>Description:
- Fix MASTER_SITES
- Fix COMMENT format
- Fix LIB_DEPENDS
- Add CONFLICTS
- Support CXXFLAGS proeperly

Remove file:
files/patch-configure
files/patch-game::main.cpp
files/patch-utilsgl::GLBitmapCollection.cpp
files/patch-utilsgl::GLTexture.hpp
files/patch-utilssdl::PNG.hpp

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/games/shaaft/Makefile games/shaaft/Makefile
--- /usr/ports/games/shaaft/Makefile	Tue Mar 16 19:07:28 2004
+++ games/shaaft/Makefile	Mon May 17 01:41:24 2004
@@ -7,22 +7,34 @@
 
 PORTNAME=	shaaft
 PORTVERSION=	0.5.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	games
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR=	sourceforge/criticalmass
+MASTER_SITE_SUBDIR=	criticalmass
 DISTNAME=	Shaaft-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Shaaft is an OpenGL 3D falling block game similar to Blockout
+COMMENT=	An OpenGL 3D falling block game similar to Blockout
+
+CONFLICTS=	criticalmass-*
 
 USE_BZIP2=	yes
 USE_SDL=	mixer image sdl
+USE_GL=		yes
+USE_REINPLACE=	yes
 GNU_CONFIGURE=	yes
-
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
-		LIBS="-L${LOCALBASE}/lib"
+		LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS=	--disable-optimize
 
 MAN6=		${PORTNAME}.6
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG:T}|g ; \
+		 s|^CXXFLAGS|#CXXFLAGS|g ; \
+		 s|-lSDL | |g ; \
+		 s|-lpng12|-lpng|g' ${WRKSRC}/configure
+	@${GREP} -lR "SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
+		's|SDL/SDL|SDL|g'
 
 .include <bsd.port.mk>
diff -urN /usr/ports/games/shaaft/files/patch-configure games/shaaft/files/patch-configure
--- /usr/ports/games/shaaft/files/patch-configure	Sat Jan  3 06:33:26 2004
+++ games/shaaft/files/patch-configure	Thu Jan  1 09:00:00 1970
@@ -1,58 +0,0 @@
---- configure.orig	Fri Jan  2 00:19:59 2004
-+++ configure	Fri Jan  2 18:15:32 2004
-@@ -1424,7 +1424,7 @@
-   echo $ac_n "(cached) $ac_c" 1>&6
- else
-   ac_save_LIBS="$LIBS"
--LIBS="-lSDL `sdl-config --libs` $LIBS"
-+LIBS="-lSDL-1.1 `sdl11-config --libs` $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 1430 "configure"
- #include "confdefs.h"
-@@ -1448,9 +1448,9 @@
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-   echo "$ac_t""yes" 1>&6
--  LIBS="$LIBS `sdl-config --libs`" ; \
--    CFLAGS="$CFLAGS `sdl-config --cflags`" ; \
--    CXXFLAGS="$CXXFLAGS `sdl-config --cflags`" ; \
-+  LIBS="$LIBS `sdl11-config --libs`" ; \
-+    CFLAGS="$CFLAGS `sdl11-config --cflags`" ; \
-+    CXXFLAGS="$CXXFLAGS `sdl11-config --cflags`" ; \
-     HAVE_SDL=1
- else
-   echo "$ac_t""no" 1>&6
-@@ -1588,14 +1588,14 @@
-     LIBS="-L/usr/local/lib -L/usr/X11R6/lib $LIBS"
-     CFLAGS="$CFLAGS -I/usr/X11R6/include" ; \
-     CXXFLAGS="$CXXFLAGS -I/usr/X11R6/include"
--    echo $ac_n "checking for main in -lpng12""... $ac_c" 1>&6
--echo "configure:1593: checking for main in -lpng12" >&5
-+    echo $ac_n "checking for main in -lpng""... $ac_c" 1>&6
-+echo "configure:1593: checking for main in -lpng" >&5
- ac_lib_var=`echo png12'_'main | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
-   echo $ac_n "(cached) $ac_c" 1>&6
- else
-   ac_save_LIBS="$LIBS"
--LIBS="-lpng12  $LIBS"
-+LIBS="-lpng  $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 1601 "configure"
- #include "confdefs.h"
-@@ -1619,13 +1619,13 @@
- fi
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-   echo "$ac_t""yes" 1>&6
--    ac_tr_lib=HAVE_LIB`echo png12 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-+    ac_tr_lib=HAVE_LIB`echo png | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
-   cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- 
--  LIBS="-lpng12 $LIBS"
-+  LIBS="-lpng $LIBS"
- 
- else
-   echo "$ac_t""no" 1>&6
diff -urN /usr/ports/games/shaaft/files/patch-game::main.cpp games/shaaft/files/patch-game::main.cpp
--- /usr/ports/games/shaaft/files/patch-game::main.cpp	Sat Jan  3 06:33:26 2004
+++ games/shaaft/files/patch-game::main.cpp	Thu Jan  1 09:00:00 1970
@@ -1,20 +0,0 @@
---- game/main.cpp.orig	Fri Jan  2 18:26:21 2004
-+++ game/main.cpp	Fri Jan  2 18:26:37 2004
-@@ -12,7 +12,7 @@
- // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details
- //
--#include "SDL.h" //needed for SDL_main
-+#include <SDL11/SDL.h> //needed for SDL_main
- 
- #include <Trace.hpp>
- #include <Constants.hpp>
-@@ -46,7 +46,7 @@
- }
- 
- #include <png.h>
--#include <SDL/SDL_mixer.h>
-+#include <SDL11/SDL_mixer.h>
- void showVersions( void)
- {
-     const SDL_version *vsdl = SDL_Linked_Version();
diff -urN /usr/ports/games/shaaft/files/patch-utilsgl::GLBitmapCollection.cpp games/shaaft/files/patch-utilsgl::GLBitmapCollection.cpp
--- /usr/ports/games/shaaft/files/patch-utilsgl::GLBitmapCollection.cpp	Sat Jan  3 06:33:26 2004
+++ games/shaaft/files/patch-utilsgl::GLBitmapCollection.cpp	Thu Jan  1 09:00:00 1970
@@ -1,11 +0,0 @@
---- utilsgl/GLBitmapCollection.cpp.orig	Fri Jan  2 18:19:34 2004
-+++ utilsgl/GLBitmapCollection.cpp	Fri Jan  2 18:19:49 2004
-@@ -16,7 +16,7 @@
- //
- #include <iostream>
- 
--#include <SDL/SDL_image.h>
-+#include <SDL11/SDL_image.h>
- #include <zrwops.hpp>
- 
- #include <Trace.hpp>
diff -urN /usr/ports/games/shaaft/files/patch-utilsgl::GLTexture.hpp games/shaaft/files/patch-utilsgl::GLTexture.hpp
--- /usr/ports/games/shaaft/files/patch-utilsgl::GLTexture.hpp	Sat Jan  3 06:33:26 2004
+++ games/shaaft/files/patch-utilsgl::GLTexture.hpp	Thu Jan  1 09:00:00 1970
@@ -1,11 +0,0 @@
---- utilsgl/GLTexture.hpp.orig	Fri Jan  2 18:21:50 2004
-+++ utilsgl/GLTexture.hpp	Fri Jan  2 18:22:19 2004
-@@ -16,7 +16,7 @@
- #define _GLTexture_hpp_
- 
- #include <gl++.hpp>
--#include <SDL/SDL_image.h>
-+#include <SDL11/SDL_image.h>
- 
- class GLTexture
- {
diff -urN /usr/ports/games/shaaft/files/patch-utilssdl::PNG.hpp games/shaaft/files/patch-utilssdl::PNG.hpp
--- /usr/ports/games/shaaft/files/patch-utilssdl::PNG.hpp	Sat Jan  3 06:33:26 2004
+++ games/shaaft/files/patch-utilssdl::PNG.hpp	Thu Jan  1 09:00:00 1970
@@ -1,11 +0,0 @@
---- utilssdl/PNG.hpp.orig	Fri Jan  2 18:17:09 2004
-+++ utilssdl/PNG.hpp	Fri Jan  2 18:17:33 2004
-@@ -14,7 +14,7 @@
- //
- #include <string>
- #include <png.h>
--#include "SDL/SDL.h"
-+#include <SDL11/SDL.h>
- 
- using std::string;
- 
>Release-Note:
>Audit-Trail:
>Unformatted:



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