git: 6c9df079871c - main - graphics/gpaint: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 05 Aug 2023 18:01:35 UTC
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