Use PLIST_FILES/PORTDOCS

This commit is contained in:
Volker Stolz 2005-05-19 13:14:13 +00:00
parent 81a0dd31cc
commit 860cb56369
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=135608
2 changed files with 5 additions and 6 deletions

View file

@ -20,7 +20,10 @@ USE_REINPLACE= yes
MAN1= spamoracle.1
MAN5= spamoracle.conf.5
DOC_FILES= Changes README
PLIST_FILES= bin/spamoracle
.ifndef(NOPORTDOCS)
PORTDOCS= Changes README
.endif
do-configure:
@${REINPLACE_CMD} -E -e 's|^(CPP=)gcc[[:space:]]+-E|\1${CPP}|' \
@ -31,7 +34,7 @@ do-configure:
post-install:
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${DOC_FILES}
.for file in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

View file

@ -1,4 +0,0 @@
bin/spamoracle
%%PORTDOCS%%%%DOCSDIR%%/Changes
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%@dirrm %%DOCSDIR%%