games/dxx-rebirth: fix build on 32-bits

common/include/serial.h:533:15: error: static assertion failed
  533 | static_assert(check_bswap<uint64_t, 0x201000000000000ull, 0x102>);
This commit is contained in:
Piotr Kubaj 2024-01-20 18:38:12 +01:00
parent a6f4e44212
commit a5c8bbb627

View file

@ -17,8 +17,7 @@ BUILD_DEPENDS= as:devel/binutils
LIB_DEPENDS= libphysfs.so:devel/physfs \
libpng.so:graphics/png
USES= compiler:c++17-lang gl localbase:ldflags pkgconfig scons sdl \
tar:xz
USES= gl localbase:ldflags pkgconfig scons sdl tar:xz
USE_GL= gl glu
USE_GITHUB= yes
GH_TAGNAME= 4efe4c9
@ -29,14 +28,19 @@ MAKE_ARGS= ignore_unknown_variables=1 sdl2=1
PLIST_FILES= bin/d1x-rebirth \
bin/d2x-rebirth
.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>
.if ${ARCH} != riscv64
MAKE_ARGS+= lto=1
.endif
.if ${ARCH} == armv7 || ${ARCH} == i386 || ${ARCH} == powerpc
CXXFLAGS+= -Wno-error=missing-field-initializers -Wno-error=maybe-uninitialized
USES+= compiler:gcc-c++11-lib
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/d1x-rebirth \
${STAGEDIR}${PREFIX}/bin/d2x-rebirth
.include <bsd.port.post.mk>
.include <bsd.port.mk>