summaryrefslogtreecommitdiff
path: root/icon
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-09-10 00:03:53 -0700
committerKeith Packard <keithp@keithp.com>2014-09-10 00:03:53 -0700
commit036549343416183f973d00a86d897d4a368c1d6f (patch)
treefe9a42f9d4f3877f26bc826de054d1cf3433d638 /icon
parent1992a1e3046a5414ce8d394e1cd8e5e6f6338d29 (diff)
configure: Add --disable-install-shared-mime-info option
This inhibits the installation of the shared mime info data file and updating of the shared mime database. Necessary if you want to use a distribution-specific shared mime installation hook, like dh_installmime Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'icon')
-rw-r--r--icon/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/icon/Makefile.am b/icon/Makefile.am
index d0cd9853..c08e9236 100644
--- a/icon/Makefile.am
+++ b/icon/Makefile.am
@@ -85,8 +85,10 @@ MIME_ICONS = $(EEPROM_ICON) $(TELEM_ICON) $(MPD_ICON)
mimeicondir = $(ICON_THEME)/scalable/mimetypes
mimeicon_DATA = $(MIME_ICONS)
+if INSTALL_SHARED_MIME_INFO
mimedir = $(datadir)/mime/packages
mime_DATA = org-altusmetrum-mimetypes.xml
+endif
pixmapdir = $(datadir)/pixmaps
pixmap_DATA = altusmetrum.xpm
@@ -116,9 +118,11 @@ clean-local:
$(RM) *.build *.ico *.rc *.icns *.o *.exe $(MPD_ICON)
$(RM) altusmetrum.xpm
+if INSTALL_SHARED_MIME_INFO
install-data-hook:
update-mime-database $(DESTDIR)$(datadir)/mime
update-icon-caches $(DESTDIR)$(ICON_THEME)
+endif
$(MPD_ICON): $(MP_ICON)
$(LN_S) $(MP_ICON) $@