aboutsummaryrefslogtreecommitdiff
path: root/misc/shared-mime-info/files/patch-Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'misc/shared-mime-info/files/patch-Makefile.in')
-rw-r--r--misc/shared-mime-info/files/patch-Makefile.in22
1 files changed, 15 insertions, 7 deletions
diff --git a/misc/shared-mime-info/files/patch-Makefile.in b/misc/shared-mime-info/files/patch-Makefile.in
index 990f53a0adbb..d32435f436f9 100644
--- a/misc/shared-mime-info/files/patch-Makefile.in
+++ b/misc/shared-mime-info/files/patch-Makefile.in
@@ -1,16 +1,24 @@
---- Makefile.in.orig Sat Dec 4 16:05:36 2004
-+++ Makefile.in Sat Dec 4 16:06:17 2004
-@@ -795,7 +795,12 @@
+--- Makefile.in.orig Sat Feb 10 04:50:08 2007
++++ Makefile.in Sat Feb 10 04:52:30 2007
+@@ -251,7 +251,7 @@ EXTRA_DIST = \
+
+ CLEANFILES = freedesktop.org.xml po/stamp-it
+ DISTCLEANFILES = intltool-extract intltool-merge intltool-update
+-pkgconfigdir = $(datadir)/pkgconfig
++pkgconfigdir = $(prefix)/libdata/pkgconfig
+ pkgconfig_DATA = shared-mime-info.pc
+ all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
+@@ -871,7 +871,11 @@ $(pkgconfig_DATA): config.status
@INTLTOOL_DESKTOP_RULE@
install-data-hook:
--@ENABLE_UPDATE_MIMEDB_TRUE@ $(DESTDIR)"$(bindir)/update-mime-database" "$(DESTDIR)${mimedir}"
-+@ENABLE_UPDATE_MIMEDB_TRUE@ for mdir in %%MIMEDIRS%%; do \
+-@ENABLE_UPDATE_MIMEDB_TRUE@ $(DESTDIR)"$(bindir)/update-mime-database" -V "$(DESTDIR)$(prefix)/share/mime"
++@ENABLE_UPDATE_MIMEDB_TRUE@ for mdir in /usr/X11R6/share/gnome/mime /usr/local/share/gnome/mime /usr/X11R6/share/mime /usr/local/share/mime /usr/local/gnome2/shared-mime-info/share/mime /usr/share/mime; do \
+@ENABLE_UPDATE_MIMEDB_TRUE@ if [ -d $${mdir} ]; then \
+@ENABLE_UPDATE_MIMEDB_TRUE@ $(DESTDIR)"$(bindir)/update-mime-database" "$${mdir}" ; \
+@ENABLE_UPDATE_MIMEDB_TRUE@ fi; \
+@ENABLE_UPDATE_MIMEDB_TRUE@ done
-+
uninstall-hook:
- for media in text application image audio inode video message model multipart; do rm -f "$(DESTDIR)${mimedir}/$${media}/"*.xml; done
+ for media in text application image audio inode video message model multipart; do rm -f "$(DESTDIR)$(prefix)/share/mime/$${media}/"*.xml; done