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
This commit is contained in:
Alexey Dokuchaev 2025-02-05 15:54:20 +00:00
parent a177c72d31
commit 1acfa6e9b3

View File

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