Skip to content

Commit

Permalink
multimedia/lms: Attempt to fix build failure on 13 by using clang-17
Browse files Browse the repository at this point in the history
clang-14 fails with a C++ error: object of type 'xx' cannot be compared

Reported by:	fallout
  • Loading branch information
yurivict committed Apr 5, 2024
1 parent c38c1ef commit e4bebf1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion multimedia/lms/Makefile
Expand Up @@ -18,7 +18,7 @@ LIB_DEPENDS= libavformat.so:multimedia/ffmpeg \
libwthttp.so:www/wt
RUN_DEPENDS= ffmpeg:multimedia/ffmpeg

USES= cmake compiler:c++20-lang cpe libarchive pkgconfig
USES= cmake cpe libarchive pkgconfig

USE_GITHUB= yes
GH_ACCOUNT= epoupon
Expand All @@ -42,6 +42,13 @@ MAGICK_DESC= Use GraphicsMagick++ as image library
MAGICK_LIB_DEPENDS= libGraphicsMagick.so:graphics/GraphicsMagick
MAGICK_CMAKE_BOOL= FREEBSD_USE_MAGICK

.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1400000
USES+= llvm:17 # fix the build failure on 13: error: object of type 'const lms::core::LiteralString' cannot be compared because its 'operator<=>' is implicitly deleted
.else
USES+= compiler:c++20-lang
.endif

post-patch:
@${REINPLACE_CMD} -e 's|"/etc/lms.conf"|"${PREFIX}/etc/lms.conf"|' \
${WRKSRC}/src/lms/main.cpp \
Expand Down

0 comments on commit e4bebf1

Please sign in to comment.