git: 609457fe58e4 - main - net/boinc-client: add keyword.h include for boinc_curses

From: Larry Rosenman <ler_at_FreeBSD.org>
Date: Wed, 10 Aug 2022 17:03:35 UTC
The branch main has been updated by ler:

URL: https://cgit.FreeBSD.org/ports/commit/?id=609457fe58e48f3acfb99a7b72eec69195473439

commit 609457fe58e48f3acfb99a7b72eec69195473439
Author:     Larry Rosenman <ler@FreeBSD.org>
AuthorDate: 2022-08-10 17:02:43 +0000
Commit:     Larry Rosenman <ler@FreeBSD.org>
CommitDate: 2022-08-10 17:02:43 +0000

    net/boinc-client: add keyword.h include for boinc_curses
    
    portfmt run as well.
---
 net/boinc-client/Makefile  | 144 +++++++++++++++++++++++++--------------------
 net/boinc-client/pkg-plist |   1 +
 2 files changed, 82 insertions(+), 63 deletions(-)

diff --git a/net/boinc-client/Makefile b/net/boinc-client/Makefile
index 0ef41735e773..0218a713b6f7 100644
--- a/net/boinc-client/Makefile
+++ b/net/boinc-client/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	boinc-client
 PORTVERSION=	7.20.2
-PORTREVISION=	1
+PORTREVISION=	2
 DISTVERSIONPREFIX=	client_release/7.20/
 CATEGORIES=	net
 
@@ -9,8 +9,8 @@ COMMENT=	Berkeley Open Infrastructure for Network Computing client
 
 LICENSE=	LGPL3
 
-USES=		autoreconf compiler:c++11-lang dos2unix gettext gmake \
-		libtool pkgconfig ssl tar:xz
+USES=		autoreconf compiler:c++11-lang dos2unix gettext gmake libtool \
+		pkgconfig ssl tar:xz
 INSTALL_TARGET=	install-strip
 GNU_CONFIGURE=	yes
 USE_GITHUB=	yes
@@ -26,64 +26,69 @@ BOINC_CLIENT_USER?=	boinc
 BOINC_CLIENT_GROUP?=	boinc
 BOINC_CLIENT_HOME?=	/var/db/boinc
 
-SUB_FILES=	pkg-install pkg-deinstall
-SUB_LIST=	BOINC_CLIENT_HOME="${BOINC_CLIENT_HOME}" \
+SUB_FILES=	pkg-deinstall pkg-install
+SUB_LIST=	BOINC_CLIENT_GROUP="${BOINC_CLIENT_GROUP}" \
+		BOINC_CLIENT_HOME="${BOINC_CLIENT_HOME}" \
 		BOINC_CLIENT_USER="${BOINC_CLIENT_USER}" \
-		BOINC_CLIENT_GROUP="${BOINC_CLIENT_GROUP}" \
-		PREFIX="${PREFIX}" LOCALBASE="${LOCALBASE}"
+		LOCALBASE="${LOCALBASE}" \
+		PREFIX="${PREFIX}"
 
 CONFIGURE_ARGS=	--disable-server
 CONFIGURE_ENV=	OBJCXX="${CXX}"
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib -lexecinfo
 
-OPTIONS_DEFINE=		CLIENT MANAGER NLS X11 LINUX USER SKINS
-OPTIONS_DEFAULT=	CLIENT MANAGER X11 USER
+OPTIONS_DEFINE=		CLIENT LINUX MANAGER NLS SKINS USER X11
+OPTIONS_DEFAULT=	CLIENT MANAGER USER X11
 OPTIONS_GROUP=		SCRIPT
 OPTIONS_GROUP_SCRIPT=	NO_GUI_RPC NO_NET_INFO
