summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Info.plist.in26
-rw-r--r--icons/Patchage.icnsbin0 -> 177383 bytes
-rw-r--r--wscript23
3 files changed, 46 insertions, 3 deletions
diff --git a/Info.plist.in b/Info.plist.in
new file mode 100644
index 0000000..69f8fee
--- /dev/null
+++ b/Info.plist.in
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleDisplayName</key>
+ <string>Patchage</string>
+ <key>CFBundleExecutable</key>
+ <string>patchage</string>
+ <key>CFBundleGetInfoString</key>
+ <string>@PATCHAGE_VERSION@, Copyright © 2010 David Robillard</string>
+ <key>CFBundleIconFile</key>
+ <string>Patchage</string>
+ <key>CFBundleIdentifier</key>
+ <string>net.drobilla.Patchage</string>
+ <key>CFBundleName</key>
+ <string>Patchage</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>@PATCHAGE_VERSION@</string>
+ <key>CFBundleSignature</key>
+ <string>patc</string>
+</dict>
+</plist>
diff --git a/icons/Patchage.icns b/icons/Patchage.icns
new file mode 100644
index 0000000..83364a2
--- /dev/null
+++ b/icons/Patchage.icns
Binary files differ
diff --git a/wscript b/wscript
index 1469022..dcfa6ee 100644
--- a/wscript
+++ b/wscript
@@ -109,10 +109,14 @@ def configure(conf):
print
def build(bld):
+ out_base = ''
+ if Options.platform == 'darwin':
+ out_base = 'Patchage.app/Contents/'
+
# Program
prog = bld(features = 'cxx cxxprogram')
prog.includes = ['.', 'src']
- prog.target = bld.env['APP_INSTALL_NAME']
+ prog.target = out_base + bld.env['APP_INSTALL_NAME']
prog.install_path = '${BINDIR}'
autowaf.use_lib(bld, prog, 'DBUS FLOWCANVAS GLADEMM DBUS_GLIB GNOMECANVASMM GTHREAD RAUL')
prog.source = '''
@@ -146,12 +150,12 @@ def build(bld):
prog.source += ' src/AlsaDriver.cpp '
prog.uselib += ' ALSA '
if bld.env['PATCHAGE_BINLOC']:
- prog.linkflags = '-ldl'
+ prog.linkflags = ['-ldl']
# Glade XML UI definition
bld(features = 'subst',
source = 'src/patchage.glade',
- target = 'patchage.glade',
+ target = out_base + 'patchage.glade',
install_path = '${DATADIR}/' + bld.env['APP_INSTALL_NAME'],
chmod = 0644,
PATCHAGE_VERSION = PATCHAGE_VERSION)
@@ -166,6 +170,19 @@ def build(bld):
APP_INSTALL_NAME = bld.env['APP_INSTALL_NAME'],
APP_HUMAN_NAME = bld.env['APP_HUMAN_NAME'])
+ if Options.platform == 'darwin':
+ # Property list
+ bld(features = 'subst',
+ source = 'Info.plist.in',
+ target = out_base + 'Info.plist',
+ install_path = '',
+ chmod = 0644)
+
+ # Icons
+ bld(rule='cp ${SRC} ${TGT}',
+ source = 'icons/Patchage.icns',
+ target = out_base + 'Resources/Patchage.icns')
+
# Icons
# After installation, icon cache should be updated using:
# gtk-update-icon-cache -f -t $(datadir)/icons/hicolor