fix build/install process on -stable and -current

This commit is contained in:
Ying-Chieh Liao 2002-11-28 06:28:54 +00:00
parent c8c2e3a281
commit 578a063f99
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=71187

View file

@ -32,15 +32,13 @@ ALL_TARGET= # empty
post-patch:
@${REINPLACE_CMD} -e "s|/usr/local/lib/cdict5|${DATADIR}|" ${WRKSRC}/cdict5.h
post-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} index
do-install:
@${MKDIR} ${DATADIR}
${TAR} -zxf ${DISTDIR}/cdict5-file.tgz -C ${DATADIR} && \
${MV} ${DATADIR}/cdict5-file/* ${DATADIR} && \
${RMDIR} ${DATADIR}/cdict5-file
${INSTALL_PROGRAM} ${WRKSRC}/cdict5 ${PREFIX}/bin
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} index
${INSTALL_DATA} ${WRKSRC}/Index.gdbm ${DATADIR}
.include <bsd.port.post.mk>