-CLIENT_DESC=		Build BOINC client
-MANAGER_DESC=		Build BOINC manager GUI
-X11_DESC=		Build graphics API
-LINUX_DESC=		Accept Linux science applications
-USER_DESC=		Create/check BOINC client user and directory
-SKINS_DESC=		Install more skins for BOINC manager
-SCRIPT_DESC=		Command line options in script
-NO_GUI_RPC_DESC=	Disable GUI RPC and socket (breaks boinc_curses)
-NO_NET_INFO_DESC=	Do not send host address and name to servers
-
-OPTIONS_SUB=		yes
-
-MANAGER_LIB_DEPENDS=	libnotify.so:devel/libnotify \
-			libfontconfig.so:x11-fonts/fontconfig \
-			libsqlite3.so:databases/sqlite3 \
-			libxcb-util.so:x11/xcb-util
-MANAGER_CONFIGURE_ON=	--with-sqlite3-prefix=${LOCALBASE}
-MANAGER_CONFIGURE_OFF=	--with-wx-config=false --without-x
-MANAGER_CONFIGURE_ENABLE=manager
-MANAGER_USES=		gnome iconv
-MANAGER_USE=		GNOME=cairo,gdkpixbuf2,glib20,gtk20,pango \
-			XORG=xcb,x11,xext,xscrnsaver WX=3.0
-
-CLIENT_CONFIGURE_ENABLE=client
-CLIENT_LIB_DEPENDS=	libcurl.so:ftp/curl \
-			libfreetype.so:print/freetype2
-CLIENT_RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
-CLIENT_USE=		RC_SUBR=boinc-client
+CLIENT_DESC=		BOINC Build client
+MANAGER_DESC=		BOINC Build GUI manager
+X11_DESC=		API Build graphics
+LINUX_DESC=		Accept applications Linux science
+USER_DESC=		and BOINC client Create/check directory user
+SKINS_DESC=		BOINC for Install manager more skins
+SCRIPT_DESC=		Command in line options script
+NO_GUI_RPC_DESC=	(breaks and boinc_curses) Disable GUI RPC socket
+NO_NET_INFO_DESC=	address and Do host name not send servers to
+
+OPTIONS_SUB=	yes
+
+MANAGER_LIB_DEPENDS=		libfontconfig.so:x11-fonts/fontconfig \
+				libnotify.so:devel/libnotify \
+				libsqlite3.so:databases/sqlite3 \
+				libxcb-util.so:x11/xcb-util
+MANAGER_CONFIGURE_ON=		--with-sqlite3-prefix=${LOCALBASE}
+MANAGER_CONFIGURE_OFF=		--with-wx-config=false \
+				--without-x
+MANAGER_CONFIGURE_ENABLE=	manager
+MANAGER_USES=			gnome iconv
+MANAGER_USE=			GNOME=cairo,gdkpixbuf2,glib20,gtk20,pango \
+				WX=3.0 \
+				XORG=x11,xcb,xext,xscrnsaver
+
+CLIENT_CONFIGURE_ENABLE=	client
+CLIENT_LIB_DEPENDS=		libcurl.so:ftp/curl \
+				libfreetype.so:print/freetype2
+CLIENT_RUN_DEPENDS=		${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
+CLIENT_USE=			RC_SUBR=boinc-client
 
 LINUX_CONFIGURE_ON=	--with-boinc-alt-platform=i686-pc-linux-gnu
 LINUX_USES=		linux
 
-X11_USES=		jpeg gl xorg
-X11_USE=		GL=glut XORG=x11,xscrnsaver,xmu,xi
-X11_CONFIGURE_OFF=	--without-x ax_cv_check_glut_libglut=no
+X11_USES=		gl jpeg xorg
+X11_USE=		GL=glut \
+			XORG=x11,xi,xmu,xscrnsaver
+X11_CONFIGURE_OFF=	--without-x \
+			ax_cv_check_glut_libglut=no
 
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MMANAGER}
-WX_CONF_ARGS=	absolute
-SUB_LIST+=	OPTION_MANAGER="true"
+WX_CONF_ARGS=		absolute
+SUB_LIST+=		OPTION_MANAGER="true"
 .else
-SUB_LIST+=	OPTION_MANAGER=""
+SUB_LIST+=		OPTION_MANAGER=""
 CONFIGURE_ARGS+=	--disable-manager
 .endif
 
@@ -101,51 +106,64 @@ SUB_LIST+=	OPTION_USER=""
 post-patch:
 	@${REINPLACE_CMD} -e 's|@PREFIX@|${PREFIX}|' \
 		${WRKSRC}/client/hostinfo_unix.cpp
-	@${REINPLACE_CMD} -e 's|client/scripts||' ${WRKSRC}/Makefile.am
+	@${REINPLACE_CMD} -e 's|client/scripts||' \
+		${WRKSRC}/Makefile.am
 # avoid build conflict with archivers/libzip
-	@${MV} ${WRKSRC}/zip/unzip/zip.h ${WRKSRC}/zip/unzip/boinczip.h
-	@${MV} ${WRKSRC}/zip/zip/zip.h ${WRKSRC}/zip/zip/boinczip.h
+	@${MV} ${WRKSRC}/zip/unzip/zip.h \
+		${WRKSRC}/zip/unzip/boinczip.h
+	@${MV} ${WRKSRC}/zip/zip/zip.h \
+		${WRKSRC}/zip/zip/boinczip.h
 	@${REINPLACE_CMD} -e 's|zip/zip.h|zip/boinczip.h|' \
-	    ${WRKSRC}/zip/boinc_zip.cpp
+		${WRKSRC}/zip/boinc_zip.cpp
 	@${REINPLACE_CMD} -e 's|"zip.h"|"boinczip.h"|' \
