Advertisement
dominus

Untitled

Jan 21st, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.79 KB | None | 0 0
  1. diff --git a/configure.ac b/configure.ac
  2. index b99729518..fc490f487 100644
  3. --- a/configure.ac
  4. +++ b/configure.ac
  5. @@ -955,7 +955,7 @@ AC_ARG_WITH([desktopdir],
  6.     esac])
  7.  AC_SUBST([DESKTOPDIR])
  8.  
  9. -ICONDIR="${datadir}/icons"
  10. +ICONDIR="${datadir}/icons/hicolor/512x512/apps"
  11.  AC_ARG_WITH([icondir],
  12.     AS_HELP_STRING([--with-icondir=DIR],[change icon directory]),
  13.     [case "${withval}" in
  14. @@ -969,6 +969,23 @@ AC_ARG_WITH([icondir],
  15.     esac])
  16.  AC_SUBST([ICONDIR])
  17.  
  18. +SVGDIR="${datadir}/icons/hicolor/scalable/apps"
  19. +AC_ARG_WITH([svgdir],
  20. +   AS_HELP_STRING([--with-svgdir=DIR],[change svg directory]),
  21. +   [case "${withval}" in
  22. +       yes)
  23. +       ;;
  24. +       no)
  25. +       ;;
  26. +       *)
  27. +           SVGDIR="${withval}"
  28. +       ;;
  29. +   esac])
  30. +AC_SUBST([ICONDIR])
  31. +
  32. +METADIR="${datadir}/metainfo"
  33. +AC_SUBST([METADIR])
  34. +
  35.  # ---------------------------------------------------------------------
  36.  # Workaround for 'ar' warning in libtool
  37.  # ---------------------------------------------------------------------
  38. diff --git a/desktop/Makefile.am b/desktop/Makefile.am
  39. index 65238af55..962947cc2 100644
  40. --- a/desktop/Makefile.am
  41. +++ b/desktop/Makefile.am
  42. @@ -1,10 +1,16 @@
  43.  icondir = $(ICONDIR)
  44.  desktopdir = $(DESKTOPDIR)
  45. +svgdir = $(SVGDIR)
  46. +metadir = $(METADIR)
  47.  
  48.  if BUILD_STUDIO
  49.  dist_desktop_DATA = info.exult.exult.desktop info.exult.studio.desktop
  50. -dist_icon_DATA = info.exult.exult.png info.exult.studio.png info.exult.exult.svg info.exult.studio.svg
  51. +dist_icon_DATA = info.exult.exult.png info.exult.studio.png
  52. +dist_svg_DATA = info.exult.exult.svg info.exult.studio.svg
  53. +dist_meta_DATA = info.exult.exult.metainfo.xml
  54.  else
  55.  dist_desktop_DATA = info.exult.exult.desktop
  56.  dist_icon_DATA = info.exult.exult.png info.exult.exult.svg
  57. +dist_svg_DATA = info.exult.exult.svg
  58. +dist_meta_DATA = info.exult.exult.metainfo.xml
  59.  endif
  60.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement