aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2021-06-01 17:20:57 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2021-06-01 17:34:52 +0000
commit397395a4e59136ec7b42c5ff44b02c029ae74626 (patch)
treed716b8b017c3fa19659a390962e8852840866661
parent953b6f294527e25f72174aaf786f254474f84b07 (diff)
downloadports-397395a4e59136ec7b42c5ff44b02c029ae74626.tar.gz
ports-397395a4e59136ec7b42c5ff44b02c029ae74626.zip
games/DDNet: fix running own binaries
Specify path to binary dir explicitly, so the game could find its own binary for correctly restarting and server binary for running it
-rw-r--r--games/DDNet/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/games/DDNet/Makefile b/games/DDNet/Makefile
index 257b57c0fdbd..f8167d5e8120 100644
--- a/games/DDNet/Makefile
+++ b/games/DDNet/Makefile
@@ -1,6 +1,6 @@
PORTNAME= DDNet
PORTVERSION= 15.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= https://ddnet.tw/downloads/
@@ -14,6 +14,8 @@ USES= cmake compiler:c++11-lang pkgconfig python sqlite:3 ssl tar:xz
CMAKE_ARGS= -DPYTHON_EXECUTABLE="${PYTHON_CMD}"
CMAKE_OFF= AUTOUPDATE DOWNLOAD_GTEST PREFER_BUNDLED_LIBS
+CXXFLAGS+= -DBINARY_DIR="\\\"${PREFIX}/bin\\\""
+
PORTDATA= *
DATADIR= ${PREFIX}/share/ddnet