mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
Try to fix the build of four of my ports against Clang 16
It now defaults to ISO C++17 which does not allow `register' storage class specifier [-Wregister]. Reported by: pkg-fallout
This commit is contained in:
parent
573a2873ad
commit
34b026b15a
@ -206,11 +206,10 @@ PLIST_SUB+= MP3="@comment "
|
||||
PLIST_SUB+= MP3=""
|
||||
.endif
|
||||
|
||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
|
||||
CPPFLAGS+= -Dregister=
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's,register ,,' \
|
||||
${WRKSRC}/plugins/adplug/adplug/rix.cpp \
|
||||
${WRKSRC}/plugins/adplug/libbinio/binio.cpp
|
||||
# Do not link to libsupc++ which may be PIC-unsafe (breaks 64-bit arches)
|
||||
@${REINPLACE_CMD} -e 's, -lsupc++,,' \
|
||||
${WRKSRC}/plugins/adplug/Makefile.in \
|
||||
|
@ -23,6 +23,8 @@ USE_XORG= x11
|
||||
MAKE_ARGS= config="systemlibcpuid systemlibwebp"
|
||||
|
||||
post-extract:
|
||||
@${REINPLACE_CMD} -e 's,register ,,' \
|
||||
${WRKSRC}/classes/gui/dialogs/colordlg.cpp
|
||||
# Prevent accidental build/use of bundled libraries' code/headers
|
||||
@${RM} -r ${WRKSRC}/libraries/fribidi ${WRKSRC}/libraries/lib* \
|
||||
${WRKSRC}/libraries/v8 ${WRKSRC}/libraries/zlib
|
||||
|
@ -22,7 +22,7 @@ RUN_DEPENDS= xdg-open:devel/xdg-utils \
|
||||
USES= desktop-file-utils gmake gnome jpeg pkgconfig
|
||||
USE_GNOME= cairo glib20 gdkpixbuf2 gtk30
|
||||
ALL_TARGET= fotoxx
|
||||
CXXFLAGS+= -Wno-writable-strings
|
||||
CXXFLAGS+= -Wno-register -Wno-writable-strings
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
|
@ -26,6 +26,7 @@ post-patch:
|
||||
|| defined(__FreeBSD__),' \
|
||||
${WRKSRC}/sfk.cpp ${WRKSRC}/sfkext.cpp
|
||||
@${REINPLACE_CMD} -e '/_STDINT_H/,+6d' ${WRKSRC}/sfkmatch.hpp
|
||||
@${REINPLACE_CMD} -e 's,^ *register, ,' ${WRKSRC}/sfkpack.cpp
|
||||
|
||||
post-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
|
Loading…
Reference in New Issue
Block a user