Copy of osx-environment at 9993042d6
[windows-environment.git] / Scripts / zip.sh
1 #!/bin/bash -e
2
3 # I'm building this static, as the shared libraries cmake spits out
4 # have their dependencies listed as @rpath/thing.dylib which confuses
5 # the DCP-o-matic build scripts.  I tried to make fucking cmake do 
6 # the same as everybody else and list deps with absolute paths but
7 # I failed.
8
9 set -e
10
11 tar xJf $CBS_ARCHIVES/libzip-1.7.3.tar.xz
12 mkdir -p libzip-build
13 cd libzip-build
14 CMAKE_OSX_ARCHITECTURES="$CBS_CLANG_ARCH" $CBS_CMAKE ../libzip-1.7.3 \
15    -DCMAKE_INSTALL_PREFIX=$CBS_ROOT -DCMAKE_OSX_SYSROOT=$CBS_MACOSX_SDK -DBUILD_SHARED_LIBS=FALSE
16 make $CBS_PARALLEL
17 make install
18
19