From 47613a2f585146d64b1ef280411abc1a51cc8137 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Fri, 23 Jun 2023 21:09:55 +0200 Subject: [PATCH] print/cups-filters: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- print/cups-filters/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/print/cups-filters/Makefile b/print/cups-filters/Makefile index 02e238386b8f7..31fdd056aeac3 100644 --- a/print/cups-filters/Makefile +++ b/print/cups-filters/Makefile @@ -133,6 +133,12 @@ PSPOPPLER_RUN_DEPENDS= pdftops:graphics/poppler-utils PSPOPPLER_CONFIGURE_ON= --with-pdftops=pdftops PSPOPPLER_DESC= Poppler pdftops(1) +.include + +.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}&|' \