git: 7c9c6b8cf7a7 - main - graphics/kludge3d: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 05 Aug 2023 11:53:36 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=7c9c6b8cf7a78af1dbcc8d2a44d6ae0d5d33a014 commit 7c9c6b8cf7a78af1dbcc8d2a44d6ae0d5d33a014 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-05 11:52:37 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-05 11:53:20 +0000 graphics/kludge3d: Fix build with llvm16 - Utilize USES=localbase - Pet portclippy Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- graphics/kludge3d/Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/graphics/kludge3d/Makefile b/graphics/kludge3d/Makefile index 4326e2fa63a0..50701e0b88d8 100644 --- a/graphics/kludge3d/Makefile +++ b/graphics/kludge3d/Makefile @@ -11,16 +11,23 @@ WWW= http://kludge3d.sourceforge.net/ LIB_DEPENDS= lib3ds.so:graphics/lib3ds \ libgtkglext-x11-1.0.so:x11-toolkits/gtkglext -USES= compiler:c++11-lang gl gmake gnome pkgconfig python +USES= compiler:c++11-lang gl gmake gnome localbase:ldflags pkgconfig python USE_GL= gl USE_GNOME= gtk20 + GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-lib-GL +CPPFLAGS+= -I${PYTHON_INCLUDEDIR} +LDFLAGS+= -L${PYTHON_LIBDIR}/config -lpthread -lm + PLIST_FILES= bin/kludge3d -CPPFLAGS+= -I${LOCALBASE}/include -I${PYTHON_INCLUDEDIR} -LDFLAGS+= -L${LOCALBASE}/lib -L${PYTHON_LIBDIR}/config -lpthread -lm +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CPPFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif post-patch: @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \