Re: Various FreeBSD bits...

Matt Palmer
Tue, 13 Nov 2007 19:29:53 -0000

On Tue, Nov 13, 2007 at 09:22:37AM -0800, Sean Chittenden
wrote:
> eg:  right now I use:
>
> class freebsd {
>    $_cflags = $cflags ? { '''' => '''',
default => $cflags }
>    $_cxxflags = $cxxflags ? { '''' =>
'''', default => $cxxflags }
>
>    $_supfile = $supfile ? { '''' =>
''/etc/supfile'', default => $supfile }
>    $_kernconf = $kernconf ? { '''' =>
''GENERIC'', default => $kernconf }
>
>    $_portsdir = $portsdir ? { '''' =>
''/usr/ports'', default => $portsdir }
>    $_srcdir = $srcdir ? { '''' => /usr/src'',
default => $srcdir }
>    $_objdir = $objdir ? { '''' => /usr/obj'',
default => $objdir }
>    ...
> }

For the sake of all that is holy, USE A DEFINE!

- Matt