Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2025 15:54:57 GMT
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 1acfa6e9b39c - main - games/atanks: attempt to unbreak the port's build
Message-ID:  <202502051554.515Fsv6b036473@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1acfa6e9b39ca93895e4202870b28d5bc1d3d637

commit 1acfa6e9b39ca93895e4202870b28d5bc1d3d637
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2025-02-05 15:54:20 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2025-02-05 15:54:20 +0000

    games/atanks: attempt to unbreak the port's build
    
    Forward declaration of class BUTTON is not enough to access
    its members, we must include the corresponding header file.
    
    Reported by:    pkg-fallout
---
 games/atanks/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/games/atanks/Makefile b/games/atanks/Makefile
index 09da7c104d48..c53a20469b99 100644
--- a/games/atanks/Makefile
+++ b/games/atanks/Makefile
@@ -19,6 +19,10 @@ PORTDOCS=	Changelog README README_ru.txt credits.txt
 
 OPTIONS_DEFINE=	DOCS
 
+post-patch:
+	@${REINPLACE_CMD} -e '/"optionitembase\.h"/ { x; s,^,#include\
+		"button.h",; G; }' ${WRKSRC}/src/optionitem.h
+
 post-install:
 	${LN} -sf ../../share/icons/hicolor/48x48/apps/${PORTNAME}.png \
 		${STAGEDIR}${PREFIX}/share/pixmaps/



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