Commit a41fb5df authored by pkubaj's avatar pkubaj
Browse files

games/openclonk: fix build on powerpc64le

Use GCC for its SSE -> AltiVec translation:
/usr/lib/clang/11.0.1/include/mmintrin.h:50:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
    return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
parent 1b6a8636
......@@ -28,8 +28,8 @@ LIB_DEPENDS= libalut.so:audio/freealut \
WRKSRC= ${WRKDIR}/openclonk-release-${PORTVERSION}-src
# make install has parallel issues with ninja
USES= cmake:noninja compiler:c++14-lang desktop-file-utils gl gnome \
jpeg openal pkgconfig sdl tar:bzip2 xorg
USES= cmake:noninja desktop-file-utils gl gnome jpeg openal \
pkgconfig sdl tar:bzip2 xorg
USE_GL= gl glew glu
USE_SDL= sdl2
USE_XORG= x11 xpm
......@@ -37,6 +37,15 @@ INSTALLS_ICONS= yes
CMAKE_ARGS= -DAudio_TK:STRING="OpenAL"
LDFLAGS_i386= -Wl,-znotext
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc64le
CFLAGS+= -DNO_WARN_X86_INTRINSICS
USES+= compiler:gcc-c++11-lib
.else
USES+= compiler:c++14-lang
.endif
post-patch:
@${REINPLACE_CMD} -e 's|DESTINATION games|DESTINATION bin|' \
-e 's|share/games|share|' ${WRKSRC}/CMakeLists.txt
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment