git: e3e88f28d081 - main - x11-toolkits/xmhtml: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Jun 2023 18:10:14 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e3e88f28d081315136f99e5614cedea25f58d332
commit e3e88f28d081315136f99e5614cedea25f58d332
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 17:31:54 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 18:10:02 +0000
x11-toolkits/xmhtml: Fix build with llvm16
- Pet portclippy
- Adopt port
Sponsored by: The FreeBSD Foundation
---
x11-toolkits/xmhtml/Makefile | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/x11-toolkits/xmhtml/Makefile b/x11-toolkits/xmhtml/Makefile
index 6fba34584334..409035c88147 100644
--- a/x11-toolkits/xmhtml/Makefile
+++ b/x11-toolkits/xmhtml/Makefile
@@ -3,7 +3,7 @@ PORTVERSION= 1.1.10
CATEGORIES= x11-toolkits www
MASTER_SITES= SF/${PORTNAME:tl}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= bofh@FreeBSD.org
COMMENT= Motif widget set for displaying HTML 3.2 documents
WWW= https://sourceforge.net/projects/xmhtml/
@@ -13,14 +13,21 @@ LICENSE_FILE= ${WRKSRC}/COPYING.LIB
LIB_DEPENDS= libpng.so:graphics/png
USES= gmake jpeg libtool:build motif pkgconfig tar:tgz xorg
-USE_XORG= xft xmu xpm xt
USE_LDCONFIG= yes
+USE_XORG= xft xmu xpm xt
-LIBTOOL= libtool
MAKE_ENV= LIBTOOL=${LIBTOOL}
OPTIONS_DEFINE= DOCS EXAMPLES
+LIBTOOL= libtool
+
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
do-install:
(cd ${WRKSRC}/lib && ${LIBTOOL} --mode=install ${INSTALL_DATA} \
libXmHTML.la ${STAGEDIR}${PREFIX}/lib)