aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-23 14:51:00 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-23 15:53:02 +0000
commit10a048804600b194ba3eff825a34a024ed2a085d (patch)
treed583a4b0ff5f16c321292c5640298b7a7eee1c96
parent9edad843b52da3902aa8bf57691d94e887ca45dc (diff)
downloadports-10a048804600b194ba3eff825a34a024ed2a085d.tar.gz
ports-10a048804600b194ba3eff825a34a024ed2a085d.zip
x11-toolkits/tktable: Fix build with llvm16
- Pet portclippy Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
-rw-r--r--x11-toolkits/tktable/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/x11-toolkits/tktable/Makefile b/x11-toolkits/tktable/Makefile
index 2ad4cba4e085..36610f8dec8f 100644
--- a/x11-toolkits/tktable/Makefile
+++ b/x11-toolkits/tktable/Makefile
@@ -14,11 +14,18 @@ LICENSE_NAME= Tcl/Tk License
LICENSE_FILE= ${WRKSRC}/license.txt
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
-USES+= tk:tea
+USES= tk:tea
TCL_PKG= ${DISTNAME}
USE_LDCONFIG= ${PREFIX}/lib/${DISTNAME}
+
TEST_TARGET= test
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's/FreeBSD-\*/FreeBSD-*|DragonFly-*/' \
${WRKSRC}/configure