diff options
Diffstat (limited to 'homebrew/qmmp/.make.sh-auto')
-rw-r--r-- | homebrew/qmmp/.make.sh-auto | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/homebrew/qmmp/.make.sh-auto b/homebrew/qmmp/.make.sh-auto new file mode 100644 index 000000000..9d0f4d3a1 --- /dev/null +++ b/homebrew/qmmp/.make.sh-auto @@ -0,0 +1,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) |