git: 035411345204 - main - graphics/geomview: Optionize INFO

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 22 Oct 2023 14:45:17 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0354113452045a4f98a36ec3ee148f502f7d0482

commit 0354113452045a4f98a36ec3ee148f502f7d0482
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-10-22 10:26:48 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-10-22 14:45:02 +0000

    graphics/geomview: Optionize INFO
    
    - Pet portclippy
---
 graphics/geomview/Makefile | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/graphics/geomview/Makefile b/graphics/geomview/Makefile
index 156d64025269..e9f5096799de 100644
--- a/graphics/geomview/Makefile
+++ b/graphics/geomview/Makefile
@@ -13,20 +13,26 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 RUN_DEPENDS=	xdg-open:devel/xdg-utils
 
-USES=		cpe gl libtool makeinfo motif tar:bzip2
-USE_GL=		glu
+USES=		cpe gl libtool motif tar:bzip2
+USE_GL=		gl glu
+USE_LDCONFIG=	yes
+USE_XORG=	ice sm x11 xext xmu xt
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-htmlbrowser=xdg-open --with-pdfviewer=xdg-open \
 		--with-motif=${LOCALBASE} --with-opengl=${LOCALBASE}
+
 INSTALL_TARGET=	install-strip
-USE_LDCONFIG=	yes
 
 PLIST_SUB=	VERSION="${PORTVERSION}"
 
-INFO=		geomview
+OPTIONS_DEFINE=		DOCS EXAMPLES INFO MOTION_AVG
+OPTIONS_DEFAULT=	INFO
 
-OPTIONS_DEFINE=		DOCS EXAMPLES MOTION_AVG
 MOTION_AVG_DESC=	Experimental motion averaging code
+
+INFO_USES=	makeinfo
+INFO_INFO=		geomview
 MOTION_AVG_CONFIGURE_ENABLE=	motion-averaging
 
 post-patch:
@@ -35,11 +41,11 @@ post-patch:
 		 /install-man/s|install-nobase_infoimgDATA||' \
 		${WRKSRC}/doc/Makefile.in
 
-post-build:
+post-build-INFO-on:
 	@(cd ${WRKSRC}/doc && makeinfo --no-split --no-validate \
 		-o geomview.info geomview.texi)
 
-post-install:
+post-install-INFO-on:
 	(cd ${WRKSRC}/doc && ${INSTALL_DATA} geomview.info \
 		${STAGEDIR}${PREFIX}/${INFO_PATH})