Skip to content

Instantly share code, notes, and snippets.

@david0
Last active December 7, 2015 08:00
Show Gist options
  • Save david0/e2a648f729f0ba786fe1 to your computer and use it in GitHub Desktop.
Save david0/e2a648f729f0ba786fe1 to your computer and use it in GitHub Desktop.
vamp-plugin-sdk makefile patch
--- Makefile.in.orig 2015-12-03 20:56:09.000000000 +0100
+++ Makefile.in 2015-12-04 07:27:19.000000000 +0100
@@ -103,16 +103,20 @@
# public entry point. It's not essential, but makes a tidier library.
PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS) -Wl,--version-script=build/vamp-plugin.map
-
-## For OS/X with g++:
-#DYNAMIC_LDFLAGS = -dynamiclib
-#PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS)
-#SDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS)
-#HOSTSDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS)
-
-
### End of user-serviceable parts
+# OS X
+uname_S = $(shell uname -s)
+ifeq ($(uname_S),Darwin)
+ DYNAMIC_LDFLAGS = -dynamiclib
+ PLUGIN_LDFLAGS = $(DYNAMIC_LDFLAGS)
+ SDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS)
+ HOSTSDK_DYNAMIC_LDFLAGS = $(DYNAMIC_LDFLAGS)
+ INSTALL_HOSTSDK_LIBNAME = libvamp-hostsdk.3.6.0.dylib
+ INSTALL_HOSTSDK_LINK_ABI = libvamp-hostsdk.3.dylib
+ INSTALL_SDK_LIBNAME = libvamp-sdk.2.6.0.dylib
+ INSTALL_SDK_LINK_ABI = libvamp-sdk.2.dylib
+endif
API_HEADERS = \
$(APIDIR)/vamp.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment