summaryrefslogtreecommitdiff
path: root/homebrew/dlib/.make.sh-auto
blob: 6edda4c567a4c80c87990d05a5eb5478df5aa4d2 (plain)
1
2
3
4
5
6
7
8
9
pkg:setup
ENV.cxx11
args = std_cmake_args + %W[-DDLIB_USE_BLAS=ON -DDLIB_USE_LAPACK=ON -Dcblas_lib=#{Formula["openblas"].opt_lib}/libopenblas.dylib -Dlapack_lib=#{Formula["openblas"].opt_lib}/libopenblas.dylib -DDLIB_NO_GUI_SUPPORT=ON -DUSE_SSE2_INSTRUCTIONS=ON ]
if MacOS.version.requires_sse4?
args << "-DUSE_SSE4_INSTRUCTIONS=ON"
end
mkdir "dlib/build" && cd dlib/build
cmake .. *args
make DESTDIR=${PKG_DEST} install