From 1f69e3be1520b2b5ec1f1e9b47ef91aca9899478 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Fri, 23 Jun 2023 21:29:08 +0200 Subject: graphics/djvulibre: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- graphics/djvulibre/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'graphics/djvulibre') diff --git a/graphics/djvulibre/Makefile b/graphics/djvulibre/Makefile index 375cefb64540..3dc7fe8f0ef1 100644 --- a/graphics/djvulibre/Makefile +++ b/graphics/djvulibre/Makefile @@ -38,6 +38,12 @@ DESKTOPFILES_DESC= Install icons and mime types DESKTOPFILES_CONFIGURE_ENABLE= desktopfiles DESKTOPFILES_USES= gnome +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CPPFLAGS+= -Dregister= +.endif + post-patch: # Remove custom optimization compiler flags @${REINPLACE_CMD} -e '/-[Og]\*)/d ; \ -- cgit v1.2.3