svn commit: r403343 - head/games/tomenet

Dmitry Marakasov amdmi3 at FreeBSD.org
Tue Dec 8 19:29:16 UTC 2015


Author: amdmi3
Date: Tue Dec  8 19:29:14 2015
New Revision: 403343
URL: https://svnweb.freebsd.org/changeset/ports/403343

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

Modified:
  head/games/tomenet/Makefile

Modified: head/games/tomenet/Makefile
==============================================================================
--- head/games/tomenet/Makefile	Tue Dec  8 19:28:19 2015	(r403342)
+++ head/games/tomenet/Makefile	Tue Dec  8 19:29:14 2015	(r403343)
@@ -20,6 +20,8 @@ MAKE_JOBS_UNSAFE=	yes
 
 SUB_FILES=	pkg-message
 
+OPTIONS_DEFINE=	DOCS
+
 do-install:
 .for f in tomenet tomenet.server accedit
 	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
@@ -29,14 +31,8 @@ do-install:
 	${MKDIR} ${STAGEDIR}${ETCDIR}
 	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/.tomenetrc ${STAGEDIR}${ETCDIR}/tomenetrc
 
-OPTIONS_DEFINE=	DOCS
-
-.include <bsd.port.options.mk>
-
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/TomeNET-Guide.txt ${STAGEDIR}${DOCSDIR}
-.endif
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list