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
This commit is contained in:
Dmitry Marakasov 2021-06-01 20:20:57 +03:00
parent 953b6f2945
commit 397395a4e5

View file

@ -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