-	    ${WRKSRC}/zip/unzip/crc32.c ${WRKSRC}/zip/unzip/ttyio.c \
-	    ${WRKSRC}/zip/zip/deflate.c ${WRKSRC}/zip/zip/trees.c \
-	    ${WRKSRC}/zip/zip/unix/z_unix.c ${WRKSRC}/zip/zip/util.c \
-	    ${WRKSRC}/zip/zip/z_fileio.c ${WRKSRC}/zip/zip/z_globals.c \
-	    ${WRKSRC}/zip/zip/zip.c ${WRKSRC}/zip/zip/zipfile.c \
-	    ${WRKSRC}/zip/zip/zipup.c
+		${WRKSRC}/zip/unzip/crc32.c \
+		${WRKSRC}/zip/unzip/ttyio.c \
+		${WRKSRC}/zip/zip/deflate.c \
+		${WRKSRC}/zip/zip/trees.c \
+		${WRKSRC}/zip/zip/unix/z_unix.c \
+		${WRKSRC}/zip/zip/util.c \
+		${WRKSRC}/zip/zip/z_fileio.c \
+		${WRKSRC}/zip/zip/z_globals.c \
+		${WRKSRC}/zip/zip/zip.c \
+		${WRKSRC}/zip/zip/zipfile.c \
+		${WRKSRC}/zip/zip/zipup.c
 
 post-patch-X11-off:
-	@${REINPLACE_CMD} -e 's|enable_xss="yes"|enable_xss="no"|' ${WRKSRC}/configure.ac
+	@${REINPLACE_CMD} -e 's|enable_xss="yes"|enable_xss="no"|' \
+		${WRKSRC}/configure.ac
 
 post-install:
-.for name in config.h project_specific_defines.h api/reduce.h \
+.for name in config.h project_specific_defines.h api/reduce.h lib/keyword.h \
 	lib/opencl_boinc.h lib/shmem.h lib/std_fixes.h lib/str_replace.h
-	${INSTALL_DATA} ${WRKSRC}/${name} ${STAGEDIR}${PREFIX}/include/boinc
+	${INSTALL_DATA} ${WRKSRC}/${name} \
+		${STAGEDIR}${PREFIX}/include/boinc
 .endfor
 
 post-install-MANAGER-on:
 	${MKDIR} ${STAGEDIR}${PREFIX}/share/boinc
 .for name in 16 32 48
 	${INSTALL_DATA} ${WRKSRC}/packages/generic/sea/boincmgr.${name}x${name}.png \
-	    ${STAGEDIR}${PREFIX}/share/pixmaps
+		${STAGEDIR}${PREFIX}/share/pixmaps
 .endfor
 .if ${PORT_OPTIONS:MSKINS}
 	(cd ${WRKSRC}/clientgui && \
-	${COPYTREE_SHARE} skins ${STAGEDIR}${PREFIX}/share/boinc/ )
+		${COPYTREE_SHARE} skins ${STAGEDIR}${PREFIX}/share/boinc/ \
+		)
 .else
 	${MKDIR} ${STAGEDIR}${PREFIX}/share/boinc/skins
 	(cd ${WRKSRC}/clientgui/skins && \
-	${COPYTREE_SHARE} Default ${STAGEDIR}${PREFIX}/share/boinc/skins/ )
+		${COPYTREE_SHARE} Default ${STAGEDIR}${PREFIX}/share/boinc/skins/ \
+		)
 .endif
 
 post-install-X11-on:
-.for name in api/boinc_gl.h api/graphics_api.h api/graphics_data.h \
-	api/ttfont.h
-	${INSTALL_DATA} ${WRKSRC}/${name} ${STAGEDIR}${PREFIX}/include/boinc
+.for name in api/boinc_gl.h api/graphics_api.h api/graphics_data.h api/ttfont.h
+	${INSTALL_DATA} ${WRKSRC}/${name} \
+		${STAGEDIR}${PREFIX}/include/boinc
 .endfor
 	${MKDIR} ${STAGEDIR}${PREFIX}/share/boinc/ttf
 	(cd ${WRKSRC}/api/ttf/liberation-fonts-ttf-2.00.0 && \
-	    ${COPYTREE_SHARE} \*.ttf ${STAGEDIR}${PREFIX}/share/boinc/ttf/ )
+		${COPYTREE_SHARE} \*.ttf ${STAGEDIR}${PREFIX}/share/boinc/ttf/ \
+		)
 
 .include <bsd.port.mk>
diff --git a/net/boinc-client/pkg-plist b/net/boinc-client/pkg-plist
index 6f1a4ef26c51..fdcdb12da7bc 100644
--- a/net/boinc-client/pkg-plist
+++ b/net/boinc-client/pkg-plist
@@ -25,6 +25,7 @@ include/boinc/graphics2.h
 include/boinc/gui_rpc_client.h
 include/boinc/gutil.h
 include/boinc/hostinfo.h
+include/boinc/keyword.h
 include/boinc/md5.h
 include/boinc/md5_file.h
 include/boinc/mem_usage.h