Fix r521031 to correctly handle the case when texinfo is already installed

but INFO is off.
This commit is contained in:
Marius Strobl 2019-12-28 17:55:15 +00:00
parent d3f1615832
commit 52cfc9b501
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=521228

View file

@ -40,8 +40,13 @@ WRKSRC= ${WRKDIR}/call/cvs-build
DESTDIRNAME= NADA
MAKE_ARGS= DESTDIR=${STAGEDIR}${PREFIX}
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e "s,/info/,/${INFO_PATH}/,g" ${WRKSRC}/Makefile.inc
.if !${PORT_OPTIONS:MINFO}
@${REINPLACE_CMD} -e "s,doc,,g" ${WRKSRC}/Makefile
.endif
pre-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/contrib