Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Aug 2023 14:17:17 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 7fdc5a965b8d - main - x11-fm/fsv2: Fix build with llvm16
Message-ID:  <202308021417.372EHHWv021472@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7fdc5a965b8dd5ddf06fee1b96308009a4688359

commit 7fdc5a965b8dd5ddf06fee1b96308009a4688359
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-02 13:56:35 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-02 14:16:42 +0000

    x11-fm/fsv2: Fix build with llvm16
    
    - Pet portclippy
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 x11-fm/fsv2/Makefile | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/x11-fm/fsv2/Makefile b/x11-fm/fsv2/Makefile
index e4ef26ed2fa7..21aa1f10bb33 100644
--- a/x11-fm/fsv2/Makefile
+++ b/x11-fm/fsv2/Makefile
@@ -18,19 +18,27 @@ LIB_DEPENDS=	libgtkgl-2.0.so:x11-toolkits/gtkglarea2 \
 
 USES=		compiler:c++11-lang tar:bzip2 libtool gettext-runtime gl gnome \
 		pkgconfig
+USE_GL=		gl glu
 USE_GNOME=	gtkmm24 atkmm glibmm pangomm cairomm libsigc++20 gtk20 atk \
 		cairo gdkpixbuf2
-USE_GL=		gl glu
-
 USE_LDCONFIG=	yes
+
 GNU_CONFIGURE=	yes
 
+INSTALL_TARGET=	install-strip
+
 OPTIONS_DEFINE=	DOCS NLS
 OPTIONS_SUB=	yes
 
 NLS_USES=		gettext
 NLS_CONFIGURE_ENABLE=	nls
 
-INSTALL_TARGET=	install-strip
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+	@${REINPLACE_CMD} -e 's|auto_ptr|unique_ptr|' \
+		${WRKSRC}/uilib/ColorCellRenderer.cpp
+.endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308021417.372EHHWv021472>