Date: Tue, 25 Jul 2017 10:22:17 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r446569 - in head/games: . stuntrally stuntrally/files Message-ID: <201707251022.v6PAMHXp021798@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Tue Jul 25 10:22:17 2017 New Revision: 446569 URL: https://svnweb.freebsd.org/changeset/ports/446569 Log: - Add games/stuntrally: 3D racing game Stunt Rally is a racing game with rally style of driving, mostly on gravel. It features a rich variety of 172 tracks in 34 sceneries also on other planets. Track difficulty ranges from short and easy to very difficult stunt tracks including jumps, skewed loops, pipes winding in 3D, obstacles or all at once. There are 20 cars to choose, 1 motorbike, 3 hovering spaceships and 1 bouncing sphere. The latter provide a fast and easier gameplay on flat tracks. Game modes include: Single Race, Tutorials, Championships, Challenges, Multiplayer and Split Screen. Also Replays and Ghost drive are present. The Track Editor allows creating and modifying tracks. It uses a 3D spline generated road. WWW: http://stuntrally.tuxfamily.org/ Added: head/games/stuntrally/ head/games/stuntrally/Makefile (contents, props changed) head/games/stuntrally/distinfo (contents, props changed) head/games/stuntrally/files/ head/games/stuntrally/files/patch-CMakeLists.txt (contents, props changed) head/games/stuntrally/files/patch-source_ogre_BaseApp__Create.cpp (contents, props changed) head/games/stuntrally/files/patch-source_shiny_CMakeLists.txt (contents, props changed) head/games/stuntrally/pkg-descr (contents, props changed) head/games/stuntrally/pkg-plist (contents, props changed) Modified: head/games/Makefile Modified: head/games/Makefile ============================================================================== --- head/games/Makefile Tue Jul 25 10:21:32 2017 (r446568) +++ head/games/Makefile Tue Jul 25 10:22:17 2017 (r446569) @@ -939,6 +939,7 @@ SUBDIR += stormbaancoureur SUBDIR += stransball2 SUBDIR += stratagus + SUBDIR += stuntrally SUBDIR += sudoku-sensei SUBDIR += sudoku_solver SUBDIR += sudsol Added: head/games/stuntrally/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/stuntrally/Makefile Tue Jul 25 10:22:17 2017 (r446569) @@ -0,0 +1,61 @@ +# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= stuntrally +PORTVERSION= 2.6 +CATEGORIES= games + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= 3D racing game based on VDrift and OGRE with track editor + +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/License.txt + +LIB_DEPENDS= libboost_thread.so:devel/boost-libs + +USE_GITHUB= yes +GH_TUPLE= stuntrally:tracks:${PORTVERSION}:tracks/data/tracks + +USES= cmake:outsource dos2unix pkgconfig +DOS2UNIX_FILES= source/ogre/BaseApp_Create.cpp +CMAKE_ARGS= -DSHARE_INSTALL="${DATADIR_REL}" \ + -DBULLET_ROOT="${LOCALBASE}" + +PORTDOCS= Readme.txt +PORTDATA= * + +OPTIONS_DEFINE= GAME EDITOR MASTER_SERVER DOCS +OPTIONS_DEFAULT=GAME EDITOR +OPTIONS_SUB= yes + +GAME_DESC= Build the game binary +GAME_CMAKE_BOOL= BUILD_GAME +GAME_LIB_DEPENDS= libOgreMain.so:graphics/ogre3d \ + libBulletDynamics.so:devel/bullet \ + libMyGUIEngine.so:x11-toolkits/mygui \ + libogg.so:audio/libogg \ + libvorbisfile.so:audio/libvorbis \ + libenet.so:net/enet +GAME_BUILD_DEPENDS= ${LOCALBASE}/include/MYGUI/MyGUI_OgreTexture.h:x11-toolkits/mygui-ogre +GAME_USE= SDL=sdl2 +GAME_USES= openal + +EDITOR_DESC= Build the track editor +EDITOR_CMAKE_BOOL= BUILD_EDITOR +EDITOR_LIB_DEPENDS= libOgreMain.so:graphics/ogre3d \ + libBulletDynamics.so:devel/bullet \ + libMyGUIEngine.so:x11-toolkits/mygui \ + libogg.so:audio/libogg \ + libvorbisfile.so:audio/libvorbis +EDITOR_USE= SDL=sdl2 +EDITOR_BUILD_DEPENDS= ${LOCALBASE}/include/MYGUI/MyGUI_OgreTexture.h:x11-toolkits/mygui-ogre + +MASTER_SERVER_CMAKE_BOOL= BUILD_MASTER_SERVER +MASTER_SERVER_DESC= Build the master server +MASTER_SERVER_LIB_DEPENDS= libenet.so:net/enet + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/Readme.txt ${STAGEDIR}${DOCSDIR}/ + +.include <bsd.port.mk> Added: head/games/stuntrally/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/stuntrally/distinfo Tue Jul 25 10:22:17 2017 (r446569) @@ -0,0 +1,5 @@ +TIMESTAMP = 1500906591 +SHA256 (stuntrally-stuntrally-2.6_GH0.tar.gz) = 8cc309d27d26f78dcc596440547d68b5e41d02ef830df2d52d38611d45ebbaca +SIZE (stuntrally-stuntrally-2.6_GH0.tar.gz) = 651577187 +SHA256 (stuntrally-tracks-2.6_GH0.tar.gz) = 4bce700516a2a178ac04cfbf7df2887ba42225802f5a3e670f770ea01345687b +SIZE (stuntrally-tracks-2.6_GH0.tar.gz) = 355793120 Added: head/games/stuntrally/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/stuntrally/files/patch-CMakeLists.txt Tue Jul 25 10:22:17 2017 (r446569) @@ -0,0 +1,17 @@ +--- CMakeLists.txt.orig 2015-09-18 09:21:11 UTC ++++ CMakeLists.txt +@@ -16,14 +16,6 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINAR + message(FATAL_ERROR "In-source builds are not permitted. Make a separate folder for building:\nmkdir build; cd build; cmake ..\nBefore that, remove the files already created:\nrm -rf CMakeCache.txt CMakeFiles") + endif(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) + +-# Add a sensible build type default and warning because empty means no optimization and no debug info. +-if(NOT CMAKE_BUILD_TYPE) +- message("WARNING: CMAKE_BUILD_TYPE is not defined!\n Defaulting to CMAKE_BUILD_TYPE=RelWithDebInfo. Use ccmake to set a proper value.") +- set(CMAKE_BUILD_TYPE RelWithDebInfo +- CACHE STRING "Type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE) +-endif(NOT CMAKE_BUILD_TYPE) +- +- + # Set default compile flags for GCC + if(CMAKE_COMPILER_IS_GNUCXX) + message(STATUS "GCC detected, adding compile flags") Added: head/games/stuntrally/files/patch-source_ogre_BaseApp__Create.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/stuntrally/files/patch-source_ogre_BaseApp__Create.cpp Tue Jul 25 10:22:17 2017 (r446569) @@ -0,0 +1,11 @@ +--- source/ogre/BaseApp_Create.cpp.orig 2015-09-18 09:21:11 UTC ++++ source/ogre/BaseApp_Create.cpp +@@ -254,7 +254,7 @@ bool BaseApp::configure() + + mRoot->initialise(false); + +- Uint32 flags = SDL_INIT_VIDEO|SDL_INIT_JOYSTICK|SDL_INIT_HAPTIC|SDL_INIT_NOPARACHUTE; ++ Uint32 flags = SDL_INIT_VIDEO|SDL_INIT_JOYSTICK|SDL_INIT_NOPARACHUTE; + if (SDL_WasInit(flags) == 0) + { + SDL_SetHint(SDL_HINT_RENDER_DRIVER, "software"); Added: head/games/stuntrally/files/patch-source_shiny_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/stuntrally/files/patch-source_shiny_CMakeLists.txt Tue Jul 25 10:22:17 2017 (r446569) @@ -0,0 +1,42 @@ +--- source/shiny/CMakeLists.txt.orig 2015-09-18 09:21:11 UTC ++++ source/shiny/CMakeLists.txt +@@ -41,21 +41,9 @@ if(BUILD_SHARED_LIBS) + set_target_properties(${SHINY_LIBRARY} PROPERTIES SOVERSION "${SHINY_MAJOR_VERSION}.${SHINY_MINOR_VERSION}") + endif(BUILD_SHARED_LIBS) + +-if(BUILD_SHARED_LIBS) +- install(TARGETS ${SHINY_LIBRARY} +- LIBRARY DESTINATION lib${LIB_SUFFIX} +- RUNTIME DESTINATION lib${LIB_SUFFIX}) +-else(BUILD_SHARED_LIBS) +- install(TARGETS ${SHINY_LIBRARY} +- ARCHIVE DESTINATION lib${LIB_SUFFIX} +- RUNTIME DESTINATION lib${LIB_SUFFIX}) +-endif(BUILD_SHARED_LIBS) + file(GLOB HEADERS_EDITOR Editor/*.hpp) + file(GLOB HEADERS_EXTRA Extra/*.h) + file(GLOB HEADERS_MAIN Main/*.hpp) +-install(FILES ${HEADERS_EDITOR} DESTINATION include/shiny/Editor) +-install(FILES ${HEADERS_EXTRA} DESTINATION include/shiny/Extra) +-install(FILES ${HEADERS_MAIN} DESTINATION include/shiny/Main) + + set(SHINY_LIBRARIES ${SHINY_LIBRARY}) + +@@ -80,17 +68,7 @@ if (SHINY_BUILD_OGRE_PLATFORM) + add_library(${SHINY_OGREPLATFORM_LIBRARY} ${SHINY_LIBRARY_TYPE} ${OGRE_PLATFORM_SOURCE_FILES}) + add_dependencies(${SHINY_OGREPLATFORM_LIBRARY} ${SHINY_LIBRARY}) + set(SHINY_LIBRARIES ${SHINY_LIBRARIES} ${SHINY_OGREPLATFORM_LIBRARY}) +- if(BUILD_SHARED_LIBS) +- install(TARGETS ${SHINY_OGREPLATFORM_LIBRARY} +- LIBRARY DESTINATION lib${LIB_SUFFIX}//OGRE +- RUNTIME DESTINATION lib${LIB_SUFFIX}//OGRE) +- else(BUILD_SHARED_LIBS) +- install(TARGETS ${SHINY_OGREPLATFORM_LIBRARY} +- ARCHIVE DESTINATION lib${LIB_SUFFIX}//OGRE +- RUNTIME DESTINATION lib${LIB_SUFFIX}//OGRE) +- endif(BUILD_SHARED_LIBS) + file(GLOB HEADERS_PLATFORM_OGRE Platforms/Ogre/*.hpp) +- install(FILES ${HEADERS_PLATFORM_OGRE} DESTINATION include/shiny/Platforms/Ogre) + endif() + + set(SHINY_LIBRARY ${SHINY_LIBRARY} PARENT_SCOPE) Added: head/games/stuntrally/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/stuntrally/pkg-descr Tue Jul 25 10:22:17 2017 (r446569) @@ -0,0 +1,22 @@ +Stunt Rally is a racing game with rally style of driving, mostly +on gravel. + +It features a rich variety of 172 tracks in 34 sceneries also on +other planets. + +Track difficulty ranges from short and easy to very difficult stunt +tracks including jumps, skewed loops, pipes winding in 3D, obstacles +or all at once. + +There are 20 cars to choose, 1 motorbike, 3 hovering spaceships and +1 bouncing sphere. +The latter provide a fast and easier gameplay on flat tracks. + +Game modes include: +Single Race, Tutorials, Championships, Challenges, Multiplayer and +Split Screen. Also Replays and Ghost drive are present. + +The Track Editor allows creating and modifying tracks. It uses a +3D spline generated road. + +WWW: http://stuntrally.tuxfamily.org/ Added: head/games/stuntrally/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/stuntrally/pkg-plist Tue Jul 25 10:22:17 2017 (r446569) @@ -0,0 +1,7 @@ +%%EDITOR%%bin/sr-editor +%%MASTER_SERVER%%bin/sr-masterserver +%%GAME%%bin/stuntrally +%%EDITOR%%share/applications/sr-editor.desktop +%%GAME%%share/applications/stuntrally.desktop +%%EDITOR%%share/icons/hicolor/64x64/apps/sr-editor.png +%%GAME%%share/icons/hicolor/64x64/apps/stuntrally.png
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707251022.v6PAMHXp021798>