You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-libs/fltk/files/fltk-1.3.0-share.patch

40 lines
1.8 KiB

--- a/fluid/Makefile
+++ b/fluid/Makefile
@@ -82,16 +82,16 @@ install: all
$(INSTALL_BIN) $(FLUID) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
install-linux:
- -$(INSTALL_DIR) $(DESTDIR)/usr/share/applications
- $(INSTALL_DATA) fluid.desktop $(DESTDIR)/usr/share/applications
+ -$(INSTALL_DIR) $(DESTDIR)$(datadir)/applications
+ $(INSTALL_DATA) fluid.desktop $(DESTDIR)$(datadir)/applications
for size in 16 32 48 64 128; do \
- if test ! -d $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps; then \
- $(INSTALL_DIR) $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps; \
+ if test ! -d $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps; then \
+ $(INSTALL_DIR) $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps; \
fi; \
- $(INSTALL_DATA) icons/fluid-$$size.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/fluid.png; \
+ $(INSTALL_DATA) icons/fluid-$$size.png $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps/fluid.png; \
done
- -$(INSTALL_DIR) $(DESTDIR)/usr/share/mimelnk/application
- $(INSTALL_DATA) x-fluid.desktop $(DESTDIR)/usr/share/mimelnk/application
+ -$(INSTALL_DIR) $(DESTDIR)$(datadir)/mimelnk/application
+ $(INSTALL_DATA) x-fluid.desktop $(DESTDIR)$(datadir)/mimelnk/application
install-osx:
echo Installing Fluid in $(DESTDIR)/Applications...
@@ -109,9 +109,9 @@ uninstall:
$(RM) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
uninstall-linux:
- $(RM) $(DESTDIR)/usr/share/applications/fluid.desktop
- $(RM) $(DESTDIR)/usr/share/icons/hicolor/*/fluid.png
- $(RM) $(DESTDIR)/usr/share/mimelnk/application/x-fluid.desktop
+ $(RM) $(DESTDIR)$(datadir)/applications/fluid.desktop
+ $(RM) $(DESTDIR)$(datadir)/icons/hicolor/*/fluid.png
+ $(RM) $(DESTDIR)$(datadir)/mimelnk/application/x-fluid.desktop
uninstall-osx:
$(RM) -r $(DESTDIR)/Applications/fluid.app