aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-06-24 17:27:34 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-06-24 18:10:02 +0000
commitc42df690ad53ca97fe8b78c53f861cbff838d147 (patch)
tree23ac49e4d6af06ff15b242cc750d338195dac51b
parent8a4ae08814823be994b752387aa5d33fba7797c8 (diff)
downloadports-c42df690ad53ca97fe8b78c53f861cbff838d147.tar.gz
ports-c42df690ad53ca97fe8b78c53f861cbff838d147.zip
textproc/discount: Fix build with llvm16
Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
-rw-r--r--textproc/discount/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/textproc/discount/Makefile b/textproc/discount/Makefile
index bec1db4494e5..a49535c576db 100644
--- a/textproc/discount/Makefile
+++ b/textproc/discount/Makefile
@@ -38,6 +38,12 @@ EXTRA_CONFIGURE_ON= --with-dl=both --with-fenced-code --with-github-tags --with-
SAMPLES_INSTALL_TARGET= install.samples
TAB8_CONFIGURE_ON= --with-tabstops=8
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
post-install:
${INSTALL_DATA} ${WRKSRC}/libmarkdown.a ${STAGEDIR}${PREFIX}/lib/libmarkdown.a
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmarkdown.so