From 9c3257077e0a7993524aae9c4202ec27bef9f888 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sat, 9 Sep 2017 20:40:40 -0500 Subject: [PATCH] Fix Makefile dist --- Info.plist | 4 ++-- Makefile | 33 ++++++++++++++++++++------------- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/Info.plist b/Info.plist index a6b358d1..0c07db4c 100644 --- a/Info.plist +++ b/Info.plist @@ -19,7 +19,7 @@ CFBundleExecutable Rack CFBundleIconFile - + icon CFBundleLongVersionString 0.0.0 CFBundleShortVersionString @@ -27,6 +27,6 @@ NSPrincipalClass NSApplication NSHighResolutionCapable - NO + YES diff --git a/Makefile b/Makefile index fb08844d..c463782a 100644 --- a/Makefile +++ b/Makefile @@ -84,27 +84,34 @@ ifeq ($(ARCH), lin) cp dep/lib/libsamplerate.so.0 dist/Rack/ endif ifeq ($(ARCH), mac) + mkdir -p $(BUNDLE) mkdir -p $(BUNDLE)/Contents + mkdir -p $(BUNDLE)/Contents/Resources cp Info.plist $(BUNDLE)/Contents/ mkdir -p $(BUNDLE)/Contents/MacOS cp Rack $(BUNDLE)/Contents/MacOS/ + cp icon.icns $(BUNDLE)/Contents/Resources/ otool -L $(BUNDLE)/Contents/MacOS/Rack - # cp /usr/local/opt/glew/lib/libGLEW.2.0.0.dylib $(BUNDLE)/Contents/MacOS/ - # cp /usr/local/opt/jansson/lib/libjansson.4.dylib $(BUNDLE)/Contents/MacOS/ - # cp /usr/local/opt/portaudio/lib/libportaudio.2.dylib $(BUNDLE)/Contents/MacOS/ - # cp /usr/local/opt/portmidi/lib/libportmidi.dylib $(BUNDLE)/Contents/MacOS/ - # cp /usr/local/opt/libsamplerate/lib/libsamplerate.0.dylib $(BUNDLE)/Contents/MacOS/ - # cp /usr/local/opt/libzip/lib/libzip.4.dylib $(BUNDLE)/Contents/MacOS/ - - # install_name_tool -change /usr/local/opt/glew/lib/libGLEW.2.0.0.dylib @executable_path/libGLEW.2.0.0.dylib $(BUNDLE)/Contents/MacOS/Rack - # install_name_tool -change /usr/local/opt/jansson/lib/libjansson.4.dylib @executable_path/libjansson.4.dylib $(BUNDLE)/Contents/MacOS/Rack - # install_name_tool -change /usr/local/opt/portaudio/lib/libportaudio.2.dylib @executable_path/libportaudio.2.dylib $(BUNDLE)/Contents/MacOS/Rack - # install_name_tool -change /usr/local/opt/portmidi/lib/libportmidi.dylib @executable_path/libportmidi.dylib $(BUNDLE)/Contents/MacOS/Rack - # install_name_tool -change /usr/local/opt/libsamplerate/lib/libsamplerate.0.dylib @executable_path/libsamplerate.0.dylib $(BUNDLE)/Contents/MacOS/Rack - # install_name_tool -change /usr/local/opt/libzip/lib/libzip.4.dylib @executable_path/libzip.4.dylib $(BUNDLE)/Contents/MacOS/Rack + cp dep/lib/libGLEW.2.1.0.dylib $(BUNDLE)/Contents/MacOS/ + cp dep/lib/libglfw.3.dylib $(BUNDLE)/Contents/MacOS/ + cp dep/lib/libjansson.4.dylib $(BUNDLE)/Contents/MacOS/ + cp dep/lib/libsamplerate.0.dylib $(BUNDLE)/Contents/MacOS/ + cp dep/lib/libcurl.4.dylib $(BUNDLE)/Contents/MacOS/ + cp dep/lib/libzip.5.dylib $(BUNDLE)/Contents/MacOS/ + cp dep/lib/libportaudio.2.dylib $(BUNDLE)/Contents/MacOS/ + cp dep/lib/libportmidi.dylib $(BUNDLE)/Contents/MacOS/ + + install_name_tool -change /usr/local/lib/libGLEW.2.1.0.dylib @executable_path/libGLEW.2.1.0.dylib $(BUNDLE)/Contents/MacOS/Rack + install_name_tool -change lib/libglfw.3.dylib @executable_path/libglfw.3.dylib $(BUNDLE)/Contents/MacOS/Rack + install_name_tool -change $(PWD)/dep/lib/libjansson.4.dylib @executable_path/libjansson.4.dylib $(BUNDLE)/Contents/MacOS/Rack + install_name_tool -change $(PWD)/dep/lib/libsamplerate.0.dylib @executable_path/libsamplerate.0.dylib $(BUNDLE)/Contents/MacOS/Rack + install_name_tool -change $(PWD)/dep/lib/libcurl.4.dylib @executable_path/libcurl.4.dylib $(BUNDLE)/Contents/MacOS/Rack + install_name_tool -change $(PWD)/dep/lib/libzip.5.dylib @executable_path/libzip.5.dylib $(BUNDLE)/Contents/MacOS/Rack + install_name_tool -change $(PWD)/dep/lib/libportaudio.2.dylib @executable_path/libportaudio.2.dylib $(BUNDLE)/Contents/MacOS/Rack + install_name_tool -change @rpath/libportmidi.dylib @executable_path/libportmidi.dylib $(BUNDLE)/Contents/MacOS/Rack otool -L $(BUNDLE)/Contents/MacOS/Rack