Index: ports/Mk/bsd.gcc.mk =================================================================== RCS file: /home/pcvs/ports/Mk/bsd.gcc.mk,v retrieving revision 1.50 diff -u -r1.50 bsd.gcc.mk --- ports/Mk/bsd.gcc.mk 1 Feb 2011 01:41:19 -0000 1.50 +++ ports/Mk/bsd.gcc.mk 9 Mar 2011 14:08:08 -0000 @@ -106,6 +106,9 @@ MAKE_ENV+= F77="${F77}" FC="${FC}" FFLAGS="${FFLAGS}" .endif +.if defined(USE_GCC_BUILD) && !defined(USE_GCC) +USE_GCC= ${USE_GCC_BUILD} +.endif .if defined(USE_GCC) @@ -200,7 +203,9 @@ .if defined(_GCC_BUILD_DEPENDS) BUILD_DEPENDS+= ${_GCC_PORT_DEPENDS}:${PORTSDIR}/lang/${_GCC_BUILD_DEPENDS} . if ${_USE_GCC} != 3.4 +. if !defined(USE_GCC_BUILD) RUN_DEPENDS+= ${_GCC_PORT_DEPENDS}:${PORTSDIR}/lang/${_GCC_BUILD_DEPENDS} +. endif . if ${_USE_GCC} != 4.2 # Later GCC ports already depend on binutils; make sure whatever we # build leverages this as well. Index: ports/Mk/bsd.port.mk =================================================================== RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v retrieving revision 1.674 diff -u -r1.674 bsd.port.mk --- ports/Mk/bsd.port.mk 7 Mar 2011 07:32:05 -0000 1.674 +++ ports/Mk/bsd.port.mk 9 Mar 2011 14:08:11 -0000 @@ -311,6 +311,8 @@ # the regular expression. # USE_GCC - If set, this port requires this version of gcc, either in # the system or installed from a port. +# USE_GCC_BUILD - If set, this port builds using this version of gcc, +# but adds no runtime dependency. # USE_CSTD - Override the default C language standard (gnu89, gnu99) # USE_BINUTILS - Use binutils suite from port instead of the version in base. # USE_GMAKE - If set, this port uses gmake. @@ -1744,7 +1746,7 @@ CONFIGURE_ENV+= MAKE=${GMAKE} .endif -.if defined(USE_GCC) || defined(USE_FORTRAN) +.if defined(USE_GCC) || defined(USE_GCC_BUILD) || defined(USE_FORTRAN) .include "${PORTSDIR}/Mk/bsd.gcc.mk" .endif