Skip to content

Commit

Permalink
games/openclonk: Fix link on 14-CURRENT i386
Browse files Browse the repository at this point in the history
Fix build on 14-CURRENT i386 by disabling dynamic relocation checks with
lld 15.

While here, since this port is BROKEN_powerpc64, remove the old powerpc
build flags.

PR:		271500
MFH:		2023Q2
  • Loading branch information
Partmedia authored and clausecker committed May 21, 2023
1 parent 52f31be commit 35a33a5
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions games/openclonk/Makefile
Expand Up @@ -27,25 +27,22 @@ LIB_DEPENDS= libalut.so:audio/freealut \
WRKSRC= ${WRKDIR}/openclonk-release-${PORTVERSION}-src

# make install has parallel issues with ninja
USES= cmake:noninja desktop-file-utils gl gnome jpeg openal \
USES= cmake:noninja compiler:c++14-lang desktop-file-utils gl gnome jpeg openal \
pkgconfig sdl tar:bzip2 xorg
USE_GL= gl glew glu
USE_SDL= sdl2
USE_XORG= x11 xpm
CMAKE_ARGS= -DAudio_TK:STRING="OpenAL"
LDFLAGS_i386= -Wl,-znotext

.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>

.if ${ARCH} == powerpc64le
CFLAGS+= -DNO_WARN_X86_INTRINSICS
USES+= compiler:gcc-c++11-lib
.else
USES+= compiler:c++14-lang
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150
LDFLAGS_i386+= -Wl,--no-check-dynamic-relocations
.endif

post-patch:
@${REINPLACE_CMD} -e 's|DESTINATION games|DESTINATION bin|' \
-e 's|share/games|share|' ${WRKSRC}/CMakeLists.txt

.include <bsd.port.mk>
.include <bsd.port.post.mk>

0 comments on commit 35a33a5

Please sign in to comment.