summaryrefslogtreecommitdiffstats
path: root/fbreader/macosx/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'fbreader/macosx/Makefile')
-rw-r--r--fbreader/macosx/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/fbreader/macosx/Makefile b/fbreader/macosx/Makefile
new file mode 100644
index 0000000..b06de86
--- /dev/null
+++ b/fbreader/macosx/Makefile
@@ -0,0 +1,20 @@
+ROOTDIR = $(CURDIR)/../..
+include $(ROOTDIR)/makefiles/config.mk
+
+SHARE_FBREADER = $(DESTDIR)$(SHAREDIR)/FBReader
+BINARY = $(DESTDIR)$(BINDIR)/FBReader
+
+install:
+ @strip $(BINARY)
+ @install -m 0644 Info.plist $(DESTDIR)$(INSTALLDIR)/Contents
+ @install -m 0644 ../data/icons/application/FBReader.icns $(DESTDIR)$(INSTALLDIR)/Contents/Resources
+ @install -m 0644 ../data/default/config.macosx.xml $(SHARE_FBREADER)/default/config.xml
+ @install -m 0644 ../data/default/keymap.macosx.xml $(SHARE_FBREADER)/default/keymap.xml
+ @install -m 0644 ../data/default/styles.desktop.xml $(SHARE_FBREADER)/default/styles.xml
+ @$(QTBASEDIR)/bin/macdeployqt $(DESTDIR)$(INSTALLDIR)
+ @for fw in QtDeclarative QtScript QtSql QtSvg QtXmlPatterns; do \
+ rm -rf $(DESTDIR)$(INSTALLDIR)/Contents/Frameworks/$$fw.framework; \
+ done
+ @for plugin in accessible codecs bearer graphicssystems qmltooling; do \
+ rm -rf $(DESTDIR)$(INSTALLDIR)/Contents/PlugIns/$$plugin; \
+ done