Simplify docs installation.

PR:		241805
Submitted by:	amdmi3
This commit is contained in:
Cy Schubert 2019-11-09 15:16:47 +00:00
parent 782dc5261f
commit 8d3667cbe2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=517130
2 changed files with 4 additions and 18 deletions

View file

@ -34,26 +34,20 @@ MAKE_ENV= MAKEINFOFLAGS=--no-split
INSTALL_TARGET= install-strip
INFO= am-utils
DOCS= AUTHORS BUGS FAQ NEWS README.attrcache
PORTDOCS= AUTHORS BUGS FAQ NEWS README.attrcache
OPENLDAP_USES= localbase:ldflags
OPENLDAP_USE= OPENLDAP=yes
OPENLDAP_CONFIGURE_WITH= ldap
OPENLDAP_CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
CPPFLAGS="-I${LOCALBASE}/include"
OPENLDAP_VARS= DOCS+="README.ldap ldap-id.txt ldap.schema"
OPENLDAP_PORTDOCS= README.ldap ldap-id.txt ldap.schema
OPTIONS_SUB= yes
.include <bsd.port.options.mk>
post-patch:
@${RM} ${WRKSRC}/doc/am-utils.info*
post-install:
.if ${PORT_OPTIONS:MDOCS}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
.endif
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View file

@ -35,11 +35,3 @@ sbin/sun2amd
sbin/wait4amd
sbin/wait4amd2die
sbin/wire-test
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/BUGS
%%PORTDOCS%%%%DOCSDIR%%/FAQ
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README.attrcache
%%OPENLDAP%%%%PORTDOCS%%%%DOCSDIR%%/README.ldap
%%OPENLDAP%%%%PORTDOCS%%%%DOCSDIR%%/ldap-id.txt
%%OPENLDAP%%%%PORTDOCS%%%%DOCSDIR%%/ldap.schema