depends_build

Anders F Björklund afb at macports.org
Sun Aug 21 03:35:25 PDT 2011


Mark Brethen wrote:

>> If it really makes a difference, you can set "build.type gnu".
>> That will make it use GNU make, even if it isn't the default...
>> 
>> On Mac OS X, "make" is a symlink to gnumake so it's already
>> the default and it's mostly something like "platforms darwin"
>> 
> After some digging, I found a test for make in scripts/make.sh:
> 
> # I REALLY want to use GNU make, so here is some stuff to try to
> # find a version. The "/usr/sfw" location is used on Solaris, while
> # "/usr/local" is a plausible place to look in case a user has built and
> # installed it for themselves. Some BSD variants will build imported
> # packages in /pkg/bin so I look there too...
> 
> if test "x$MAKE" = "x"
> then
>  if test -x /usr/sfw/bin/gmake
>  then MAKE=/usr/sfw/bin/gmake
>  elif test -x /usr/pkg/bin/gmake
>  then MAKE=/usr/pkg/bin/gmake
>  elif test -x /usr/local/bin/gmake
>  then MAKE=/usr/local/bin/gmake
>  elif test -x /usr/bin/gmake
>  then MAKE=/usr/bin/gmake
>  else MAKE=make
>  fi
>  export MAKE
> fi

All that effort, and it still misses /usr/bin/gnumake...

Anyway, build.cmd will have the path to the right make:

build.type gnu

build.env MAKE=${build.cmd}

Both bsdmake and gnumake are provided by base, so there's
no reason to use port dependencies unless *really* needed.

--anders



More information about the macports-dev mailing list