mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
- 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
This commit is contained in:
parent
a311293946
commit
dc903c8df7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=557237
71
games/DDNet/Makefile
Normal file
71
games/DDNet/Makefile
Normal file
@ -0,0 +1,71 @@
|
||||
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= DDNet
|
||||
PORTVERSION= 15.2.3
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= https://ddnet.tw/downloads/
|
||||
|
||||
MAINTAINER= amdmi3@FreeBSD.org
|
||||
COMMENT= DDraceNetwork, a cooperative racing mod of Teeworlds
|
||||
|
||||
LICENSE= ZLIB
|
||||
LICENSE_FILE= ${WRKSRC}/license.txt
|
||||
|
||||
USES= cmake pkgconfig python sqlite:3 ssl tar:xz
|
||||
CMAKE_ARGS= -DPYTHON_EXECUTABLE="${PYTHON_CMD}"
|
||||
CMAKE_OFF= AUTOUPDATE DOWNLOAD_GTEST PREFER_BUNDLED_LIBS
|
||||
|
||||
PORTDATA= *
|
||||
DATADIR= ${PREFIX}/share/ddnet
|
||||
|
||||
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= 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 \
|
||||
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:
|
||||
# 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-TEST-off:
|
||||
@${REINPLACE_CMD} -e '/find_package.*GTest/ d' ${WRKSRC}/CMakeLists.txt
|
||||
|
||||
.include <bsd.port.mk>
|
3
games/DDNet/distinfo
Normal file
3
games/DDNet/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1607274865
|
||||
SHA256 (DDNet-15.2.3.tar.xz) = ff380255fe8c6c6d879776b19df94a7347d41697ea3bb39a028cdd9419037258
|
||||
SIZE (DDNet-15.2.3.tar.xz) = 26645768
|
13
games/DDNet/files/patch-cmake_FindNotify.cmake
Normal file
13
games/DDNet/files/patch-cmake_FindNotify.cmake
Normal file
@ -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)
|
11
games/DDNet/pkg-descr
Normal file
11
games/DDNet/pkg-descr
Normal file
@ -0,0 +1,11 @@
|
||||
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/
|
24
games/DDNet/pkg-plist
Normal file
24
games/DDNet/pkg-plist
Normal file
@ -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
|
@ -14,6 +14,7 @@
|
||||
SUBDIR += 7kaa
|
||||
SUBDIR += 90secondportraits
|
||||
SUBDIR += CaribbeanStud
|
||||
SUBDIR += DDNet
|
||||
SUBDIR += HeroesOfMightAndMagic
|
||||
SUBDIR += KnightCap
|
||||
SUBDIR += NBlood
|
||||
|
Loading…
Reference in New Issue
Block a user