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

(cherry picked from commit 397395a4e5)
This commit is contained in:
Dmitry Marakasov 2021-06-01 20:20:57 +03:00
parent 2fe810d76b
commit 2e5cc75779

View File

@ -2,6 +2,7 @@
PORTNAME= DDNet
PORTVERSION= 15.4
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= https://ddnet.tw/downloads/
@ -15,6 +16,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