mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
OpenSSN is a modern submarine simulator which focuses on keeping
control of the submarine simple, letting the player focus on the tactical situation. WWW: http://openssn.sourceforge.net/ PR: ports/157415 Submitted by: Jesse Smith <jessefrgsmith at yahoo.ca>
This commit is contained in:
parent
53aab1f990
commit
d7d0b6f2b9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276427
@ -617,6 +617,7 @@
|
||||
SUBDIR += openpref
|
||||
SUBDIR += opensfx
|
||||
SUBDIR += opensonic
|
||||
SUBDIR += openssn
|
||||
SUBDIR += openttd
|
||||
SUBDIR += openyahtzee
|
||||
SUBDIR += optimax
|
||||
|
20
games/openssn/Makefile
Normal file
20
games/openssn/Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
# New ports collection makefile for: OpenSSN
|
||||
# Date created: 30, May 2011
|
||||
# Whom: Jesse Smith <jessefrgsmith@yahoo.ca>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= openssn
|
||||
PORTVERSION= 0.3
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
MAINTAINER= jessefrgsmith@yahoo.ca
|
||||
COMMENT= A modern submarine simulator
|
||||
|
||||
USE_SDL= sdl gfx image
|
||||
USE_XORG= x11 xau xdmcp xext xmu xpm xxf86vm
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}/src
|
||||
|
||||
.include <bsd.port.mk>
|
2
games/openssn/distinfo
Normal file
2
games/openssn/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (openssn-0.3.tar.gz) = 10a0514a0d99f0a3b7343bba3eb56124c6f992ca030fce4d4ad9a9e018d6be04
|
||||
SIZE (openssn-0.3.tar.gz) = 1669161
|
56
games/openssn/files/patch-sonar.cpp
Normal file
56
games/openssn/files/patch-sonar.cpp
Normal file
@ -0,0 +1,56 @@
|
||||
--- ./sonar.cpp.orig 2011-05-29 21:42:19.000000000 -0300
|
||||
+++ ./sonar.cpp 2011-05-29 21:42:56.000000000 -0300
|
||||
@@ -366,7 +366,7 @@
|
||||
int relative_bearing = bearing_to_target - recipbearing;
|
||||
if(relative_bearing > 150 && relative_bearing < 210) sensordeaf = true;
|
||||
if (!sensordeaf){
|
||||
- noisecolor=SDL_MapRGB(sonarscreen->format, 0,(int) abs((flowandambientnoise - RandInt(40))) , 0);
|
||||
+ noisecolor=SDL_MapRGB(sonarscreen->format, 0,(int) fabs((flowandambientnoise - RandInt(40))) , 0);
|
||||
DPixel(sonarscreen, nbp, 0, noisecolor);
|
||||
}
|
||||
else{
|
||||
@@ -407,7 +407,7 @@
|
||||
int relative_bearing = bearing_to_target - recipbearing;
|
||||
if(relative_bearing > 150 && relative_bearing < 210) sensordeaf = true;
|
||||
if (!sensordeaf){
|
||||
- noisecolor=SDL_MapRGB(sonarscreen->format, 0,(int) abs((flowandambientnoise - RandInt(40))) , 0);
|
||||
+ noisecolor=SDL_MapRGB(sonarscreen->format, 0,(int) fabs((flowandambientnoise - RandInt(40))) , 0);
|
||||
DPixel(sonarscreen, nbp, 70, noisecolor);
|
||||
}
|
||||
else{
|
||||
@@ -448,7 +448,7 @@
|
||||
int relative_bearing = bearing_to_target - recipbearing;
|
||||
if(relative_bearing > 150 && relative_bearing < 210) sensordeaf = true;
|
||||
if (!sensordeaf){
|
||||
- noisecolor=SDL_MapRGB(sonarscreen->format, 0,(int) abs((flowandambientnoise - RandInt(40))) , 0);
|
||||
+ noisecolor=SDL_MapRGB(sonarscreen->format, 0,(int) fabs((flowandambientnoise - RandInt(40))) , 0);
|
||||
DPixel(sonarscreen, nbp, 140, noisecolor);
|
||||
}
|
||||
else{
|
||||
@@ -507,7 +507,7 @@
|
||||
int relative_bearing = bearing_to_target - array_heading;
|
||||
if(relative_bearing > 150 && relative_bearing < 210) sensordeaf = true;
|
||||
if(!sensordeaf){
|
||||
- noisecolor=SDL_MapRGB(towedarrayscreen->format, 0,(int)abs((flowandambientnoise - RandInt(40))), 0);
|
||||
+ noisecolor=SDL_MapRGB(towedarrayscreen->format, 0,(int)fabs((flowandambientnoise - RandInt(40))), 0);
|
||||
DPixel(towedarrayscreen, nbp, 0, noisecolor);
|
||||
}
|
||||
else{
|
||||
@@ -549,7 +549,7 @@
|
||||
int relative_bearing = bearing_to_target - array_heading;
|
||||
if(relative_bearing > 150 && relative_bearing < 210) sensordeaf = true;
|
||||
if(!sensordeaf){
|
||||
- noisecolor=SDL_MapRGB(towedarrayscreen->format, 0,(int)abs((flowandambientnoise - RandInt(40))), 0);
|
||||
+ noisecolor=SDL_MapRGB(towedarrayscreen->format, 0,(int)fabs((flowandambientnoise - RandInt(40))), 0);
|
||||
DPixel(towedarrayscreen, nbp, 70, noisecolor);
|
||||
}
|
||||
else{
|
||||
@@ -589,7 +589,7 @@
|
||||
int relative_bearing = bearing_to_target - array_heading;
|
||||
if(relative_bearing > 150 && relative_bearing < 210) sensordeaf = true;
|
||||
if(!sensordeaf){
|
||||
- noisecolor=SDL_MapRGB(towedarrayscreen->format, 0,(int)abs((flowandambientnoise - RandInt(40))), 0);
|
||||
+ noisecolor=SDL_MapRGB(towedarrayscreen->format, 0,(int)fabs((flowandambientnoise - RandInt(40))), 0);
|
||||
DPixel(towedarrayscreen, nbp, 140, noisecolor);
|
||||
}
|
||||
else{
|
5
games/openssn/pkg-descr
Normal file
5
games/openssn/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
OpenSSN is a modern submarine simulator which focuses on keeping
|
||||
control of the submarine simple, letting the player focus on the
|
||||
tactical situation.
|
||||
|
||||
WWW: http://openssn.sourceforge.net/
|
169
games/openssn/pkg-plist
Normal file
169
games/openssn/pkg-plist
Normal file
@ -0,0 +1,169 @@
|
||||
bin/openssn
|
||||
share/games/openssn/data/font.dat
|
||||
share/games/openssn/data/largefont.dat
|
||||
share/games/openssn/data/ships0.dat
|
||||
share/games/openssn/images/A13off.png
|
||||
share/games/openssn/images/A13on.png
|
||||
share/games/openssn/images/A23off.png
|
||||
share/games/openssn/images/A23on.png
|
||||
share/games/openssn/images/AFLKoff.png
|
||||
share/games/openssn/images/AFLKon.png
|
||||
share/games/openssn/images/AFULLoff.png
|
||||
share/games/openssn/images/AFULLon.png
|
||||
share/games/openssn/images/ASTDoff.png
|
||||
share/games/openssn/images/ASTDon.png
|
||||
share/games/openssn/images/ClearControl.png
|
||||
share/games/openssn/images/ClearEsm.png
|
||||
share/games/openssn/images/ClearEsm2.png
|
||||
share/games/openssn/images/ClearRadar.png
|
||||
share/games/openssn/images/ClearRadar2.png
|
||||
share/games/openssn/images/Constructionscreen.png
|
||||
share/games/openssn/images/ControlScreen.png
|
||||
share/games/openssn/images/ESMScreen.png
|
||||
share/games/openssn/images/Mapscreen.png
|
||||
share/games/openssn/images/RadarScreen.png
|
||||
share/games/openssn/images/STOPoff.png
|
||||
share/games/openssn/images/STOPon.png
|
||||
share/games/openssn/images/Sonarscreen.png
|
||||
share/games/openssn/images/arial_small_12.png
|
||||
share/games/openssn/images/assigntrackeroff.png
|
||||
share/games/openssn/images/assigntrackeron.png
|
||||
share/games/openssn/images/blip.png
|
||||
share/games/openssn/images/centerbuttondown.png
|
||||
share/games/openssn/images/centerbuttonup.png
|
||||
share/games/openssn/images/depthdownoff.png
|
||||
share/games/openssn/images/depthdownon.png
|
||||
share/games/openssn/images/depthupoff.png
|
||||
share/games/openssn/images/depthupon.png
|
||||
share/games/openssn/images/downbuttondown.png
|
||||
share/games/openssn/images/downbuttonup.png
|
||||
share/games/openssn/images/emptystationtile.png
|
||||
share/games/openssn/images/emptytile.png
|
||||
share/games/openssn/images/esmdown.png
|
||||
share/games/openssn/images/esmup.png
|
||||
share/games/openssn/images/extendtb16off.png
|
||||
share/games/openssn/images/extendtb16on.png
|
||||
share/games/openssn/images/font.dat
|
||||
share/games/openssn/images/font.png
|
||||
share/games/openssn/images/font2.png
|
||||
share/games/openssn/images/font3.png
|
||||
share/games/openssn/images/largefont.dat
|
||||
share/games/openssn/images/largefont.png
|
||||
share/games/openssn/images/leftbuttondown.png
|
||||
share/games/openssn/images/leftbuttonup.png
|
||||
share/games/openssn/images/lo32-app-linuxssn.png
|
||||
share/games/openssn/images/lowercrtoff.png
|
||||
share/games/openssn/images/lowercrton.png
|
||||
share/games/openssn/images/loweresmoff.png
|
||||
share/games/openssn/images/mapdown.png
|
||||
share/games/openssn/images/mapup.png
|
||||
share/games/openssn/images/mastdownoff.png
|
||||
share/games/openssn/images/mastdownon.png
|
||||
share/games/openssn/images/mastupoff.png
|
||||
share/games/openssn/images/mastupon.png
|
||||
share/games/openssn/images/minusbuttondown.png
|
||||
share/games/openssn/images/minusbuttonup.png
|
||||
share/games/openssn/images/nc_scale.png
|
||||
share/games/openssn/images/noisemaker.png
|
||||
share/games/openssn/images/plusbuttondown.png
|
||||
share/games/openssn/images/plusbuttonup.png
|
||||
share/games/openssn/images/quitbuttondown.png
|
||||
share/games/openssn/images/quitbuttonup.png
|
||||
share/games/openssn/images/radardown.png
|
||||
share/games/openssn/images/radarup.png
|
||||
share/games/openssn/images/range10off.png
|
||||
share/games/openssn/images/range10on.png
|
||||
share/games/openssn/images/range20off.png
|
||||
share/games/openssn/images/range20on.png
|
||||
share/games/openssn/images/range30off.png
|
||||
share/games/openssn/images/range30on.png
|
||||
share/games/openssn/images/range40off.png
|
||||
share/games/openssn/images/range40on.png
|
||||
share/games/openssn/images/range50off.png
|
||||
share/games/openssn/images/range50on.png
|
||||
share/games/openssn/images/range60off.png
|
||||
share/games/openssn/images/range60on.png
|
||||
share/games/openssn/images/rel_true.png
|
||||
share/games/openssn/images/retracttb16off.png
|
||||
share/games/openssn/images/retracttb16on.png
|
||||
share/games/openssn/images/rightbuttondown.png
|
||||
share/games/openssn/images/rightbuttonup.png
|
||||
share/games/openssn/images/ring0off.png
|
||||
share/games/openssn/images/ring0on.png
|
||||
share/games/openssn/images/ring10off.png
|
||||
share/games/openssn/images/ring10on.png
|
||||
share/games/openssn/images/ring15off.png
|
||||
share/games/openssn/images/ring15on.png
|
||||
share/games/openssn/images/ring20off.png
|
||||
share/games/openssn/images/ring20on.png
|
||||
share/games/openssn/images/ring25off.png
|
||||
share/games/openssn/images/ring25on.png
|
||||
share/games/openssn/images/ring5off.png
|
||||
share/games/openssn/images/ring5on.png
|
||||
share/games/openssn/images/sc_scale.png
|
||||
share/games/openssn/images/shipcontroldown.png
|
||||
share/games/openssn/images/shipcontrolup.png
|
||||
share/games/openssn/images/sonardown.png
|
||||
share/games/openssn/images/sonarup.png
|
||||
share/games/openssn/images/sphericaltowed.png
|
||||
share/games/openssn/images/styllus.png
|
||||
share/games/openssn/images/sweep0.png
|
||||
share/games/openssn/images/sweep1.png
|
||||
share/games/openssn/images/sweep10.png
|
||||
share/games/openssn/images/sweep11.png
|
||||
share/games/openssn/images/sweep12.png
|
||||
share/games/openssn/images/sweep13.png
|
||||
share/games/openssn/images/sweep14.png
|
||||
share/games/openssn/images/sweep15.png
|
||||
share/games/openssn/images/sweep16.png
|
||||
share/games/openssn/images/sweep17.png
|
||||
share/games/openssn/images/sweep18.png
|
||||
share/games/openssn/images/sweep19.png
|
||||
share/games/openssn/images/sweep2.png
|
||||
share/games/openssn/images/sweep20.png
|
||||
share/games/openssn/images/sweep21.png
|
||||
share/games/openssn/images/sweep22.png
|
||||
share/games/openssn/images/sweep23.png
|
||||
share/games/openssn/images/sweep24.png
|
||||
share/games/openssn/images/sweep25.png
|
||||
share/games/openssn/images/sweep26.png
|
||||
share/games/openssn/images/sweep27.png
|
||||
share/games/openssn/images/sweep28.png
|
||||
share/games/openssn/images/sweep29.png
|
||||
share/games/openssn/images/sweep3.png
|
||||
share/games/openssn/images/sweep30.png
|
||||
share/games/openssn/images/sweep31.png
|
||||
share/games/openssn/images/sweep32.png
|
||||
share/games/openssn/images/sweep33.png
|
||||
share/games/openssn/images/sweep34.png
|
||||
share/games/openssn/images/sweep35.png
|
||||
share/games/openssn/images/sweep4.png
|
||||
share/games/openssn/images/sweep5.png
|
||||
share/games/openssn/images/sweep6.png
|
||||
share/games/openssn/images/sweep7.png
|
||||
share/games/openssn/images/sweep8.png
|
||||
share/games/openssn/images/sweep9.png
|
||||
share/games/openssn/images/tb16winchoff.png
|
||||
share/games/openssn/images/tb16winchon.png
|
||||
share/games/openssn/images/tittle.png
|
||||
share/games/openssn/images/tmadown.png
|
||||
share/games/openssn/images/tmaup.png
|
||||
share/games/openssn/images/torpedo.png
|
||||
share/games/openssn/images/towedspherical.png
|
||||
share/games/openssn/images/track1.png
|
||||
share/games/openssn/images/track1assigned.png
|
||||
share/games/openssn/images/track2.png
|
||||
share/games/openssn/images/track2assigned.png
|
||||
share/games/openssn/images/track3.png
|
||||
share/games/openssn/images/track3assigned.png
|
||||
share/games/openssn/images/track4.png
|
||||
share/games/openssn/images/track4assigned.png
|
||||
share/games/openssn/images/true_rel.png
|
||||
share/games/openssn/images/upbuttondown.png
|
||||
share/games/openssn/images/upbuttonup.png
|
||||
share/games/openssn/images/uppercrtoff.png
|
||||
share/games/openssn/images/uppercrton.png
|
||||
@dirrm share/games/openssn/images
|
||||
@dirrm share/games/openssn/data
|
||||
@dirrm share/games/openssn
|
||||
@dirrm share/games
|
Loading…
Reference in New Issue
Block a user