1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

- Unmute INSTALL_DATA

- Make docs unconditional to stage
  * Remove bsd.port.options.mk, accordingly
- Improve REINPLACE_CMD statement

Pointed out by:	danfe@ (on ports-committers@ and svn-ports-all@)
This commit is contained in:
TAKATSU Tomonari 2014-01-15 15:20:21 +00:00
parent 3c8b98f0c7
commit 859fea0cea
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339784

View File

@ -18,17 +18,13 @@ PLIST_FILES= bin/silentbob
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
@${RM} ${WRKSRC}/CMakeCache.txt
@${REINPLACE_CMD} -e 's|/usr/lib/silent_bob/|${PREFIX}/lib/silent_bob/|' \
@${REINPLACE_CMD} -e '/lib\/silent_bob/s|/usr|${PREFIX}|' \
${WRKSRC}/src/init.cxx
.if ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>