diff --git a/games-sports/speed-dreams/additional-files/speed_dreams.rdef.in b/games-sports/speed-dreams/additional-files/speed_dreams.rdef.in new file mode 100644 index 000000000..362d9857d --- /dev/null +++ b/games-sports/speed-dreams/additional-files/speed_dreams.rdef.in @@ -0,0 +1,87 @@ +resource app_flags B_MULTIPLE_LAUNCH; + +resource app_version { + major = @MAJOR@, + middle = @MIDDLE@, + minor = @MINOR@, + + variety = B_APPV_FINAL, + internal = 0, + + short_info = "Speed Dreams", + long_info = "@LONG_INFO@" +}; + +resource app_signature "@APP_SIGNATURE@"; + +resource vector_icon { + $"6E636966050200060340B0A7B79AA7B462994051754CD2834E246200D85F5C83" + $"FF2A2AFFC8C000050005FF020006033C2409B59571340B513BA74248F4A24C79" + $"8800D85F5C83FF2A2AFFC8C000020006023AB2490000000000003A767C4AFA8B" + $"4B1ACF00008000FFFFFF000C021AB490BB78B490BB78B490BC20B490BD6FB490" + $"BCC726BD6FB70CBD6FB638BD6FB79BBD6FB8B8BD6FB829BD6FB9FABD6FBC7FBD" + $"6FBB3DBD6FBC9BBD6FBCD2BD6FBCB6BD6FBCE8BD6FBD14BD6FBCFEBD6FBEC3BD" + $"8EBEF8C043BF77BE99BEB8C112BE39C2B0BE79C1E1BDB9C45BBA53C544BC41C5" + $"44BA40C544BA19C54432C544BACCC2FBBC33BE6ABB80C0B3BAF0BE6AB86CBE6A" + $"B9AEBE6AB79CC10FB5FCC658B6CCC3B3B5DEC6C9B702C737B639C737B85AC737" + $"BB0BC737B9B3C737BEE7C737C215C27EC147C521C249C1CFC2B3C072C27EC121" + $"C389BDB2BE99BB7CC275BB7CBE2BBB7CBD4DBB7CBDBCBB7CBCD2BB7CBBDCBB7C" + $"BC57BB7CBBD4BB7CBBC3BB7CBBCBBB7CBBC3BB7BBBC3BB78BBC3BB79B95DBB78" + $"B490BB78B6F7BB78B490BB78B490BB78B490BB78B490BB78B490BB78B490BB78" + $"B490BB78021AB490BB78B490BB78B490BC20B490BD6FB490BCC726BD6FB70CBD" + $"6FB638BD6FB79BBD6FB8B8BD6FB829BD6FB9FABD6FBC7FBD6FBB3DBD6FBC9BBD" + $"6FBCD2BD6FBCB6BD6FBCE8BD6FBD14BD6FBCFEBD6FBEC3BD8EBEF8C043BF77BE" + $"99BEB8C112BE39C2B0BE79C1E1BDB9C45BBA53C544BC41C544BA40C544BA19C5" + $"4432C544BACCC2FBBC33BE6ABB80C0B3BAF0BE6AB86CBE6AB9AEBE6AB79CC10F" + $"B5FCC658B6CCC3B3B5DEC6C9B702C737B639C737B85AC737BB0BC737B9B3C737" + $"BEE7C737C215C27EC147C521C249C1CFC2B3C072C27EC121C389BDB2BE99BB7C" + $"C275BB7CBE2BBB7CBD4DBB7CBDBCBB7CBCD2BB7CBBDCBB7CBC57BB7CBBD4BB7C" + $"BBC3BB7CBBCBBB7CBBC3BB7BBBC3BB78BBC3BB79B95DBB78B490BB78B6F7BB78" + $"B490BB78B490BB78B490BB78B490BB78B490BB78B490BB78B490BB780214C6DF" + $"B849C6DFB849C53CB849C3A6BA4BC404B919C2F4BC87C667BD81C6D5BC1FC63D" + $"BE0BC50FBE4BC5BCBE48C4CCBE4BC448BE4BC48ABE4BC20CBE4BBD93BE4BBFCF" + $"BE4BBA93BE4BB494BE4BB793BE4BB494BEA7B494BF60B494BF04B494BF60BD8D" + $"BF60BD22BF60BFC3BF60C42FBF60C1F9BF60C44CBF60C56BBF60C54EBF60C70D" + $"BF62C8AABD6CC84DBE9EC961BB1AC5EDBA3DC57FBB9AC60DB9CEC6E6B973C670" + $"B975C753B972C7AEB9CEC78CB9B3C860BA54C9D0B97EC956BA17CA11B92DC7A1" + $"B849C954B845C760B849C6DFB849C720B849C6DFB849C6DFB849C6DFB849C6DF" + $"B849C6DFB849C6DFB849C6DFB8490214C6DFB849C6DFB849C53CB849C3A6BA4B" + $"C404B919C2F4BC87C667BD81C6D5BC1FC63DBE0BC50FBE4BC5BCBE48C4CCBE4B" + $"C448BE4BC48ABE4BC20CBE4BBD93BE4BBFCFBE4BBA93BE4BB494BE4BB793BE4B" + $"B494BEA7B494BF60B494BF04B494BF60BD8DBF60BD22BF60BFC3BF60C42FBF60" + $"C1F9BF60C44CBF60C56BBF60C54EBF60C70DBF62C8AABD6CC84DBE9EC961BB1A" + $"C5EDBA3DC57FBB9AC60DB9CEC6E6B973C670B975C753B972C7AEB9CEC78CB9B3" + $"C860BA54C9D0B97EC956BA17CA11B92DC7A1B849C954B845C760B849C6DFB849" + $"C720B849C6DFB849C6DFB849C6DFB849C6DFB849C6DFB849C6DFB849C6DFB849" + $"0A03C9A8BF60C9A8BF60C9A8BF60000FC401BF60C401BF60C45DBF60C514BF60" + $"C4B8BF60C531BF60C56ABF60C54EBF60C70DBF62C8AABD6CC84DBE9EC961BB1A" + $"C5EDBA3DC57FBB9AC60DB9CEC6E6B973C670B975C753B972C7AEB9CEC78BB9B3" + $"C860BA54C9D0B97EC956BA17CA11B92DC7A1B849C953B845C760B849C6DFB849" + $"C720B849C6DFB849C6DFB849C6DFB849C53CB849C3A6BA4BC404B919C2F4BC87" + $"C667BD81C6D5BC1FC63DBE0BC50FBE4BC5BCBE48C4BEBE4BC41DBE4BC46EBE4B" + $"C41DBE4B0208BD1DBE4BBD1DBE4BBB5FBE4BB7E2BE4BB9A1BE4BB6C8BE4BB494" + $"BE4BB5AEBE4BB494BEA7B494BF60B494BF04B5A2BF60B7BDBF60B6B0BF60B9BA" + $"BF60BDB4BF60BBB7BF60BDEABECDBD1DBE4BBD8CBE3FBD1DBE4BBD1DBE4BBD1D" + $"BE4BBD1DBE4B0A03C377C730C377C730C377C730021C24BB8024BB8024BC2624" + $"BD7324BCCDB56CBD73B714BD73B640BD73B7A3BD73B8C0BD73B831BD73BA02BD" + $"73BC87BD73BB45BD73BCA3BD73BCDABD73BCBFBD73BCF0BD73BD1DBD73BD07BD" + $"73BECBBD93BF00C045BF80BE9CBEC1C113BE42C2AEBE81C1E0BDC1C457BA5BC5" + $"3FBC49C53FBA48C53FBA21C53FBA34C53FBAA3C39EBBA8C05CBB25C1FDBA65C0" + $"5CB7E0C05CB923C05CB741C259B603C652B6A2C456B5E5C6C2B709C730B640C7" + $"30B862C730BB13C730B9BAC730BEEFC730C21EC27CC14FC51DC252C1CFC2BCC0" + $"73C287C121C392BDB7BEA2BB83C27EBB83BE33BB83BD56BB83BDC4BB83BCDABB" + $"83BBE4BB83BC5FBB83BBDCBB83BBCBBB83BBD3BB83BBCBBB82BBCBBB80BBCBBB" + $"81B965BB8024BB80B6FEBB8024BB80B497BB8024BB8024BB8024BB8024BB8024" + $"BB8024BB8024BB8024BB8024BB8024BB8024BB800609FFFF01C459C2AAC459C2" + $"AAC337C31B43C3FEC214C38DC0C4C41043C36BC0C4C37DC1D8C314C3A4C266C2" + $"BEC2BDC2BEC21043C164C1D8C1BAC0C4C15243C0D1C0C4C0BFC214C141C459C2" + $"21C337C1B1C484C231C459C2AAC484C299C459C2AAC2AA0609FFFF01C70FC2AA" + $"C70FC2AAC5EDC31BC3A9C3FEC4CBC38DC37BC410C3A9C36BC37BC37DC48FC314" + $"C65AC266C575C2BDC575C210C3A9C164C48FC1BAC37AC152C3A9C0D1C37BC0BF" + $"C4CBC141C70FC221C5EDC1B1C73BC231C70FC2AAC73BC299C70FC2AAC2AA0609" + $"FFFF01C9B7C2AAC9B7C2AAC895C31BC651C3FEC773C38DC622C410C651C36BC6" + $"22C37DC736C314C902C266C81CC2BDC81CC210C651C164C736C1BAC622C152C6" + $"51C0D1C622C0BFC773C141C9B7C221C895C1B1C9E2C231C9B7C2AAC9E2C299C9" + $"B7C2AAC2AA090A000100000A0101011001178522040A020102000A0101031001" + $"178522040A0203040506000A03020708000A040109000A04010A000A04010B00" +}; diff --git a/games-sports/speed-dreams/patches/speed_dreams-2.2.3.patchset b/games-sports/speed-dreams/patches/speed_dreams-2.2.3.patchset new file mode 100644 index 000000000..75452b21f --- /dev/null +++ b/games-sports/speed-dreams/patches/speed_dreams-2.2.3.patchset @@ -0,0 +1,532 @@ +From b5c7067d60bb383ffd40ffb0a6b9487261d219a2 Mon Sep 17 00:00:00 2001 +From: beaglejoe +Date: Sun, 8 Aug 2021 11:07:37 -0500 +Subject: Fix for building base only + + +diff --git a/data/config/raceman/CMakeLists.txt b/data/config/raceman/CMakeLists.txt +index 02a18e2..4b7216f 100644 +--- a/data/config/raceman/CMakeLists.txt ++++ b/data/config/raceman/CMakeLists.txt +@@ -9,7 +9,7 @@ SET(_RACE_FILES practice.xml quickrace.xml + networkrace.xml championship-mpa1.xml championship-mpa11.xml career-36GP.xml career-supercars.xml + career_36GP.xmls career_MPA1.xmls + career_supercars.xmls career_ls1.xmls) +- ++FILE(GLOB _RACE_FILES *.xml ) + SD_INSTALL_FILES(DATA config/raceman USER config/raceman FILES ${_RACE_FILES}) + + SET(_EXTRA_FILES extra/skill.xml) +diff --git a/data/config/sound.xml b/data/config/sound.xml +index 15606e3..d69190e 100644 +--- a/data/config/sound.xml ++++ b/data/config/sound.xml +@@ -20,8 +20,8 @@ + + +
+- ++ + + +
+- +\ No newline at end of file ++ +-- +2.30.2 + + +From 9290f0ba4839a95e8fc8e866a3e62002f567bc78 Mon Sep 17 00:00:00 2001 +From: beaglejoe +Date: Wed, 8 Sep 2021 10:12:59 -0500 +Subject: Set throttle and brake to mouse + + +diff --git a/data/drivers/human/preferences.xml b/data/drivers/human/preferences.xml +index 21bf72f..0a4404b 100644 +--- a/data/drivers/human/preferences.xml ++++ b/data/drivers/human/preferences.xml +@@ -1,37 +1,19 @@ + +- ++ + +- +- +- +- +- +- +- +- + ++ +
+- +- + +- +
+- +
+- + + + +- ++ + + +- ++ + + + +@@ -40,11 +22,11 @@ + + + +- ++ + + + +- ++ + + + +@@ -57,18 +39,60 @@ + + + +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +
+ +
+ +
+ +- +
+- ++ + + + +@@ -82,39 +106,32 @@ + + + +- + +- +- ++ + +- ++ + +- + +- ++ + +- + +- ++ + +- ++ + +- + +- ++ + + + + +- + +- ++ + + + +
+ +- +
+ + +@@ -128,106 +145,84 @@ + + + +- + + +- +- ++ + + + + +- + + + + +- + + + +- ++ + +- + + + +- ++ + +- + + + +- + + + + +- + + + + + + +- +-
++ + +- +
+- +- +- +- +- ++ ++ ++ ++ + +- +- +- ++ ++ + +- +- +- +- +- +- +- ++ ++ ++ ++ + +- +- +- +- ++ ++ ++ ++ + +
+ +- +
+- +- +- +- +- ++ ++ ++ ++ + + +- +- ++ + +- ++ + +- +- +- ++ + +- + +- ++ + + + + +
+ +- +
+ + +@@ -243,24 +238,23 @@ + + + +- +- ++ ++ + + +- +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ ++ + + + + +
+- +- ++ +
+
+
+@@ -294,7 +288,5 @@ +
+ +
+- +- +- + ++ +-- +2.30.2 + + +From be3646a2d97c21397c58f83830403152dd8a8f6b Mon Sep 17 00:00:00 2001 +From: beaglejoe +Date: Sat, 11 Sep 2021 17:46:05 -0500 +Subject: Fix for SDL2 + + +diff --git a/src/libs/tgfclient/glfeatures.cpp b/src/libs/tgfclient/glfeatures.cpp +index 459c165..d140b1e 100644 +--- a/src/libs/tgfclient/glfeatures.cpp ++++ b/src/libs/tgfclient/glfeatures.cpp +@@ -241,7 +241,7 @@ bool GfglFeatures::detectBestSupportSDL2(int& nWidth, int& nHeight, int& nDepth, + SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); + + SDL_Window* testWindow = NULL; +- SDL_Renderer* renderer = NULL; ++// SDL_Renderer* renderer = NULL; + SDL_Surface* pWinSurface = 0; + + int nAlphaChannel = bAlpha ? 1 : 0; +@@ -295,9 +295,9 @@ bool GfglFeatures::detectBestSupportSDL2(int& nWidth, int& nHeight, int& nDepth, + //SDL_SetWindowSize(GfuiWindow, nWidth, nHeight); + if(testWindow) + { +- renderer = SDL_CreateRenderer(testWindow, -1, 0); +- SDL_RenderPresent(renderer); +- if(renderer) ++ //renderer = SDL_CreateRenderer(testWindow, -1, 0); ++ //SDL_RenderPresent(renderer); ++ if(true) //(renderer) + { + + SDL_GLContext context = 0; +@@ -334,8 +334,8 @@ bool GfglFeatures::detectBestSupportSDL2(int& nWidth, int& nHeight, int& nDepth, + SDL_GL_DeleteContext(context); + context = NULL; + } +- SDL_DestroyRenderer(renderer); +- renderer = NULL; ++ //SDL_DestroyRenderer(renderer); ++ //renderer = NULL; + } + SDL_DestroyWindow(testWindow); + testWindow = NULL; +@@ -360,10 +360,10 @@ bool GfglFeatures::detectBestSupportSDL2(int& nWidth, int& nHeight, int& nDepth, + { + //SDL_SetWindowSize(GfuiWindow, nWidth, nHeight); + +- renderer = SDL_CreateRenderer(testWindow, -1, 0); +- if(renderer) ++ //renderer = SDL_CreateRenderer(testWindow, -1, 0); ++ if(true) //(renderer) + { +- SDL_RenderPresent(renderer); ++ //SDL_RenderPresent(renderer); + + SDL_GLContext context; + context = SDL_GL_CreateContext(testWindow); +@@ -381,8 +381,8 @@ bool GfglFeatures::detectBestSupportSDL2(int& nWidth, int& nHeight, int& nDepth, + SDL_GL_DeleteContext(context); + context = NULL; + } +- SDL_DestroyRenderer(renderer); +- renderer = NULL; ++ //SDL_DestroyRenderer(renderer); ++ //renderer = NULL; + } + SDL_DestroyWindow(testWindow); + testWindow = NULL; +@@ -432,10 +432,10 @@ bool GfglFeatures::detectBestSupportSDL2(int& nWidth, int& nHeight, int& nDepth, + nWidth, nHeight, SDL_WINDOW_HIDDEN | SDL_WINDOW_OPENGL); + if(testWindow) + { +- renderer = SDL_CreateRenderer(testWindow, -1, 0); +- if(renderer) ++ //renderer = SDL_CreateRenderer(testWindow, -1, 0); ++ if(true) //(renderer) + { +- SDL_RenderPresent(renderer); ++ //SDL_RenderPresent(renderer); + + SDL_GLContext context; + context = SDL_GL_CreateContext(testWindow); +@@ -472,8 +472,8 @@ bool GfglFeatures::detectBestSupportSDL2(int& nWidth, int& nHeight, int& nDepth, + SDL_GL_DeleteContext(context); + context = NULL; + } +- SDL_DestroyRenderer(renderer); +- renderer = NULL; ++ //SDL_DestroyRenderer(renderer); ++ //renderer = NULL; + } + SDL_DestroyWindow(testWindow); + testWindow = NULL; +@@ -546,8 +546,8 @@ bool GfglFeatures::detectBestSupport(int& nWidth, int& nHeight, int& nDepth, + #if SDL_MAJOR_VERSION >= 2 + SDL_SetWindowSize(GfuiWindow, nWidth, nHeight); + +- SDL_Renderer *renderer = SDL_CreateRenderer(GfuiWindow, -1, 0); +- SDL_RenderPresent(renderer); ++ //SDL_Renderer *renderer = SDL_CreateRenderer(GfuiWindow, -1, 0); ++ //SDL_RenderPresent(renderer); + + SDL_GL_CreateContext(GfuiWindow); + +@@ -592,8 +592,8 @@ bool GfglFeatures::detectBestSupport(int& nWidth, int& nHeight, int& nDepth, + #if SDL_MAJOR_VERSION >= 2 + SDL_SetWindowSize(GfuiWindow, nWidth, nHeight); + +- SDL_Renderer *renderer = SDL_CreateRenderer(GfuiWindow, -1, 0); +- SDL_RenderPresent(renderer); ++ //SDL_Renderer *renderer = SDL_CreateRenderer(GfuiWindow, -1, 0); ++ //SDL_RenderPresent(renderer); + + SDL_GL_CreateContext(GfuiWindow); + +diff --git a/src/libs/tgfclient/guiscreen.cpp b/src/libs/tgfclient/guiscreen.cpp +index 1c21c8f..b8c48b8 100644 +--- a/src/libs/tgfclient/guiscreen.cpp ++++ b/src/libs/tgfclient/guiscreen.cpp +@@ -456,8 +456,8 @@ SDL_Surface* gfScrCreateWindow(int nWinWidth, int nWinHeight, int nTotalDepth,in + } + #endif + // attempt to make window operational +- SDL_Renderer *renderer = SDL_CreateRenderer(GfuiWindow, -1, 0); +- SDL_RenderPresent(renderer); ++ //SDL_Renderer *renderer = SDL_CreateRenderer(GfuiWindow, -1, 0); ++ //SDL_RenderPresent(renderer); + + /* Create OpenGL context */ + SDL_GL_CreateContext(GfuiWindow); +-- +2.30.2 + diff --git a/games-sports/speed-dreams/speed_dreams-2.2.3.recipe b/games-sports/speed-dreams/speed_dreams-2.2.3.recipe new file mode 100644 index 000000000..71d653d67 --- /dev/null +++ b/games-sports/speed-dreams/speed_dreams-2.2.3.recipe @@ -0,0 +1,103 @@ +SUMMARY="Open Motorsport Simulator" +DESCRIPTION="Speed Dreams is a 3d cross-platform, open source motorsport \ +simulation and racing game. It is also intended for any research, study or \ +teaching activity, around physics and AI." +HOMEPAGE="http://www.speed-dreams.org/" +COPYRIGHT="2009-2018 Jean-Philippe Meuret" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://sourceforge.net/projects/speed-dreams/files/$portVersion/speed-dreams-src-base-$portVersion-r7616.tar.xz" + +CHECKSUM_SHA256="c67e48a083cd86f6c0062f0b38ed91a5d25274ea8aa656ee182f3f5074e96ff0" +SOURCE_DIR="" + +PATCHES="speed_dreams-$portVersion.patchset" +ADDITIONAL_FILES="speed_dreams.rdef.in" + +ARCHITECTURES="?all !x86_gcc2" +SECONDARY_ARCHITECTURES="?x86" + +PROVIDES=" + speed_dreams$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libcurl$secondaryArchSuffix + lib:libenet$secondaryArchSuffix + lib:libexpat$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libGLU$secondaryArchSuffix + lib:libjpeg$secondaryArchSuffix + lib:libogg$secondaryArchSuffix + lib:libopenal$secondaryArchSuffix + lib:libpng16$secondaryArchSuffix + lib:libSDL2_2.0$secondaryArchSuffix + lib:libvorbis$secondaryArchSuffix + lib:libvorbisfile$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libcurl$secondaryArchSuffix + devel:libenet$secondaryArchSuffix + devel:libexpat$secondaryArchSuffix + devel:libGL$secondaryArchSuffix + devel:libGLU$secondaryArchSuffix + devel:libjpeg$secondaryArchSuffix + devel:libogg$secondaryArchSuffix + devel:libopenal$secondaryArchSuffix + devel:libplibjs$secondaryArchSuffix + devel:libplibsg$secondaryArchSuffix + devel:libplibsl$secondaryArchSuffix + devel:libplibssg$secondaryArchSuffix + devel:libplibssgaux$secondaryArchSuffix + devel:libplibul$secondaryArchSuffix + devel:libpng16$secondaryArchSuffix + devel:libSDL2_2.0$secondaryArchSuffix + devel:libvorbis$secondaryArchSuffix + devel:libvorbisfile$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:gcc$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + mkdir -p build && cd build + + cmake .. -Wno-dev -DCMAKE_INSTALL_PREFIX=$appsDir/SpeedDreams \ + -DSD_LOCALDIR=~/config/settings/speed-dreams \ + -DOPTION_OFFICIAL_ONLY:BOOL=true \ + -DOPTION_OSGGRAPH:BOOL=false \ + -DOPTION_WEBSERVER:BOOL=false \ + -DOPTION_SDL2:BOOL=true + make $jobArgs +} + +INSTALL() +{ + cd build + make install + + local APP_SIGNATURE="application/x-vnd.speed_dreams" + local MAJOR="`echo "$portVersion" | cut -d. -f1`" + local MIDDLE="`echo "$portVersion" | cut -d. -f2`" + local MINOR="`echo "$portVersion" | cut -d. -f3`" + local LONG_INFO="$SUMMARY" + sed \ + -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ + -e "s|@MAJOR@|$MAJOR|" \ + -e "s|@MIDDLE@|$MIDDLE|" \ + -e "s|@MINOR@|$MINOR|" \ + -e "s|@LONG_INFO@|$LONG_INFO|" \ + $portDir/additional-files/speed_dreams.rdef.in > $sourceDir/speed_dreams.rdef + + + addResourcesToBinaries $sourceDir/speed_dreams.rdef $appsDir/SpeedDreams/games/speed-dreams-2 + addAppDeskbarSymlink $appsDir/SpeedDreams/games/speed-dreams-2 "Speed Dreams 2" +}