blob: 9d0f4d3a19f5213b584b38d4d71628a1c3afa93b (
plain)
1
2
3
4
5
6
7
8
9
|
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)
|