diff options
author | Christian Federmann <cfedermann@dfki.de> | 2012-05-10 11:40:13 +0400 |
---|---|---|
committer | Christian Federmann <cfedermann@dfki.de> | 2012-05-10 11:40:13 +0400 |
commit | af9b02c59b2f40c93ba2fee39ec0e8397090e6e7 (patch) | |
tree | 1928ffc03d6e6d1a3d2db8743adf8e6bdcf2cb9a /jam-files | |
parent | c1cf0faf1441bcd06f3d13cfd4c00a06257aee03 (diff) |
Added new --with-macports option for using MacPorts on Mac OS X; this falls back to using /opt/local if no /path/to/macports is given and implicitly sets Boost parameters. Also note that this implies "using darwin ;" as compiler.
Diffstat (limited to 'jam-files')
-rw-r--r-- | jam-files/sanity.jam | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/jam-files/sanity.jam b/jam-files/sanity.jam index b5cb09481..47724461a 100644 --- a/jam-files/sanity.jam +++ b/jam-files/sanity.jam @@ -47,17 +47,30 @@ rule auto-shared ( name : additional * ) { } } -with-boost = [ option.get "with-boost" ] ; -if $(with-boost) { - L-boost-search = -L$(with-boost)/lib" "-L$(with-boost)/lib64 ; - boost-search = <search>$(with-boost)/lib <search>$(with-boost)/lib64 ; - I-boost-include = -I$(with-boost)/include ; - boost-include = <include>$(with-boost)/include ; -} else { - L-boost-search = "" ; - boost-search = ; - I-boost-include = "" ; - boost-include = ; +# MacPorts' default location is /opt/local -- use this if no path is given. +with-macports = [ option.get "with-macports" : : "/opt/local" ] ; +if $(with-macports) { + using darwin ; + ECHO "Using --with-macports=$(with-macports), implying use of darwin GCC" ; + + L-boost-search = -L$(with-macports)/lib ; + boost-search = <search>$(with-macports)/lib ; + I-boost-include = -I$(with-macports)/include ; + boost-include = <include>$(with-macports)/include ; +} +else { + with-boost = [ option.get "with-boost" ] ; + if $(with-boost) { + L-boost-search = -L$(with-boost)/lib" "-L$(with-boost)/lib64 ; + boost-search = <search>$(with-boost)/lib <search>$(with-boost)/lib64 ; + I-boost-include = -I$(with-boost)/include ; + boost-include = <include>$(with-boost)/include ; + } else { + L-boost-search = "" ; + boost-search = ; + I-boost-include = "" ; + boost-include = ; + } } #Are we linking static binaries against shared boost? |