1 |
if HAVE_AU |
2 |
|
3 |
plugindir = $(libdir)/au |
4 |
examples_dir = $(DEVELOPER_EXTRAS_DIR) |
5 |
au_public_dir = $(examples_dir)/CoreAudio/AudioUnits/AUPublic |
6 |
ca_public_dir = $(examples_dir)/CoreAudio/PublicUtility |
7 |
LinuxSamplerAU_CPPFLAGS = -I$(au_public_dir)/AUBase -I$(au_public_dir)/OtherBases \ |
8 |
-I$(au_public_dir)/Utility -I$(ca_public_dir) $(GIG_CFLAGS) $(SQLITE3_CFLAGS) $(SNDFILE_CFLAGS) |
9 |
|
10 |
noinst_PROGRAMS = LinuxSamplerAU |
11 |
|
12 |
# Uncomment for debug messages. |
13 |
#debug_messages = -DAU_DEBUG_DISPATCHER=1 |
14 |
|
15 |
LinuxSamplerAU_SOURCES = PluginAU.cpp PluginAU.h PluginAUVersion.h ausdk.cpp |
16 |
|
17 |
LinuxSamplerAU_LDADD = $(top_builddir)/src/liblinuxsampler.la |
18 |
|
19 |
if HAVE_AUFLAGS |
20 |
else |
21 |
AUFLAGS = $(GIG_LIBS) $(JACK_LIBS) $(SQLITE3_LIBS) $(SNDFILE_LIBS) |
22 |
endif |
23 |
|
24 |
LinuxSamplerAU_CPPFLAGS += $(debug_messages) |
25 |
LinuxSamplerAU_LDFLAGS = -bundle $(AUFLAGS) \ |
26 |
-exported_symbols_list $(srcdir)/PluginAU.exp \ |
27 |
-framework CoreServices -framework CoreMIDI -framework CoreAudio \ |
28 |
-framework CoreFoundation -framework AudioToolbox -framework AudioUnit |
29 |
|
30 |
COMPONENT_DIR = LinuxSamplerAU.component |
31 |
|
32 |
all-local: $(COMPONENT_DIR) |
33 |
|
34 |
LinuxSamplerAU.rsrc: $(srcdir)/PluginAU.r $(srcdir)/PluginAUVersion.h |
35 |
Rez $(srcdir)/PluginAU.r -d SystemSevenOrLater=1 -useDF -script Roman -d ppc_YES -d i386_YES -d x86_64_YES \ |
36 |
-I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/Current/Headers \ |
37 |
-I $(au_public_dir)/AUBase/ -arch i386 -arch x86_64 -arch ppc -o LinuxSamplerAU.rsrc |
38 |
|
39 |
$(COMPONENT_DIR): $(srcdir)/PkgInfo $(srcdir)/Info.plist LinuxSamplerAU LinuxSamplerAU.rsrc |
40 |
mkdir -p "$(COMPONENT_DIR)/Contents/Frameworks" |
41 |
mkdir -p "$(COMPONENT_DIR)/Contents/MacOS" |
42 |
mkdir -p "$(COMPONENT_DIR)/Contents/Resources" |
43 |
|
44 |
cp $(srcdir)/PkgInfo "$(COMPONENT_DIR)/Contents" |
45 |
cp $(srcdir)/Info.plist "$(COMPONENT_DIR)/Contents" |
46 |
$(LIBTOOL) --mode=install cp LinuxSamplerAU "$(PWD)/$(COMPONENT_DIR)/Contents/MacOS" |
47 |
cp LinuxSamplerAU.rsrc "$(COMPONENT_DIR)/Contents/Resources" |
48 |
@touch $@ |
49 |
|
50 |
# cp "`pkg-config --variable=libdir gig`/libgig.6.dylib" "$(COMPONENT_DIR)/Contents/Frameworks/"; \ |
51 |
# install_name_tool -id @executable_path/../Frameworks/libgig.6.dylib \ |
52 |
# "$(COMPONENT_DIR)/Contents/Frameworks/libgig.6.dylib"; \ |
53 |
# install_name_tool -change "`pkg-config --variable=libdir gig`/libgig.6.dylib" \ |
54 |
# @executable_path/../Frameworks/libgig.6.dylib \ |
55 |
# "$(COMPONENT_DIR)/Contents/MacOS/LinuxSamplerAU" |
56 |
# |
57 |
#if HAVE_SQLITE3 |
58 |
# cp "`pkg-config --variable=libdir sqlite3`/libsqlite3.dylib" "$(COMPONENT_DIR)/Contents/Frameworks/"; \ |
59 |
# install_name_tool -id @executable_path/../Frameworks/libsqlite3.dylib \; \ |
60 |
# "$(COMPONENT_DIR)/Contents/Frameworks/libsqlite3.dylib"; \ |
61 |
# install_name_tool -change "`pkg-config --variable=libdir sqlite3`/libsqlite3.dylib" \ |
62 |
# @executable_path/../Frameworks/libsqlite3.dylib \ |
63 |
# "$(COMPONENT_DIR)/Contents/MacOS/LinuxSamplerAU" |
64 |
#endif |
65 |
# |
66 |
#if HAVE_JACK |
67 |
# cp "`pkg-config --variable=libdir jack`/libjack.dylib" "$(COMPONENT_DIR)/Contents/Frameworks/"; \ |
68 |
# install_name_tool -id @executable_path/../Frameworks/libjack.dylib \ |
69 |
# "$(COMPONENT_DIR)/Contents/Frameworks/libjack.dylib"; \ |
70 |
# install_name_tool -change "`pkg-config --variable=libdir jack`/libjack.dylib" \ |
71 |
# @executable_path/../Frameworks/libjack.dylib \ |
72 |
# "$(COMPONENT_DIR)/Contents/MacOS/LinuxSamplerAU" |
73 |
#endif |
74 |
|
75 |
clean-local: |
76 |
rm -f LinuxSamplerAU.rsrc |
77 |
rm -rf $(COMPONENT_DIR) |
78 |
|
79 |
install-exec-hook: |
80 |
if mkdir -p $(MAC_PLUGIN_INSTALL_DIR)/Components && \ |
81 |
test -w $(MAC_PLUGIN_INSTALL_DIR)/Components ; then \ |
82 |
cp -r $(COMPONENT_DIR) $(MAC_PLUGIN_INSTALL_DIR)/Components/ ; \ |
83 |
if test -n "$(INSTALL_STRIP_FLAG)" ; then $(STRIP) -x $(MAC_PLUGIN_INSTALL_DIR)/Components/$(COMPONENT_DIR)/Contents/MacOS/LinuxSamplerAU ; fi ; fi |
84 |
|
85 |
uninstall-hook: |
86 |
rm -rf $(MAC_PLUGIN_INSTALL_DIR)/Components/$(COMPONENT_DIR) |
87 |
endif |
88 |
|
89 |
EXTRA_DIST = PluginAU.exp PluginAU.r PkgInfo Info.plist |