1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

Fix build/install on 4.x by using gmake+gunzip.

PR:		ports/103216
Submitted by:	Stanislav Sedov <ssedov@mbsd.msk.ru>
This commit is contained in:
Shaun Amott 2006-09-13 16:39:47 +00:00
parent 750745277b
commit f56132fe63
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=172951

View File

@ -26,6 +26,10 @@ DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME}
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/lang/ocaml/bsd.ocaml.mk"
.if ${OSVERSION} < 500000
USE_GMAKE= yes
.endif
post-extract:
@${REINPLACE_CMD} -e "s,^\(OCAMLLIB=\).*,\1${PREFIX}/lib/ocaml,g" \
-e "s,^\(BINDIR=\).*,\1${PREFIX}/bin,g" \
@ -51,8 +55,8 @@ pre-install:
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${TAR} -C ${DOCSDIR} -xf \
${_DISTDIR}/${PORTNAME}-${PORTVERSION}.doc.html.tar.gz
${GZCAT} ${_DISTDIR}/${PORTNAME}-${PORTVERSION}.doc.html.tar.gz \
| ${TAR} -C ${DOCSDIR} -xf -
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
${FIND} ${DOCSDIR}/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;
.endif