On 2026/07/10 04:52, Kirill Bychkov wrote:
> CVSROOT: /cvs
> Module name: ports
> Changes by: [email protected] 2026/07/10 04:52:54
>
> Modified files:
> games/cataclysm-dda: Makefile
>
> Log message:
> Stop pulling devel/flatbuffers headers and fix build without flatbuffers
> installed.
> Reported by sthen@, naddy@ and tb@, thanks!
>
post-patch:
${SUBST_CMD} ${WRKSRC}/src/version.cmake \
${WRKSRC}/data/fontdata.json
perl -pi -e 's,flatbuffers/,flatbuffers_int/,g' \
${WRKSRC}/src/third-party/CMakeLists.txt \
${WRKSRC}/src/third-party/flatbuffers_int/*.h \
${WRKSRC}/src/third-party/flatbuffers_int/*.cpp \
${WRKSRC}/src/third-party/flatbuffers_int/pch/*.h \
${WRKSRC}/src/main.cpp \
${WRKSRC}/src/flexbuffer_cache.* \
${WRKSRC}/src/flexbuffer_json-inl.h \
${WRKSRC}/src/flexbuffer_json.h \
${WRKSRC}/pch/main-pch.hpp
oh, this is really fragile/awkward... it might be better to have it
actually use devel/flatbuffers instead, or alternatively fix the include
search path so that it finds the internal copy before the external one
in /usr/local (try something like adding -I${WRKSRC}/src/third-party
before -I${LOCALBASE}/include ?)