Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jun 2021 17:42:30 GMT
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 2e5cc75779b1 - 2021Q2 - games/DDNet: fix running own binaries
Message-ID:  <202106011742.151HgUtl031566@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2021Q2 has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2e5cc75779b158d926afbd3a80f8edc949f6f22f

commit 2e5cc75779b158d926afbd3a80f8edc949f6f22f
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2021-06-01 17:20:57 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2021-06-01 17:39:20 +0000

    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 397395a4e59136ec7b42c5ff44b02c029ae74626)
---
 games/DDNet/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/games/DDNet/Makefile b/games/DDNet/Makefile
index 52bec6373686..0c85edf99a62 100644
--- a/games/DDNet/Makefile
+++ b/games/DDNet/Makefile
@@ -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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106011742.151HgUtl031566>