CONFIGURE_ARGS+= --with-gcc=${CCPATH}
.endif
-USE_TOOLS+= gmake gtar perl:run
+USE_TOOLS+= gmake gtar perl:run
CONFIGURE_ENV+= PerlCmd=${PERL5:Q}
# We don't want to extract all of the DISTFILEs.
${PHASE_MSG} "Preparing bootstrap compiler for ${PKGNAME}" && \
${RM} -rf bootstrap && \
${MKDIR} -p bootstrap/${DISTNAME}/utils/ghc-pwd/dist-boot && \
- ${GTAR} -cf - ${DISTNAME} | ${GTAR} -C bootstrap -xpf - && \
+ ${GTAR} -cf - ${DISTNAME} | ${GTAR} -C bootstrap -xf - && \
${LN} -sf ${PWD_CMD} bootstrap/${DISTNAME}/utils/ghc-pwd/dist-boot/ghc-pwd && \
${TOUCH} ${.TARGET}
${TOUCH} ${.TARGET}
${WRKDIR}/stamp-extract-hc: ${WRKDIR}/stamp-configure-hc-boot
- ${RUN} cd ${WRKDIR}/bootstrap/${DISTNAME} && \
+ ${RUN} cd ${WRKDIR}/bootstrap && \
${PHASE_MSG} "Extracting bootstrap HC archive for ${PKGNAME}" && \
- (cd .. && ${GTAR} -jxf ${DISTDIR}/${BOOTSTRAP_TARBALL}) && \
- ${SH} mkfiles && \
+ ${FIND} ${DISTNAME} -type d -o -type f | ${XARGS} ${TOUCH} -t 200001010000 && \
+ ${GTAR} -jxf ${DISTDIR}/${BOOTSTRAP_TARBALL} && \
+ (cd ${DISTNAME} && ${SH} mkfiles) && \
${TOUCH} ${.TARGET}
${WRKDIR}/stamp-rewrite-hc-paths: ${WRKDIR}/stamp-extract-hc