git: 1f69e3be1520 - main - graphics/djvulibre: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 23 Jun 2023 19:30:59 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1f69e3be1520b2b5ec1f1e9b47ef91aca9899478
commit 1f69e3be1520b2b5ec1f1e9b47ef91aca9899478
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-23 19:29:08 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-23 19:30:42 +0000
graphics/djvulibre: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
graphics/djvulibre/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
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 <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CPPFLAGS+= -Dregister=
+.endif
+
post-patch:
# Remove custom optimization compiler flags
@${REINPLACE_CMD} -e '/-[Og]\*)/d ; \