Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Dec 2017 14:52:51 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r455295 - head/sysutils/xmbmon
Message-ID:  <201712011452.vB1Eqpui003041@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Dec  1 14:52:51 2017
New Revision: 455295
URL: https://svnweb.freebsd.org/changeset/ports/455295

Log:
  - Switch to options helpers
  
  Approved by:	portmgr blanket

Modified:
  head/sysutils/xmbmon/Makefile

Modified: head/sysutils/xmbmon/Makefile
==============================================================================
--- head/sysutils/xmbmon/Makefile	Fri Dec  1 14:10:54 2017	(r455294)
+++ head/sysutils/xmbmon/Makefile	Fri Dec  1 14:52:51 2017	(r455295)
@@ -42,35 +42,31 @@ CLI_PLIST_FILES=	"@mode 4555"\
 			bin/mbmon \
 			@mode\
 			man/man1/mbmon.1.gz
+CLI_VARS=		USE_RC_SUBR=mbmon
 
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MCLI}
-USE_RC_SUBR=	mbmon
-.endif
-
 post-patch:
 	@${REINPLACE_CMD} -e 's+/usr/share/doc/mbmon+${DOCSDIR}+' \
 		${WRKSRC}/mbmon.1
-.if ${PORT_OPTIONS:MSMB}
+
+post-patch-SMB-on:
 	@${REINPLACE_CMD} -e 's/^DEFS=/&-DSMBUS_IOCTL /' ${WRKSRC}/Makefile.in
-.endif
 
 do-install:
-.if ${PORT_OPTIONS:MX11}
+	@${DO_NADA}
+
+do-install-X11-on:
 	${INSTALL_PROGRAM} ${WRKSRC}/xmbmon \
 		${STAGEDIR}${PREFIX}/bin
 	${INSTALL_DATA} ${WRKSRC}/xmbmon.resources \
 		${STAGEDIR}${PREFIX}/lib/X11/app-defaults/XMBmon
 	${INSTALL_MAN} ${WRKSRC}/xmbmon.1x ${STAGEDIR}${MANPREFIX}/man/man1
-.endif
-.if ${PORT_OPTIONS:MCLI}
+
+do-install-CLI-on:
 	${INSTALL_PROGRAM} ${WRKSRC}/mbmon ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/mbmon.1 ${STAGEDIR}${MANPREFIX}/man/man1
-.endif
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
-.endif
 
 .include <bsd.port.mk>



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