Skip to content

Commit

Permalink
print/cups-filters: 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 Jun 23, 2023
1 parent 9b38437 commit 47613a2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions print/cups-filters/Makefile
Expand Up @@ -133,6 +133,12 @@ PSPOPPLER_RUN_DEPENDS= pdftops:graphics/poppler-utils
PSPOPPLER_CONFIGURE_ON= --with-pdftops=pdftops
PSPOPPLER_DESC= Poppler pdftops(1)

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
CFLAGS+= -Wno-error=dynamic-exception-spec
.endif

post-patch:
@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
-e 's|/etc|${PREFIX}&|' \
Expand Down

0 comments on commit 47613a2

Please sign in to comment.