pkg:setup cmake ./ -USE_SKINNED -USE_ENCA -USE_QMMP_DIALOG -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} make DESTDIR=${PKG_DEST} install cd (lib.to_s) Dir["*.dylib", "qmmp/*/*.so"].select { |f| File.ftype(f) == "file" }.each do |f| MachO::Tools.dylibs(f).select { |d| d.start_with?("/tmp") }.each do |d| bname = File.dirname(d) d_new = d.sub(bname, opt_lib.to_s) MachO::Tools.change_install_name(f, d, d_new)