Skip to content

Instantly share code, notes, and snippets.

@hasufell
Created June 16, 2012 23:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasufell/2942878 to your computer and use it in GitHub Desktop.
Save hasufell/2942878 to your computer and use it in GitHub Desktop.
--- configure.in
+++ configure.in
@@ -183,6 +183,14 @@
fi
AM_CONDITIONAL(DESKTOP_INTEGRATION, test "$desktop_integration" = "yes")
+AC_ARG_WITH(
+ [icondir],
+ AS_HELP_STRING([--with-icondir=VAL],
+ [0 for $datadir/pixmaps 1 for $datadir/icons/...(default: 0)]),
+ [ icon_nopixmaps="$withval" ],
+ [ icon_nopixmaps=0 ])
+AM_CONDITIONAL(ICON_NOPIXMAPS, test x"$icon_nopixmaps" = "x1")
+
dnl advanced compiler tweaking
CPPFLAGS="$CPPFLAGS -fstrict-aliasing -fmessage-length=0"
--- data/Makefile.am
+++ data/Makefile.am
@@ -9,6 +9,29 @@
spacefm-find.desktop \
spacefm-folder-handler.desktop
+if ICON_NOPIXMAPS
+icon48dir = $(datadir)/icons/hicolor/48x48/apps
+icon48_DATA = spacefm.png \
+ spacefm-root.png \
+ spacefm-find.png \
+ spacefm-48-cube-blue.png \
+ spacefm-48-cube-green.png \
+ spacefm-48-cube-red.png \
+ spacefm-48-folder-blue.png \
+ spacefm-48-folder-red.png \
+ spacefm-48-pyramid-blue.png \
+ spacefm-48-pyramid-green.png \
+ spacefm-48-pyramid-red.png
+
+icon128dir = $(datadir)/icons/hicolor/128x128/apps
+icon128_DATA = spacefm-128-cube-blue.png \
+ spacefm-128-cube-green.png \
+ spacefm-128-cube-red.png \
+ spacefm-128-pyramid-blue.png \
+ spacefm-128-pyramid-green.png \
+ spacefm-128-pyramid-red.png
+
+else
icondir = $(datadir)/pixmaps
icon_DATA = spacefm.png \
spacefm-root.png \
@@ -27,6 +50,7 @@
spacefm-48-pyramid-blue.png \
spacefm-48-pyramid-green.png \
spacefm-48-pyramid-red.png
+endif
filedir = $(datadir)/spacefm
uidir=$(filedir)/ui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment