pkgsrc/lang/gcc44/preconfigure.mk
dmcmahill 020b7090b4 Import gcc-4.4.1 as lang/gcc44. This is the latest branch of gcc.
Of particular note is this package contains gfortran which is required
for building some scientific software (recent versions of scilab
for example).  Package is prepared as a monolithic install of gcc
since gcc is really not set up to build and install the core and then
later add on different languages as their own packages.
2009-09-18 11:24:50 +00:00

11 lines
525 B
Makefile

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