diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2017-12-01 22:52:51 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2017-12-01 22:52:51 +0800 |
commit | 4cfc96a9b99a2558d3694e1692c2918580855834 (patch) | |
tree | 8735bc750d755086666574207d615a3fef5f6512 /sysutils | |
parent | 179d6b282d68be0787802d4cc5de24fdc7b4fc7e (diff) | |
download | freebsd-ports-gnome-4cfc96a9b99a2558d3694e1692c2918580855834.tar.gz freebsd-ports-gnome-4cfc96a9b99a2558d3694e1692c2918580855834.tar.zst freebsd-ports-gnome-4cfc96a9b99a2558d3694e1692c2918580855834.zip |
- Switch to options helpers
Approved by: portmgr blanket
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/xmbmon/Makefile | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/sysutils/xmbmon/Makefile b/sysutils/xmbmon/Makefile index 8adfec65563b..e038d43721ff 100644 --- a/sysutils/xmbmon/Makefile +++ b/sysutils/xmbmon/Makefile @@ -42,35 +42,31 @@ CLI_PLIST_FILES= "@mode 4555"\ bin/mbmon \ @mode\ man/man1/mbmon.1.gz - -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MCLI} -USE_RC_SUBR= mbmon -.endif +CLI_VARS= USE_RC_SUBR=mbmon 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> |