git: 34293e97fffc - main - x11-toolkits/py-fltk: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Aug 2023 23:40:43 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=34293e97fffc2f6e182d9c32b51316704b4f8d8f commit 34293e97fffc2f6e182d9c32b51316704b4f8d8f Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-07 23:34:18 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-07 23:34:18 +0000 x11-toolkits/py-fltk: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- x11-toolkits/py-fltk/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/x11-toolkits/py-fltk/Makefile b/x11-toolkits/py-fltk/Makefile index d266be019854..ba34a91d2f0c 100644 --- a/x11-toolkits/py-fltk/Makefile +++ b/x11-toolkits/py-fltk/Makefile @@ -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 @@ -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' \