summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2024-04-04 19:00:19 -0700
committerYuri Victorovich <yuri@FreeBSD.org>2024-04-04 19:01:55 -0700
commite4bebf182216451f7bcbea281f77c00609514a49 (patch)
treedbf08ecaad940bff802a14c46ff064e6ab7980ea /multimedia
parentmultimedia/obs-studio: Broken on i386 (diff)
multimedia/lms: Attempt to fix build failure on 13 by using clang-17
clang-14 fails with a C++ error: object of type 'xx' cannot be compared Reported by: fallout
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/lms/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/multimedia/lms/Makefile b/multimedia/lms/Makefile
index a7d444a98166..2cda1c1b7ebc 100644
--- a/multimedia/lms/Makefile
+++ b/multimedia/lms/Makefile
@@ -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
@@ -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 \