pkgsrc/lang/gcc45/preconfigure.mk
wiz 03cedf79c2 Initial import of gcc45-4.5.2 from pkgsrc-wip.
Packaged by Marko Schütz, improved by Kai-Uwe Eckhardt.

This is the gcc 4.5 compiler suite.

This package has a test target. For testing (only), this
package requires devel/dejagnu and devel/autogen.
2011-05-14 20:19:46 +00:00

11 lines
518 B
Makefile

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