Skip to content

Commit

Permalink
graphics/kludge3d: Fix build with llvm16
Browse files Browse the repository at this point in the history
- Utilize USES=localbase
- Pet portclippy

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Aug 5, 2023
1 parent a556d7b commit 7c9c6b8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions graphics/kludge3d/Makefile
Expand Up @@ -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 \
Expand Down

0 comments on commit 7c9c6b8

Please sign in to comment.