Skip to content

Commit

Permalink
graphics/gpaint: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Pet portclippy

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Aug 5, 2023
1 parent 54fb1ff commit 6c9df07
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions graphics/gpaint/Makefile
Expand Up @@ -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
Expand Down

0 comments on commit 6c9df07

Please sign in to comment.