Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Aug 2023 14:17:16 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: b71fa5b6b7f6 - main - editors/zile: Fix build with llvm16
Message-ID:  <202308021417.372EHGbm021453@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=b71fa5b6b7f610fc3a5bcb16962b7da61cd5444a

commit b71fa5b6b7f610fc3a5bcb16962b7da61cd5444a
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-02 13:44:59 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-02 14:16:42 +0000

    editors/zile: Fix build with llvm16
    
    - Pet port{clippy|fmt}
    - Utilize USES=localbase
    
    Sponsored by:   The FreeBSD Foundation
---
 editors/zile/Makefile | 29 ++++++++++++++++++-----------
 1 file changed, 18 insertions(+), 11 deletions(-)

diff --git a/editors/zile/Makefile b/editors/zile/Makefile
index 14ac9cd182a8..2e29b2af73e4 100644
--- a/editors/zile/Makefile
+++ b/editors/zile/Makefile
@@ -9,26 +9,33 @@ WWW=		https://www.gnu.org/software/zile/
 
 LICENSE=	GPLv3
 
-LIB_DEPENDS=	libgc.so:devel/boehm-gc \
-		libgnuregex.so.6:devel/libgnuregex \
-		libgee-0.8.so:devel/libgee
 BUILD_DEPENDS=	${LOCALBASE}/bin/help2man:misc/help2man
+LIB_DEPENDS=	libgc.so:devel/boehm-gc \
+		libgee-0.8.so:devel/libgee \
+		libgnuregex.so.6:devel/libgnuregex
 
-USES=		gmake gnome ncurses perl5 pkgconfig compiler:c++11-lang
-USE_PERL5=	build
+USES=		compiler:c++11-lang gmake gnome localbase:ldflags  \
+		ncurses perl5 pkgconfig
 USE_GNOME=	glib20
+USE_PERL5=	build
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--without-included-regex
 
-PLIST_FILES=	bin/${PORTNAME} \
+LDFLAGS+=	-lgnuregex
+
+PLIST_FILES= bin/${PORTNAME} \
 		man/man1/${PORTNAME}.1.gz \
 		%%DOCSDIR%%/AUTHORS \
+		%%DOCSDIR%%/dotzile.sample \
 		%%DOCSDIR%%/FAQ \
-		%%DOCSDIR%%/NEWS \
-		%%DOCSDIR%%/dotzile.sample
+		%%DOCSDIR%%/NEWS
+
+.include <bsd.port.pre.mk>
 
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib -lgnuregex
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e \
@@ -36,4 +43,4 @@ post-patch:
 	@${REINPLACE_CMD} -e \
 		's|@pkgdatadir@|${DOCSDIR}|' ${WRKSRC}/doc/man-extras
 
-.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.372EHGbm021453>