git: e4bebf182216 - main - multimedia/lms: Attempt to fix build failure on 13 by using clang-17
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 05 Apr 2024 02:01:59 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=e4bebf182216451f7bcbea281f77c00609514a49 commit e4bebf182216451f7bcbea281f77c00609514a49 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-04-05 02:00:19 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-04-05 02:01:55 +0000 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 --- multimedia/lms/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 \