mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
8238f2dd7a
/usr/obj/ports/cataclysm-dda-0.H-no_x11/Cataclysm-DDA-0.H-RELEASE/src/third-party/flatbuffers_int/util.h:267:12: error: 'strtoll_l' was not declared in this scope; did you mean 'strcoll_l'?
267 | *val = __strtoll_impl(str, endptr, base);
| ^~~~~~~~~~~~~~
'strtoull_l' 'strtod_l' 'strtof_l' all also not declared in scopr
106 lines
2.8 KiB
Makefile
106 lines
2.8 KiB
Makefile
BROKEN-sparc64= strtoll_l strtoull_l strtod_l strtof_l not declared this scope
|
|
|
|
COMMENT= rogue-like zombie survival game
|
|
CATEGORIES= games
|
|
|
|
V= 0.H-RELEASE
|
|
DIST_TUPLE+= github CleverRaven Cataclysm-DDA ${V} .
|
|
PKGNAME= cataclysm-dda-${V:S/-RELEASE//}
|
|
REVISION= 1
|
|
|
|
HOMEPAGE= https://cataclysmdda.org
|
|
MAINTAINER= Kirill Bychkov <kirby@openbsd.org>
|
|
|
|
EPOCH= 0
|
|
|
|
# Creative Commons 3.0
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
FLAVORS= no_x11
|
|
FLAVOR?=
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} FLAC c iconv intl m z
|
|
|
|
# C++17
|
|
COMPILER= base-clang ports-gcc
|
|
|
|
MODULES= devel/cmake textproc/intltool
|
|
|
|
BUILD_DEPENDS = devel/abseil-cpp
|
|
|
|
RUN_DEPENDS= devel/desktop-file-utils \
|
|
x11/gtk+4,-guic
|
|
|
|
LIB_DEPENDS= audio/flac \
|
|
devel/gettext,-runtime
|
|
|
|
CONFIGURE_ARGS = -DLOCALIZE=ON \
|
|
-DBACKTRACE=OFF \
|
|
-DGIT_VERSION=${V} \
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON \
|
|
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
|
|
-DCMAKE_EXE_LINKER_FLAGS="-L${LOCALBASE}/lib -lintl -liconv" \
|
|
-DCMAKE_INSTALL_LOCALEDIR="${PREFIX}/share/locale" \
|
|
-Wno_dev
|
|
|
|
SUBST_VARS += V
|
|
|
|
.if ${FLAVOR:Mno_x11}
|
|
WANTLIB+= curses form
|
|
CONFIGURE_ARGS += -DCURSES_INCLUDE_PATH=/usr/include
|
|
.else
|
|
WANTLIB+= SDL2 SDL2_image SDL2_mixer SDL2_ttf
|
|
|
|
LIB_DEPENDS+= devel/sdl2-mixer \
|
|
devel/sdl2-image \
|
|
devel/sdl2-ttf
|
|
|
|
CONFIGURE_ARGS+= -DCURSES=OFF -DTILES=ON -DSOUND=ON
|
|
|
|
MAN_TILES= -tiles
|
|
.endif
|
|
|
|
NO_TEST= Yes
|
|
|
|
post-extract:
|
|
mv ${WRKSRC}/src/third-party/flatbuffers/ \
|
|
${WRKSRC}/src/third-party/flatbuffers_int/
|
|
|
|
post-patch:
|
|
${SUBST_CMD} ${WRKSRC}/src/version.cmake
|
|
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
|
|
|
|
post-configure:
|
|
touch ${WRKSRC}/VERSION.txt
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/doc/cataclysm${MAN_TILES}.6 ${PREFIX}/man/man6/
|
|
cd ${WRKSRC}/doc && find * -type d -exec ${INSTALL_DATA_DIR} \
|
|
"${PREFIX}/share/cataclysm-dda/doc/{}" \;
|
|
cd ${WRKSRC}/doc && find * -type f -mindepth 1 ! -name "*.6" -exec ${INSTALL_DATA} \
|
|
"{}" "${PREFIX}/share/cataclysm-dda/doc/{}" \;
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/scalable/apps/
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/metainfo/
|
|
${INSTALL_DATA} ${WRKSRC}/data/xdg/org.cataclysmdda.CataclysmDDA.desktop \
|
|
${PREFIX}/share/applications/
|
|
${INSTALL_DATA} ${WRKSRC}/data/xdg/org.cataclysmdda.CataclysmDDA.svg \
|
|
${PREFIX}/share/icons/hicolor/scalable/apps/
|
|
${INSTALL_DATA} ${WRKSRC}/data/xdg/org.cataclysmdda.CataclysmDDA.appdata.xml \
|
|
${PREFIX}/share/metainfo/
|
|
|
|
|
|
|
|
MODCMAKE_POLICY_VERSION_OVERRIDE = Yes
|
|
|
|
.include <bsd.port.mk>
|