Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 2019 18:25:47 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r506301 - head/net/spoofer
Message-ID:  <201907091825.x69IPlT1088843@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Tue Jul  9 18:25:47 2019
New Revision: 506301
URL: https://svnweb.freebsd.org/changeset/ports/506301

Log:
  Convert to options helper
  
  - Move USES=qt:5 to GUI option: users with GUI disabled do not need this
  - Add USES=gl
  
  Submitted by:	sunpoet (myself)
  Approved by:	Matthew Luckie <mjl@luckie.org.nz> (maintainer)

Modified:
  head/net/spoofer/Makefile

Modified: head/net/spoofer/Makefile
==============================================================================
--- head/net/spoofer/Makefile	Tue Jul  9 18:25:19 2019	(r506300)
+++ head/net/spoofer/Makefile	Tue Jul  9 18:25:47 2019	(r506301)
@@ -16,7 +16,7 @@ BUILD_DEPENDS=	protoc:devel/protobuf
 LIB_DEPENDS=	libprotobuf-lite.so:devel/protobuf
 RUN_DEPENDS=	scamper:net/scamper
 
-USES=		compiler:c++11-lib qt:5
+USES=		compiler:c++11-lib
 
 CONFIGURE_ARGS=	--disable-development --with-protobuf=${LOCALBASE}
 GNU_CONFIGURE=	yes
@@ -27,29 +27,20 @@ OPTIONS_DEFINE=	DOCS GUI
 OPTIONS_DEFAULT=GUI
 OPTIONS_SUB=	yes
 
-.include <bsd.port.options.mk>
+GUI_CONFIGURE_ENABLE=	manager
+GUI_USE=	GL=gl QT=buildtools_build,qmake_build,core,network,gui,widgets
+GUI_USES=	gl qt:5
+GUI_VARS=	USE_RC_SUBR=${PORTNAME}
 
-.if ${PORT_OPTIONS:MGUI}
-USE_QT=		buildtools_build qmake_build core network gui widgets
-USE_GL+=	gl
-USE_RC_SUBR=	${PORTNAME}
-.else
-CONFIGURE_ARGS+=	--disable-manager
-.endif
+do-install-DOCS-on:
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
-post-install:
-.if ${PORT_OPTIONS:MGUI}
+do-install-GUI-on:
 .for r in 16 32 48 64 128 256
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${r}x${r}/apps
 	${INSTALL_DATA} ${WRKSRC}/icons/spoofer${r}.png \
 		${STAGEDIR}${PREFIX}/share/icons/hicolor/${r}x${r}/apps/spoofer.png
-.endfor
-.endif
-
-do-install-DOCS-on:
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
 .endfor
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907091825.x69IPlT1088843>