summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2013-02-02 12:45:05 +0100
committerGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2013-02-02 21:27:19 +0100
commitce87c26c0049336ec62ebcf03a93c589c8818d20 (patch)
tree6cf38ecd347f547a475d48f6b98104be08bd9228 /Makefile
parent459130009b6ca1683ba82e720cc97f4ebeb187c9 (diff)
downloadsubsurface-ce87c26c0049336ec62ebcf03a93c589c8818d20.tar.gz
Move about icon to include file
Getting the about icon to display in various scenarios on MacOSX was a pain. Moving the icon to an include file solved the problem. This commit also fixes the problem Dirk was having when converting satellite.svg to a png in commit cf3c0266c2. I couldn't quite get ImageMagick to preserve transparency and color when converting subsurface-icon.svg, though, so I used Gimp instead. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 7f8bd1541..ba8fdc0f6 100644
--- a/Makefile
+++ b/Makefile
@@ -249,15 +249,17 @@ share/locale/%.UTF-8/LC_MESSAGES/subsurface.mo: po/%.po po/%.aliases
done; \
fi
-# this should work but it doesn't preserve the transparancy - so I manually converted with gimp
-# satellite.png: satellite.svg
-# convert -resize 11x16 -depth 8 satellite.svg satellite.png
+satellite.png: satellite.svg
+ convert -transparent white -resize 11x16 -depth 8 $< $@
+
+# This should work, but it doesn't get the colors quite right - so I manually converted with Gimp
+# convert -colorspace RGB -transparent white -resize 256x256 subsurface-icon.svg subsurface-icon.png
#
-# the following creates the pixbuf data in .h files with the basename followed by '_pixmap'
+# The following creates the pixbuf data in .h files with the basename followed by '_pixmap'
# as name of the data structure
%.h: %.png
@echo ' gdk-pixbuf-csource' $<
- @gdk-pixbuf-csource --struct --name $*_pixbuf $< > $@
+ @gdk-pixbuf-csource --struct --name `echo $* | sed 's/-/_/g'`_pixbuf $< > $@
doc:
$(MAKE) -C Documentation doc