blob: 2e3445ba49ec08aa996321f9638ba15faa4015d0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
pkg:setup
ENV.deparallelize
cmake . -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DBUILD_MATLAB=OFF -DBUILD_OCTAVE=OFF -DWITH_CXX=ON
else
pkg:configure --enable-shared --with-cxx --without-octave
make
end
make DESTDIR=${PKG_DEST} install
%w[0.dylib dylib a].each do |suffix|
lib.install_symlink "#{lib}/libnlopt_cxx.#{suffix}" => "#{lib}/libnlopt.#{suffix}"
|