- Add stage support
- Add DOCS and EXAMPLES options
This commit is contained in:
parent
b747b0e4d7
commit
27921e969f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331995
@ -17,23 +17,21 @@ USES= imake
|
||||
USE_XORG= x11
|
||||
NO_INSTALL_MANPAGES= yes
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
pre-build:
|
||||
@${TOUCH} ${WRKSRC}/client.man ${WRKSRC}/server.man
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/client ${PREFIX}/bin/antipolix-client
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/server ${PREFIX}/bin/antipolix-server
|
||||
@${MKDIR} ${PREFIX}/share/examples/antipolix
|
||||
${INSTALL_DATA} ${WRKSRC}/.motd ${PREFIX}/share/examples/antipolix/dot.motd.sample
|
||||
${INSTALL_DATA} ${WRKSRC}/.players ${PREFIX}/share/examples/antipolix/dot.players.sample
|
||||
${INSTALL_DATA} ${WRKSRC}/.server_defaults ${PREFIX}/share/examples/antipolix/dot.server_defaults.sample
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${PREFIX}/share/doc/antipolix
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/client ${STAGEDIR}${PREFIX}/bin/antipolix-client
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/server ${STAGEDIR}${PREFIX}/bin/antipolix-server
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/.motd ${STAGEDIR}${EXAMPLESDIR}/dot.motd.sample
|
||||
${INSTALL_DATA} ${WRKSRC}/.players ${STAGEDIR}${EXAMPLESDIR}/dot.players.sample
|
||||
${INSTALL_DATA} ${WRKSRC}/.server_defaults ${STAGEDIR}${EXAMPLESDIR}/dot.server_defaults.sample
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
.for file in ANTIPOLIX_RULES CLIENT_USE COPYRIGHT SERVER_USE
|
||||
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/antipolix
|
||||
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,11 +1,11 @@
|
||||
bin/antipolix-client
|
||||
bin/antipolix-server
|
||||
%%PORTDOCS%%share/doc/antipolix/ANTIPOLIX_RULES
|
||||
%%PORTDOCS%%share/doc/antipolix/CLIENT_USE
|
||||
%%PORTDOCS%%share/doc/antipolix/COPYRIGHT
|
||||
%%PORTDOCS%%share/doc/antipolix/SERVER_USE
|
||||
share/examples/antipolix/dot.motd.sample
|
||||
share/examples/antipolix/dot.players.sample
|
||||
share/examples/antipolix/dot.server_defaults.sample
|
||||
%%PORTDOCS%%@dirrm share/doc/antipolix
|
||||
@dirrm share/examples/antipolix
|
||||
%%PORTDOCS%%%%DOCSDIR%%/ANTIPOLIX_RULES
|
||||
%%PORTDOCS%%%%DOCSDIR%%/CLIENT_USE
|
||||
%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
|
||||
%%PORTDOCS%%%%DOCSDIR%%/SERVER_USE
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dot.motd.sample
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dot.players.sample
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dot.server_defaults.sample
|
||||
%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%
|
||||
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user