Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Aug 2023 18:01:35 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: 6c9df079871c - main - graphics/gpaint: Fix build with llvm16
Message-ID:  <202308051801.375I1Z8j090154@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=6c9df079871c3a3a8642a29fd18aa48dbd38625b

commit 6c9df079871c3a3a8642a29fd18aa48dbd38625b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-05 15:09:45 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-05 18:01:11 +0000

    graphics/gpaint: Fix build with llvm16
    
    - Pet portclippy
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 graphics/gpaint/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/graphics/gpaint/Makefile b/graphics/gpaint/Makefile
index b40a434e369d..ee13293eb9f5 100644
--- a/graphics/gpaint/Makefile
+++ b/graphics/gpaint/Makefile
@@ -13,12 +13,20 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		gnome libtool pkgconfig
 USE_GNOME=	gtk20 libglade2
+
 GNU_CONFIGURE=	yes
+
 LIBS+=		-lm
 
 PLIST_FILES=	${DATADIR}/glade/gpaint.glade \
 		bin/gpaint-2
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e \
 		's|_RESPONSE_DISCARD|_RESPONSE_NO|g' ${WRKSRC}/src/drawing.c



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