aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-06-24 11:16:44 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-06-24 12:03:41 +0000
commita62cb1f670c31ea80bbf73c18812d411b8b18028 (patch)
treea20bb2611d31e12dc207279841c3661a265a3204
parentced4dbad8d19aa40665c8f594ab6dabb571c574e (diff)
downloadports-a62cb1f670c31ea80bbf73c18812d411b8b18028.tar.gz
ports-a62cb1f670c31ea80bbf73c18812d411b8b18028.zip
devel/py-fam: Fix build with llvm16
Sponsored by: The FreeBSD Foundation
-rw-r--r--devel/py-fam/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/devel/py-fam/Makefile b/devel/py-fam/Makefile
index 4b845c503fe3..96adf88ce722 100644
--- a/devel/py-fam/Makefile
+++ b/devel/py-fam/Makefile
@@ -16,16 +16,20 @@ LICENSE_FILE= ${WRKSRC}/COPYING
USES= python:3.6+ fam
USE_PYTHON= distutils autoplist
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=int-conversion
.endif
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
pre-patch:
${INSTALL_DATA} ${FILESDIR}/setup.py ${WRKSRC}
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_fam*.so
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>