SConstruct: find Libzip on Darwin

Add a `pkg-config` statement for Darwin in SConstruct to help
scons find the Libzip includes.  Patch from Homebrew.  Fixes
compile error with llvm-gcc.

Fixes #274
This commit is contained in:
nibbles 2bits 2012-07-13 17:19:16 -07:00
parent 7467e11147
commit 80a9317d8b

View File

@ -90,6 +90,7 @@ if sys.platform == 'darwin': #Mac OS X
boost_prefix = subprocess.check_output(["brew", "--prefix", "boost"]).strip()
env.Append(CPPPATH = [boost_prefix+"/include"] )
env.Append(LIBPATH = [boost_prefix+"/lib"] )
env.ParseConfig('pkg-config --cflags --libs libzip')
elif sys.platform.startswith("freebsd"):
env.ParseConfig('pkg-config --cflags --libs protobuf')
env.Append(CPPPATH = ['/usr/local/include', '/usr/local/include/libxml2'])