pkgsrc/lang/gcc46/preconfigure.mk
wiz af495c007e Initial import of gcc46-4.6.0, packaged for wip by Kai-Uwe Eckhardt.
This is the gcc 4.6 compiler suite.

This package has a test target. For testing (only), this
package requires devel/dejagnu and devel/autogen.
2011-05-15 00:09:55 +00:00

11 lines
518 B
Makefile

# $NetBSD: preconfigure.mk,v 1.1.1.1 2011/05/15 00:09:56 wiz Exp $
# Create compiler driver scripts in ${WRKDIR}.
(${TEST} -d ${WRKDIR}/.gcc/bin || ${MKDIR} ${WRKDIR}/.gcc/bin)
(cd ${BUILDLINK_PREFIX.gcc46}/bin && bin_files=`${LS} *` && \
cd ${WRKDIR}/.gcc/bin && \
for _target_ in $${bin_files} ; do \
${ECHO} '#!${TOOLS_SHELL}' > $${_target_} && \
${ECHO_N} "exec ${BUILDLINK_PREFIX.gcc46}/bin/$${_target_}" >> $${_target_} && \
${ECHO} ' "$$@"' >> $${_target_} && \
${CHMOD} +x $${_target_}; \
done )