1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

graphics/kludge3d: Fix build with llvm16

- Utilize USES=localbase
- Pet portclippy

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Muhammad Moinur Rahman 2023-08-05 13:52:37 +02:00
parent a556d7b3f3
commit 7c9c6b8cf7

View File

@ -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 \