Date: Mon, 7 Dec 2020 16:46:09 +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: r557237 - in head/games: . DDNet DDNet/files Message-ID: <202012071646.0B7Gk96w016881@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Mon Dec 7 16:46:08 2020 New Revision: 557237 URL: https://svnweb.freebsd.org/changeset/ports/557237 Log: - Add games/DDNet: DDraceNetwork, a cooperative racing mod of Teeworlds DDraceNetwork (DDNet) is an actively maintained version of DDRace, a Teeworlds modification with a unique cooperative gameplay. Help each other play through custom maps with up to 64 players, compete against the best in international tournaments, design your own maps, or run your own server. The official servers are located in Germany, Poland, Russia, Turkey, Iran, USA, Canada, China, Korea, Japan, Singapore, Chile, Brazil, Argentina, South Africa and Australia. All ranks made on official servers are available worldwide and you can collect points! WWW: https://ddnet.tw/ The port was copied from games/teeworlds as the codebases are related Added: head/games/DDNet/ - copied from r557234, head/games/teeworlds/ head/games/DDNet/files/ head/games/DDNet/files/patch-cmake_FindNotify.cmake (contents, props changed) head/games/DDNet/pkg-plist (contents, props changed) Modified: head/games/DDNet/Makefile head/games/DDNet/distinfo head/games/DDNet/pkg-descr head/games/Makefile Modified: head/games/DDNet/Makefile ============================================================================== --- head/games/teeworlds/Makefile Mon Dec 7 15:43:54 2020 (r557234) +++ head/games/DDNet/Makefile Mon Dec 7 16:46:08 2020 (r557237) @@ -1,58 +1,69 @@ # Created by: Dmitry Marakasov <amdmi3@amdmi3.ru> # $FreeBSD$ -PORTNAME= teeworlds -PORTVERSION= 0.7.5 +PORTNAME= DDNet +PORTVERSION= 15.2.3 CATEGORIES= games +MASTER_SITES= https://ddnet.tw/downloads/ MAINTAINER= amdmi3@FreeBSD.org -COMMENT= Platform game featuring buggers equipped with weapons +COMMENT= DDraceNetwork, a cooperative racing mod of Teeworlds LICENSE= ZLIB LICENSE_FILE= ${WRKSRC}/license.txt -USE_GITHUB= yes -GH_TUPLE= teeworlds:teeworlds-translation:4ed69dd:translations/datasrc/languages \ - teeworlds:teeworlds-maps:1d3401a:maps/datasrc/maps - -USES= cmake cpe pkgconfig python ssl -USE_CSTD= c99 -CPE_VERSION= ${PORTVERSION:C/^0\.//} +USES= cmake pkgconfig python sqlite:3 ssl tar:xz CMAKE_ARGS= -DPYTHON_EXECUTABLE="${PYTHON_CMD}" +CMAKE_OFF= AUTOUPDATE DOWNLOAD_GTEST PREFER_BUNDLED_LIBS -PLIST_FILES= bin/${PORTNAME}_srv PORTDATA= * +DATADIR= ${PREFIX}/share/ddnet -OPTIONS_DEFINE= CLIENT TEST +OPTIONS_DEFINE= CLIENT TEST WEBSOCKETS MYSQL VIDEORECORDER UPNP OPTIONS_DEFAULT= CLIENT TEST +OPTIONS_SUB= yes CLIENT_DESC= Build game client CLIENT_CMAKE_BOOL= CLIENT -CLIENT_USES= gl sdl xorg -CLIENT_USE= GL=gl XORG=x11 SDL=sdl2 +CLIENT_USES= gettext gl sdl xorg desktop-file-utils +CLIENT_USE= GL=gl,glew XORG=x11 SDL=sdl2 CLIENT_LIB_DEPENDS= libfreetype.so:print/freetype2 \ libwavpack.so:audio/wavpack \ - libpnglite.so:graphics/pnglite -CLIENT_PLIST_FILES= bin/${PORTNAME} + libpnglite.so:graphics/pnglite \ + libopusfile.so:audio/opusfile \ + libopus.so:audio/opus \ + libogg.so:audio/libogg \ + libnotify.so:devel/libnotify \ + libcurl.so:ftp/curl TEST_BUILD_DEPENDS= googletest>=0:devel/googletest TEST_TEST_TARGET= run_tests +WEBSOCKETS_DESC= Enable WebSocket support for server +WEBSOCKETS_CMAKE_BOOL= WEBSOCKETS +WEBSOCKETS_LIB_DEPENDS= libwebsockets.so:net/libwebsockets + +MYSQL_DESC= Enable MySQL/MariaDB support for server +MYSQL_CMAKE_BOOL= MYSQL +MYSQL_USES= mysql +MYSQL_LIB_DEPENDS= libmysqlcppconn.so:databases/mysql-connector-c++ + +VIDEORECORDER_DESC= Video recording support using FFmpeg to the client +VIDEORECORDER_CMAKE_BOOL=VIDEORECORDER +VIDEORECORDER_LIB_DEPENDS=libavcodec.so:multimedia/ffmpeg + +UPNP_DESC= UPnP support for the server +UPNP_CMAKE_BOOL= UPNP +UPNP_LIB_DEPENDS= libminiupnpc.so:net/miniupnpc + post-extract: - @${RM} -r ${WRKSRC}/src/engine/external/wavpack - @${RM} -r ${WRKSRC}/src/engine/external/pnglite - @${RM} -r ${WRKSRC}/src/engine/external/zlib +# json-parser and md5 are left intact +.for dep in glew pnglite wavpack zlib + @${RM} -r ${WRKSRC}/src/engine/external/${dep} +.endfor post-patch: @${REINPLACE_CMD} -e '/find_package.*Git/ d' ${WRKSRC}/CMakeLists.txt - -post-patch-CLIENT-off: - @${REINPLACE_CMD} -e '/find_package.*Pnglite/ d' ${WRKSRC}/CMakeLists.txt - @${REINPLACE_CMD} -e '/find_package.*Wavpack/ d' ${WRKSRC}/CMakeLists.txt - @${REINPLACE_CMD} -e '/find_package.*SDL2/ d' ${WRKSRC}/CMakeLists.txt - @${REINPLACE_CMD} -e '/find_package.*Freetype/ d' ${WRKSRC}/CMakeLists.txt - @${REINPLACE_CMD} -e '/find_package.*OpenGL/ d' ${WRKSRC}/CMakeLists.txt - @${REINPLACE_CMD} -e '/find_package.*X11/ d' ${WRKSRC}/CMakeLists.txt post-patch-TEST-off: @${REINPLACE_CMD} -e '/find_package.*GTest/ d' ${WRKSRC}/CMakeLists.txt Modified: head/games/DDNet/distinfo ============================================================================== --- head/games/teeworlds/distinfo Mon Dec 7 15:43:54 2020 (r557234) +++ head/games/DDNet/distinfo Mon Dec 7 16:46:08 2020 (r557237) @@ -1,7 +1,3 @@ -TIMESTAMP = 1587343633 -SHA256 (teeworlds-teeworlds-0.7.5_GH0.tar.gz) = 6e67846b38750d2a372d7835fa3775db016458a20a85aa52f1c758102ddd4abe -SIZE (teeworlds-teeworlds-0.7.5_GH0.tar.gz) = 8654985 -SHA256 (teeworlds-teeworlds-translation-4ed69dd_GH0.tar.gz) = 341862af2111841b2370a505c4530c1681891466c17ba6d1ec2228c191f7db69 -SIZE (teeworlds-teeworlds-translation-4ed69dd_GH0.tar.gz) = 173398 -SHA256 (teeworlds-teeworlds-maps-1d3401a_GH0.tar.gz) = a9afa896cd662eca9969a319c770e2c31cee585a66e109cea9903767ba16783b -SIZE (teeworlds-teeworlds-maps-1d3401a_GH0.tar.gz) = 151621 +TIMESTAMP = 1607274865 +SHA256 (DDNet-15.2.3.tar.xz) = ff380255fe8c6c6d879776b19df94a7347d41697ea3bb39a028cdd9419037258 +SIZE (DDNet-15.2.3.tar.xz) = 26645768 Added: head/games/DDNet/files/patch-cmake_FindNotify.cmake ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/DDNet/files/patch-cmake_FindNotify.cmake Mon Dec 7 16:46:08 2020 (r557237) @@ -0,0 +1,13 @@ +--- cmake/FindNotify.cmake.orig 2020-11-19 15:17:36 UTC ++++ cmake/FindNotify.cmake +@@ -1,4 +1,9 @@ + find_package(PkgConfig QUIET) +-pkg_check_modules(NOTIFY QUIET libnotify) ++pkg_check_modules(PC_NOTIFY QUIET libnotify) ++set(NOTIFY_INCLUDE_DIRS ${PC_NOTIFY_INCLUDE_DIRS}) ++foreach(lib ${PC_NOTIFY_LIBRARIES}) ++ find_library(NOTIFY_LIB${lib} ${lib}) ++ set(NOTIFY_LIBRARIES ${NOTIFY_LIBRARIES} ${NOTIFY_LIB${lib}}) ++endforeach() + include(FindPackageHandleStandardArgs) + find_package_handle_standard_args(Notify DEFAULT_MSG NOTIFY_LIBRARIES NOTIFY_INCLUDE_DIRS) Modified: head/games/DDNet/pkg-descr ============================================================================== --- head/games/teeworlds/pkg-descr Mon Dec 7 15:43:54 2020 (r557234) +++ head/games/DDNet/pkg-descr Mon Dec 7 16:46:08 2020 (r557237) @@ -1,16 +1,11 @@ -Teeworlds is a freeware online multiplayer game, designed as a -crossover between Quake and Worms. Set on platform-based maps, -players control a cute little bugger with guns to take out as many -opponents as possible. The characters can jump but move more quickly -using a grappling hook, swinging through the levels. It can also -be used to lock other players to keep them near. The available -weapons include a pistol, shotgun, grenade launcher and a hammer. -The shooting and grappling direction is shown through a cursor, -controlled by the mouse. A special power-up temporarily provides a -ninja sword, used to slash through enemies. Each character has an -amount of health and shield. Items scattered around include additional -ammo, and health and shield bonuses. Unlike Worms, all the action -that happens is fast-paced and happens in real-time. It supports -CTF mode. +DDraceNetwork (DDNet) is an actively maintained version of DDRace, +a Teeworlds modification with a unique cooperative gameplay. Help +each other play through custom maps with up to 64 players, compete +against the best in international tournaments, design your own maps, +or run your own server. The official servers are located in Germany, +Poland, Russia, Turkey, Iran, USA, Canada, China, Korea, Japan, +Singapore, Chile, Brazil, Argentina, South Africa and Australia. +All ranks made on official servers are available worldwide and you +can collect points! -WWW: https://www.teeworlds.com/ +WWW: https://ddnet.tw/ Added: head/games/DDNet/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/DDNet/pkg-plist Mon Dec 7 16:46:08 2020 (r557237) @@ -0,0 +1,24 @@ +%%CLIENT%%bin/DDNet +bin/DDNet-Server +lib/ddnet/config_retrieve +lib/ddnet/config_store +lib/ddnet/crapnet +lib/ddnet/dilate +lib/ddnet/dummy_map +lib/ddnet/fake_server +lib/ddnet/map_convert_07 +lib/ddnet/map_diff +lib/ddnet/map_extract +lib/ddnet/map_replace_image +lib/ddnet/map_resave +lib/ddnet/packetgen +lib/ddnet/unicode_confusables +lib/ddnet/uuid +%%CLIENT%%share/applications/ddnet.desktop +%%CLIENT%%share/icons/hicolor/128x128/apps/ddnet.png +%%CLIENT%%share/icons/hicolor/16x16/apps/ddnet.png +%%CLIENT%%share/icons/hicolor/256x256/apps/ddnet.png +%%CLIENT%%share/icons/hicolor/32x32/apps/ddnet.png +%%CLIENT%%share/icons/hicolor/48x48/apps/ddnet.png +%%CLIENT%%share/icons/hicolor/512x512/apps/ddnet.png +%%CLIENT%%share/metainfo/ddnet.appdata.xml Modified: head/games/Makefile ============================================================================== --- head/games/Makefile Mon Dec 7 16:44:38 2020 (r557236) +++ head/games/Makefile Mon Dec 7 16:46:08 2020 (r557237) @@ -14,6 +14,7 @@ SUBDIR += 7kaa SUBDIR += 90secondportraits SUBDIR += CaribbeanStud + SUBDIR += DDNet SUBDIR += HeroesOfMightAndMagic SUBDIR += KnightCap SUBDIR += NBlood
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012071646.0B7Gk96w016881>