Danger from the Deep (also known as dangerdeep) is a free, open source
World War II German submarine simulator with advanced sound and graphics, multilanguage support, and multiplatform support. This game is planned as tactical simulation and will be as realistic as the developers' time and knowledge of physics allows. ok landry@
This commit is contained in:
parent
6bd9fee484
commit
53579218e3
54
games/dangerdeep/Makefile
Normal file
54
games/dangerdeep/Makefile
Normal file
@ -0,0 +1,54 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2013/06/07 03:41:44 bentley Exp $
|
||||
|
||||
COMMENT = WWII German submarine simulator
|
||||
|
||||
PKGNAME = dangerdeep-0.3.99.3327
|
||||
|
||||
CATEGORIES = games
|
||||
|
||||
HOMEPAGE = http://dangerdeep.sourceforge.net/
|
||||
|
||||
# Code GPLv2+
|
||||
# Graphics CC BY-NC-ND 2.5
|
||||
# Music CC BY-NC-ND 2.0
|
||||
PERMIT_PACKAGE_CDROM = Noncommercial
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
|
||||
WANTLIB += GL GLU SDL SDL_image SDL_mixer bz2 c fftw3f m stdc++
|
||||
WANTLIB += pthread
|
||||
|
||||
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=dangerdeep/}
|
||||
DISTFILES = dangerdeep-0.4.0_pre3327.tar.gz \
|
||||
dangerdeep-data-0.4.0_pre3327.zip
|
||||
|
||||
MODULES = devel/scons
|
||||
LIB_DEPENDS = archivers/bzip2 \
|
||||
devel/sdl-image \
|
||||
devel/sdl-mixer \
|
||||
math/fftw3,float
|
||||
|
||||
MAKE_ENV = X11BASE="${X11BASE}" \
|
||||
CC="${CC}" \
|
||||
CXX="${CXX}" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
CXXFLAGS="${CXXFLAGS}"
|
||||
|
||||
NO_TEST = Yes
|
||||
|
||||
WRKDIST = ${WRKDIR}/dangerdeep-0.4.0_pre3327
|
||||
|
||||
MODSCONS_FLAGS = debug=1 \
|
||||
devel=1 \
|
||||
datadir=${TRUEPREFIX}/share/dangerdeep \
|
||||
installbindir=${PREFIX}/bin
|
||||
|
||||
pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/SConstruct
|
||||
|
||||
do-install:
|
||||
${SETENV} ${MAKE_ENV} ${MODSCONS_BIN} -C ${WRKSRC} \
|
||||
${MODSCONS_ENV} ${MODSCONS_FLAGS} ${INSTALL_TARGET}
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/dangerdeep
|
||||
cp -R ${WRKDIR}/data/* ${PREFIX}/share/dangerdeep
|
||||
|
||||
.include <bsd.port.mk>
|
4
games/dangerdeep/distinfo
Normal file
4
games/dangerdeep/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
SHA256 (dangerdeep-0.4.0_pre3327.tar.gz) = I8wrP+rG+29shhtiwZGFLGL+i5xN5Nco98VoUH1hyNY=
|
||||
SHA256 (dangerdeep-data-0.4.0_pre3327.zip) = Fl211I0H+4IZmtl/piIQkd1vY1fAChzVRtZ/MKAFqZg=
|
||||
SIZE (dangerdeep-0.4.0_pre3327.tar.gz) = 899924
|
||||
SIZE (dangerdeep-data-0.4.0_pre3327.zip) = 198099252
|
55
games/dangerdeep/patches/patch-SConstruct
Normal file
55
games/dangerdeep/patches/patch-SConstruct
Normal file
@ -0,0 +1,55 @@
|
||||
$OpenBSD: patch-SConstruct,v 1.1.1.1 2013/06/07 03:41:44 bentley Exp $
|
||||
--- SConstruct.orig Sat May 8 03:41:20 2010
|
||||
+++ SConstruct Sat Jun 1 11:12:50 2013
|
||||
@@ -207,8 +207,6 @@ else:
|
||||
# Set libpath for real
|
||||
libpath = [archlib, archlib + '/X11', '/usr/X11R6/lib']
|
||||
|
||||
- ccflags += ' -march=' + arch
|
||||
-
|
||||
env.Append(LINKFLAGS = '`pkg-config --libs-only-L x11`')
|
||||
if (debug >= 4):
|
||||
ccflags += ' -g -pg -O3' # profiling
|
||||
@@ -220,7 +218,6 @@ else:
|
||||
env.Append(CPPDEFINES = ['DEBUG'])
|
||||
elif (debug == 1):
|
||||
# same as debug==0 but with DEBUG defined to make logging work (and probably other stuff)
|
||||
- ccflags += ' -g -O2'
|
||||
env.Append(CPPDEFINES = ['DEBUG'])
|
||||
elif (debug == -1):
|
||||
ccflags += ' -g -O3 -mfpmath=sse -mmmx -msse -m3dnow'
|
||||
@@ -258,18 +255,18 @@ else:
|
||||
env.Append(CCFLAGS = ccflags)
|
||||
|
||||
# check for broken libGL, ignore undefined symbols then
|
||||
- if (checkconf == True and os.system('grep glBindProgram /usr/include/GL/gl*.h > /dev/null') == 0):
|
||||
+ if (checkconf == True and os.system('grep glBindProgram ${X11BASE}/include/GL/gl*.h > /dev/null') == 0):
|
||||
gllibdirs = ['/usr/X11R6/lib/', '/usr/lib/', '/usr/local/lib/']
|
||||
gllibdir = ''
|
||||
for i in gllibdirs:
|
||||
- if (os.system('test -f '+i+'libGL.so') == 0):
|
||||
+ if (os.system('test -f '+i+'libGL.so*') == 0):
|
||||
gllibdir = i
|
||||
break
|
||||
if (gllibdir == ''):
|
||||
print 'ERROR: no libGL.so detected!'
|
||||
else:
|
||||
print 'Found GL library "'+gllibdir+'libGL.so"'
|
||||
- if (os.system('grep glBindProgram '+gllibdir+'libGL.so > /dev/null') != 0):
|
||||
+ if (os.system('grep glBindProgram '+gllibdir+'libGL.so* > /dev/null') != 0):
|
||||
print 'GL headers declare glBindProgram, but libGL.so has no such symbol! Ignoring all undefined symbols...'
|
||||
# I'm not sure which option will hopefully fix the problem... so i use both...
|
||||
env.Append(LINKFLAGS = '--unresolved-symbols=ignore-all')
|
||||
@@ -289,6 +286,12 @@ target_dir = '#build' + os.sep + build_dir
|
||||
source_base_dir = 'src'
|
||||
libpath = libpath + [target_dir]
|
||||
env.Append(LIBPATH = libpath)
|
||||
+env.Append(LIBPATH = '${LOCALBASE}/lib')
|
||||
+env.Append(CPPPATH = ['${X11BASE}/include', '${X11BASE}/include/GL'])
|
||||
+env.Replace(CC = os.environ['CC'])
|
||||
+env.Replace(CXX = os.environ['CXX'])
|
||||
+env.Replace(CFLAGS = os.environ['CFLAGS'])
|
||||
+env.Replace(CXXFLAGS = os.environ['CXXFLAGS'])
|
||||
|
||||
################ configure
|
||||
if(checkconf == True):
|
12
games/dangerdeep/patches/patch-src_faulthandler_h
Normal file
12
games/dangerdeep/patches/patch-src_faulthandler_h
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_faulthandler_h,v 1.1.1.1 2013/06/07 03:41:44 bentley Exp $
|
||||
--- src/faulthandler.h.orig Sat Jun 1 11:11:17 2013
|
||||
+++ src/faulthandler.h Sat Jun 1 11:11:50 2013
|
||||
@@ -27,7 +27,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||
Win32 and MacOsX do not suppport backtracking
|
||||
*/
|
||||
|
||||
-#if (defined (__APPLE__) && defined (__MACH__)) || defined MINGW32
|
||||
+#if (defined (__APPLE__) && defined (__MACH__)) || defined MINGW32 || defined(__OpenBSD__)
|
||||
|
||||
#include <stdio.h>
|
||||
|
5
games/dangerdeep/pkg/DESCR
Normal file
5
games/dangerdeep/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
Danger from the Deep (also known as dangerdeep) is a free, open source
|
||||
World War II German submarine simulator with advanced sound and graphics,
|
||||
multilanguage support, and multiplatform support. This game is planned as
|
||||
tactical simulation and will be as realistic as the developers' time and
|
||||
knowledge of physics allows.
|
1245
games/dangerdeep/pkg/PLIST
Normal file
1245
games/dangerdeep/pkg/PLIST
Normal file
File diff suppressed because it is too large
Load Diff
56
games/dangerdeep/pkg/README
Normal file
56
games/dangerdeep/pkg/README
Normal file
@ -0,0 +1,56 @@
|
||||
$OpenBSD: README,v 1.1.1.1 2013/06/07 03:41:45 bentley Exp $
|
||||
|
||||
+-----------------------------------------------------------------------
|
||||
| Running ${FULLPKGNAME} on OpenBSD
|
||||
+-----------------------------------------------------------------------
|
||||
|
||||
Keys
|
||||
====
|
||||
|
||||
displays
|
||||
--------
|
||||
F1 Gauges
|
||||
F2 Periscope
|
||||
F3 UZO
|
||||
F4 Bridge
|
||||
F5 Map
|
||||
F6 Torpedo loading control
|
||||
F7 Damage control
|
||||
F8 Log book
|
||||
F9 Success records
|
||||
F10 Free view
|
||||
|
||||
control
|
||||
-------
|
||||
Cursor keys Rudder left/right/up/down
|
||||
Cursor k.+shift Turn faster
|
||||
Return Center rudders
|
||||
1,2,3,4,5,6 Throttle slow,half,full,flank,stop,reverse
|
||||
SHIFT 1...6 Fire torpedo in tube 1...6 (bow/stern tube number position
|
||||
relation depends on sub type: as first all bow tubes are
|
||||
enumerated, then the stern tubes)
|
||||
Space Select target
|
||||
0 (zero) Scope up/down
|
||||
c Crash dive (to 150 meters)
|
||||
d Snorkel depth
|
||||
f Snorkel up/down
|
||||
h Set heading to view
|
||||
i identify target
|
||||
p Periscope depth
|
||||
s Surface
|
||||
t Fire torpedo (automatic selection of bow/stern tubes)
|
||||
g + SHIFT Man/unman deck gun
|
||||
g Fire deck gun
|
||||
v Set view to heading
|
||||
z Zoom view (glasses, bridge and periscope view)
|
||||
+ - Zoom/unzoom map
|
||||
, . turn view
|
||||
; : turn view fast
|
||||
F11/F12 time scale faster/slower
|
||||
Pause (Un)pause game
|
||||
ESC quit
|
||||
PRINT Take screenshot (uncompressed ppm)
|
||||
|
||||
special
|
||||
-------
|
||||
Numpad 8,4,6,2,1,3 step forward/left/right/backward/up/down in freeview
|
Loading…
Reference in New Issue
Block a user