Use PLIST_FILES/PORTDOCS
This commit is contained in:
parent
d049bce28c
commit
95e80732c4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=135938
2 changed files with 5 additions and 6 deletions
|
@ -22,13 +22,16 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
|
|||
MAKE_ARGS= CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS} ${CPPFLAGS}" \
|
||||
CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
||||
|
||||
DOCS= README TODO
|
||||
PLIST_FILES= bin/dvorakng
|
||||
.if !defined(NOPORTDOCS)
|
||||
PORTDOCS= README TODO
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/dvorakng ${PREFIX}/bin
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
bin/dvorakng
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/TODO
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Reference in a new issue