git: 1acfa6e9b39c - main - games/atanks: attempt to unbreak the port's build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Feb 2025 15:54:57 UTC
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/