Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Apr 2006 22:59:57 GMT
From:      Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/95767: [MAINTAINER] games/dangerdeep: update to 0.1.1
Message-ID:  <200604142259.k3EMxvw1070724@www.freebsd.org>
Resent-Message-ID: <200604142300.k3EN0c12089987@freefall.freebsd.org>

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

>Number:         95767
>Category:       ports
>Synopsis:       [MAINTAINER] games/dangerdeep: update to 0.1.1
>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:   Fri Apr 14 23:00:33 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jose Alonso Cardenas Marquez
>Release:        FreeBSD 6.1-RC i386
>Organization:
BSDPeru (http://www.bsd.org.pe)
>Environment:
FreeBSD HellFire.BSD.org.pe 6.1-RC FreeBSD 6.1-RC #0: Sun Apr  9 02:54:32 PET
>Description:
- Update to 0.1.1

Removed file(s):
- files/patch-src_coastmap.cpp

New Changes in dangerdeep

- new SSE intrinsic code for x86/64 and x86/32
- new sky rendering
- MSVC compile fixes
- new font and some gui changes
- display per torpedo info
- sensor detection code once per second, not once per frame, improves performance
- convoy fixes (position simulation)
- added mission editor
- added Kennebac class tanker
- fixed widget bugs
- more data per model (country etc.)
- fixed some models
- new panel (smaller), new message display (nicer)
- fixes for popups
- new popup: rangefinder card
- shader fixes
- new vessel preview
- added doxygen documentation
- improved model format (with relations)
- fixes for compatibility with newer drivers and OpenGL2.0
- improved water rendering (mirror distorsion effect)
- TDC improvements
- Parallax angle computation and display
- new faulthandler for debugging segfaults
- load/save format changed to xml based data
- better perlin noise generation
- new sounds and music
- new background images for menues


>How-To-Repeat:

>Fix:
--- dangerdeep-0.1.1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/games/dangerdeep/Makefile /usr/ports/games/dangerdeep-new/Makefile
--- /usr/ports/games/dangerdeep/Makefile	Sat Oct 29 09:17:01 2005
+++ /usr/ports/games/dangerdeep-new/Makefile	Fri Apr 14 17:42:36 2006
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	dangerdeep
-PORTVERSION=	0.1.0
+PORTVERSION=	0.1.1
 CATEGORIES=	games
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	dangerdeep
@@ -15,18 +15,19 @@
 COMMENT=	Open source World War II German submarine simulation
 
 BUILD_DEPENDS=	scons:${PORTSDIR}/devel/scons
-LIB_DEPENDS=	fftw3.3:${PORTSDIR}/math/fftw3
+LIB_DEPENDS=	fftw3.3:${PORTSDIR}/math/fftw3 \
+		execinfo.1:${PORTSDIR}/devel/libexecinfo
 
 USE_X_PREFIX=	yes
 USE_GL=		yes
 USE_SDL=	sdl mixer image net
-USE_REINPLACE=	yes
 
 MAKE_ENV=	CC="${CC}" CXX="${CXX}"
 SCONS_ARGS=	installbindir=${PREFIX}/bin installdatadir=${DATADIR}
 
 PLIST=		${WRKDIR}/pkg-plist
-PLIST_FILES=	bin/dangerdeep
+PLIST_FILES=	bin/dangerdeep bin/crosssection bin/damagemodel \
+		bin/oceantest bin/portal bin/viewmodel
 PLIST_DIRS=	%%DATADIR%%
 
 MAN6=		dangerdeep.6
@@ -56,7 +57,9 @@
 	${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/build/freebsd/dangerdeep ${PREFIX}/bin
+	@cd ${WRKSRC}/build/freebsd && \
+		${INSTALL_PROGRAM} dangerdeep crosssection damagemodel oceantest \
+			portal viewmodel ${PREFIX}/bin
 
 	cd ${WRKSRC}/data && \
 	${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
diff -ruN --exclude=CVS /usr/ports/games/dangerdeep/distinfo /usr/ports/games/dangerdeep-new/distinfo
--- /usr/ports/games/dangerdeep/distinfo	Wed Jan 25 17:56:01 2006
+++ /usr/ports/games/dangerdeep-new/distinfo	Fri Apr 14 13:57:54 2006
@@ -1,3 +1,3 @@
-MD5 (dangerdeep-0.1.0.tar.gz) = 7e95d871b929a5e322d0a6bde37e7151
-SHA256 (dangerdeep-0.1.0.tar.gz) = 6b987559dc637e2d77a9e0f16d60fb1d58db5513c459b395a74942e7b3b31982
-SIZE (dangerdeep-0.1.0.tar.gz) = 12429406
+MD5 (dangerdeep-0.1.1.tar.gz) = 7de20b4594c0fee8d3c1a281f686f943
+SHA256 (dangerdeep-0.1.1.tar.gz) = de6334c88bac6ce1463e48444e550899a61ea85cecf8929a160d07e28f502a20
+SIZE (dangerdeep-0.1.1.tar.gz) = 23831169
diff -ruN --exclude=CVS /usr/ports/games/dangerdeep/files/patch-SConstruct /usr/ports/games/dangerdeep-new/files/patch-SConstruct
--- /usr/ports/games/dangerdeep/files/patch-SConstruct	Sat Oct 29 09:17:01 2005
+++ /usr/ports/games/dangerdeep-new/files/patch-SConstruct	Fri Apr 14 16:40:44 2006
@@ -1,72 +1,10 @@
---- SConstruct.orig	Mon Oct 17 20:45:59 2005
-+++ SConstruct	Sat Oct 29 14:30:06 2005
-@@ -2,6 +2,11 @@
- import os
- import sys
- 
-+################ FreeBSD port variables
-+LOCALBASE = os.environ['LOCALBASE']
-+X11BASE = os.environ['X11BASE']
-+SDL_CONFIG = os.environ['SDL_CONFIG']
-+
- ################ global config values
- version = '0.1.0'
- if ARGUMENTS.get('version', 0):
-@@ -67,10 +72,12 @@
- else:
- 	print "Compiling for Unix/Posix/Linux Environment"
- 	env = Environment(ENV = os.environ)
--	env.Append(CPPPATH = ['/usr/include/SDL', '/usr/include/GL'])
--	libpath = ['/usr/X11R6/lib']
-+	env.Replace(CC = os.environ['CC'])
-+	env.Replace(CXX = os.environ['CXX'])
-+	env.Append(CPPPATH = [LOCALBASE + '/include', LOCALBASE + '/include/SDL11', X11BASE + '/include', X11BASE + '/include/GL'])
-+	libpath = [LOCALBASE + '/lib', X11BASE + '/lib']
+--- SConstruct	Fri Apr 14 05:13:03 2006
++++ SConstruct	Fri Apr 14 16:18:12 2006
+@@ -81,6 +81,7 @@
+ 	libpath = [LOCALBASE + '/lib', X11BASE + '/lib'] 
  	gllibs = ['GL', 'GLU']
--	sdllibs = ['SDL', 'SDL_image']
-+	sdllibs = ['SDL_image']
- 	ccflags = '-Wall `sdl-config --cflags`'
- 	if (debug >= 3):
- 		ccflags += ' -g -pg -O3'	# profiling
-@@ -92,31 +99,28 @@
- 	if (cvedit == 1):
- 		env.Append(CPPDEFINES = ['CVEDIT'])
- 	# check for mmx/sse support
--	cpuinfof = open('/proc/cpuinfo', 'r')
-+	cpuinfof = os.popen('sysctl -n hw.instruction_sse')
+ 	sdllibs = ['SDL_image']
++	extralibs = ['execinfo']
+ 	cpuinfof = os.popen('sysctl -n hw.instruction_sse')
  	cpuinfol = cpuinfof.readlines()
  	mmxsupported = False
- 	ssesupported = False
- 	for i in cpuinfol:
--		if i.startswith('flags'):
--			m = Split(i)
--			for j in m:
--				if j == 'mmx':
--					mmxsupported = True
--				elif j == 'sse':
--					ssesupported = True
--			break
-+		if i == '1\n':
-+			mmxsupported = True
-+			ssesupported = True
- 	if (usex86sse == 0) and (mmxsupported and ssesupported):
- 		usex86sse = 1
- 	if usex86sse >= 1:
- 		env.Append(CPPDEFINES = ['USE_SSE'])
- 		osspecificsrc += ['water_sse.cpp']
- 		print 'Using x86 SSE/MMX optimizations.'
--	env.Append(CCFLAGS = ccflags)
-+	env.Replace(CCFLAGS = os.environ['CFLAGS'])
-+	env.Replace(CXXFLAGS = os.environ['CXXFLAGS'] + ' `' + SDL_CONFIG + ' --cflags`')
-+	env.Append(LINKFLAGS = '`' + SDL_CONFIG + ' --libs`')
- 	datadir = installdatadir
--	build_dir = 'linux'
-+	build_dir = 'freebsd'
- 	# check for broken libGL, ignore undefined symbols then
--	if (os.system('grep glBindProgram /usr/include/GL/gl*.h > /dev/null') == 0):
--		gllibdirs = ['/usr/X11R6/lib/', '/usr/lib/', '/usr/local/lib/']
-+	if (os.system('grep glBindProgram ' + X11BASE + '/include/GL/gl*.h > /dev/null') == 0):
-+		gllibdirs = [X11BASE + '/lib/', '/usr/lib/', LOCALBASE + '/lib/']
- 		gllibdir = ''
- 		for i in gllibdirs:
- 			if (os.system('test -f '+i+'libGL.so') == 0):
diff -ruN --exclude=CVS /usr/ports/games/dangerdeep/files/patch-src_coastmap.cpp /usr/ports/games/dangerdeep-new/files/patch-src_coastmap.cpp
--- /usr/ports/games/dangerdeep/files/patch-src_coastmap.cpp	Sat Oct 29 00:41:06 2005
+++ /usr/ports/games/dangerdeep-new/files/patch-src_coastmap.cpp	Wed Dec 31 19:00:00 1969
@@ -1,11 +0,0 @@
---- src/coastmap.cpp	Mon Jul 18 16:19:30 2005
-+++ src/coastmap.cpp	Fri Oct 28 15:30:30 2005
-@@ -1316,7 +1316,7 @@
- 	maph = surf->h;
- 	pixelw_real = realwidth/mapw;
- 	realheight = maph*realwidth/mapw;
--	pixels_per_seg = 1 << unsigned(ceil(log2(60000/pixelw_real)));
-+	pixels_per_seg = 1 << unsigned(ceil(log(60000/pixelw_real)));
- 	segsx = mapw/pixels_per_seg;
- 	segsy = maph/pixels_per_seg;
- 	segw_real = pixelw_real * pixels_per_seg;
--- dangerdeep-0.1.1.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?200604142259.k3EMxvw1070724>