blob: 7d661a00a75013da6ebf91d7259ffab397f982bc (
plain)
1
2
3
4
5
6
7
8
9
10
|
pkg:setup
cmake . -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DBUILD_SHARED_LIBS=True
make all
MachO::Tools.change_install_name("bin/libasl.dylib", "@rpath/libmp.3.dylib", "#{opt_lib}/libmp.dylib")
make DESTDIR=${PKG_DEST} install
mkdir_p libexec/"bin"
mv Dir[bin/"*.dll"], libexec/"bin"
%w[errchk.h jac2dim.h obj_adj.h].each { |h| cp "src/asl/solvers/#{h}", include/"asl" }
resource("miniampl").stage do
(pkgshare/"example").install "src/miniampl.c", Dir["examples/wb.*"]
|