git: 1e24408a4ad6 - main - textproc/wv: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 23 Jun 2023 19:31:00 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1e24408a4ad64d80bcdb1f8e426cbae3e5413977
commit 1e24408a4ad64d80bcdb1f8e426cbae3e5413977
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-23 19:29:45 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-23 19:30:42 +0000
textproc/wv: Fix build with llvm16
- Pet portclippy
- Adopt port
Sponsored by: The FreeBSD Foundation
---
textproc/wv/Makefile | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/textproc/wv/Makefile b/textproc/wv/Makefile
index a6dd4c7d7b9e..a199e5b67889 100644
--- a/textproc/wv/Makefile
+++ b/textproc/wv/Makefile
@@ -4,7 +4,7 @@ PORTREVISION= 7
CATEGORIES= textproc
MASTER_SITES= http://www.abisource.com/downloads/wv/${PORTVERSION}/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= bofh@FreeBSD.org
COMMENT= Library and executables to access Microsoft Word files
WWW= http://wvware.sourceforge.net/
@@ -17,15 +17,22 @@ LIB_DEPENDS= libfreetype.so:print/freetype2 \
USES= gmake gnome jpeg pkgconfig libtool xorg
USE_GNOME= libgsf
-USE_XORG= x11
USE_LDCONFIG= yes
+USE_XORG= x11
GNU_CONFIGURE= yes
-CONFIGURE_ENV= MKDIR_P="${MKDIR}"
CONFIGURE_ARGS= --with-png=${LOCALBASE} \
--with-libwmf=${LOCALBASE}
+CONFIGURE_ENV= MKDIR_P="${MKDIR}"
+
MAKEFILE= GNUmakefile
-MAKE_ARGS+= pkgconfigdir="${PREFIX}/libdata/pkgconfig"
-MAKE_ARGS+= INSTALL_STRIP_FLAG="${STRIP}"
+MAKE_ARGS+= pkgconfigdir="${PREFIX}/libdata/pkgconfig" \
+ INSTALL_STRIP_FLAG="${STRIP}"
+
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
.include <bsd.port.mk>