Skip to content

Commit

Permalink
Try to fix the build of four of my ports against Clang 16
Browse files Browse the repository at this point in the history
It now defaults to ISO C++17 which does not allow `register'
storage class specifier [-Wregister].

Reported by:	pkg-fallout
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Jun 28, 2023
1 parent 573a287 commit 34b026b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
7 changes: 3 additions & 4 deletions audio/deadbeef/Makefile
Expand Up @@ -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 \
Expand Down
2 changes: 2 additions & 0 deletions devel/smooth/Makefile
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion graphics/fotoxx/Makefile
Expand Up @@ -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}

Expand Down
1 change: 1 addition & 0 deletions misc/swissfileknife/Makefile
Expand Up @@ -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}
Expand Down

0 comments on commit 34b026b

Please sign in to comment.