Skip to content

Commit

Permalink
x11-toolkits/py-fltk: Fix build with llvm16
Browse files Browse the repository at this point in the history
Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Aug 7, 2023
1 parent f893b34 commit 34293e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions x11-toolkits/py-fltk/Makefile
Expand Up @@ -17,6 +17,7 @@ LIB_DEPENDS= libfltk.so:x11-toolkits/fltk
CFLAGS+= -DFL_LIBRARY
MAKE_ENV= FLTK_HOME=${LOCALBASE}/bin
USES= python xorg
USE_CXXSTD= c++14
USE_PYTHON= autoplist distutils
USE_XORG= x11

Expand All @@ -28,6 +29,12 @@ WRKSRC= ${WRKDIR}/pyFltk-${PORTVERSION}

OPTIONS_DEFINE= DOCS EXAMPLES

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
CFLAGS+= -D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS
.endif

post-patch:
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/setup.py
@${REINPLACE_CMD} -e '/#pragma GCC diagnostic/d' \
Expand Down

0 comments on commit 34293e9

Please sign in to comment.