diff options
author | clsung <clsung@FreeBSD.org> | 2006-08-14 12:07:36 +0800 |
---|---|---|
committer | clsung <clsung@FreeBSD.org> | 2006-08-14 12:07:36 +0800 |
commit | b71042019d054b1092af367cffa81d56712e578e (patch) | |
tree | 4be7f7ab85a2d96c84c3d9d608b02271b47188ad /textproc | |
parent | c4e6ed9655c3ba158586cd74a3d5a261d40ce3a9 (diff) | |
download | freebsd-ports-gnome-b71042019d054b1092af367cffa81d56712e578e.tar.gz freebsd-ports-gnome-b71042019d054b1092af367cffa81d56712e578e.tar.zst freebsd-ports-gnome-b71042019d054b1092af367cffa81d56712e578e.zip |
- Respect DESTDIR
- Use REINPLACE_CMD
PR: ports/101863
Submitted by: Gea-Suan Lin <gslin_AT_gslin dot org>
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/bib2html/Makefile | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/textproc/bib2html/Makefile b/textproc/bib2html/Makefile index 483b8161d282..9c18c3e4440b 100644 --- a/textproc/bib2html/Makefile +++ b/textproc/bib2html/Makefile @@ -22,18 +22,23 @@ USE_PERL5_RUN= yes NO_BUILD= yes post-patch: - @${SED} -e 's:= "$$0";:= "${PREFIX}/${SITE_PERL_REL}/Bib2HTML";:g' \ + @${REINPLACE_CMD} -e \ + 's:= "$$0";:= "${TARGETDIR}/${SITE_PERL_REL}/Bib2HTML";:g' \ < ${WRKSRC}/bib2html.pl > ${WRKSRC}/bib2html - @${SED} -e 's:= "$$0";:= "${PREFIX}/${SITE_PERL_REL}/Bib2HTML";:g' \ + @${REINPLACE_CMD} -e \ + 's:= "$$0";:= "${TARGETDIR}/${SITE_PERL_REL}/Bib2HTML";:g' \ < ${WRKSRC}/bib2xml.pl > ${WRKSRC}/bib2xml do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/bib2html ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/bib2xml ${PREFIX}/bin - @${MKDIR} ${PREFIX}/${SITE_PERL_REL}/Bib2HTML + ${INSTALL_SCRIPT} ${WRKSRC}/bib2html ${TARGETDIR}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/bib2xml ${TARGETDIR}/bin + @${MKDIR} ${TARGETDIR}/${SITE_PERL_REL}/Bib2HTML @cd ${WRKSRC}/Bib2HTML && ${FIND} . | \ - ${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/${SITE_PERL_REL}/Bib2HTML - ${FIND} ${PREFIX}/${SITE_PERL_REL}/Bib2HTML -type f | ${XARGS} ${CHMOD} ${LIBMODE} - ${FIND} ${PREFIX}/${SITE_PERL_REL}/Bib2HTML -type d | ${XARGS} ${CHMOD} a+rx + ${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} \ + ${TARGETDIR}/${SITE_PERL_REL}/Bib2HTML + ${FIND} ${TARGETDIR}/${SITE_PERL_REL}/Bib2HTML -type f | \ + ${XARGS} ${CHMOD} ${LIBMODE} + ${FIND} ${TARGETDIR}/${SITE_PERL_REL}/Bib2HTML -type d | \ + ${XARGS} ${CHMOD} a+rx .include <bsd.port.mk> |