mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Add NOPORTDOCS support (pkg-plist)
- Use INSTALL_DATA to install docs - Use DOCSDIR PR: 29760 Approved by: hoek
This commit is contained in:
parent
4f1f07dd88
commit
92c2bf3806
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=53211
@ -21,18 +21,16 @@ CONFIGURE_ARGS= --enable-inews=${PREFIX}/news/lib/inews \
|
||||
|
||||
MAN1= uudeview.1 uuenview.1
|
||||
|
||||
PORTDOCDIR?= share/doc/uudeview
|
||||
|
||||
post-install:
|
||||
@/usr/bin/strip ${PREFIX}/bin/uudeview
|
||||
@/usr/bin/strip ${PREFIX}/bin/uuenview
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${ECHO_MSG} "===> Copying documents to ${PREFIX}/${PORTDOCDIR}"
|
||||
@${MKDIR} ${PREFIX}/${PORTDOCDIR}
|
||||
@${INSTALL_MAN} ${WRKSRC}/HOWTO ${PREFIX}/${PORTDOCDIR}
|
||||
@${INSTALL_MAN} ${FILESDIR}/porting.notes ${PREFIX}/${PORTDOCDIR}
|
||||
@${ECHO_MSG} "===> Installing documents to ${DOCSDIR}"
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/HOWTO ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${FILESDIR}/porting.notes ${DOCSDIR}
|
||||
.else
|
||||
@${ECHO_MSG} "===> Not copying available documents"
|
||||
@${ECHO_MSG} "===> Not installing available documents"
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,5 +1,5 @@
|
||||
share/doc/uudeview/HOWTO
|
||||
share/doc/uudeview/porting.notes
|
||||
bin/uudeview
|
||||
bin/uuenview
|
||||
@dirrm share/doc/uudeview
|
||||
%%PORTDOCS%%share/doc/uudeview/HOWTO
|
||||
%%PORTDOCS%%share/doc/uudeview/porting.notes
|
||||
%%PORTDOCS%%@dirrm share/doc/uudeview
|
||||
|
Loading…
Reference in New Issue
Block a user