dist: new application icons and Makefile

Continuing the discussion started on GitHub over
2014-09-30T01:33:29Z!mikeonthecomputer@gmail.com, all desktop entries
now have unique icons. Keeping my own personal bias, stfkill3 is still
used for FreeDM, but the Debian choices for their own distro are used
for Phases 1 and 2.

Also, the icons are actually generated automatically now.
master
Mike Swanson 2014-09-30 23:01:38 -07:00
parent 522495f831
commit f6fcee1600
4 changed files with 25 additions and 4 deletions

View File

@ -135,13 +135,15 @@ waddir?=/share/games/doom
target=$(DESTDIR)$(prefix)
%.6:
sed -e s/freedoom/$*/ dist/freedoom.adoc > dist/$*.adoc
a2x -f manpage dist/$*.adoc
$(MAKE) -C dist man-$*
%.png:
$(MAKE) -C dist icon-$*
# This is bad because it assumes the IWADs will always be defined like
# this. I just can't see another way to do it. Fix later if possible.
install-%: $(WADS)/%.wad %.6
install-%: $(WADS)/%.wad %.6 %.png
install -d "$(target)$(bindir)"
install -m 755 dist/freedoom "$(target)$(bindir)/$*"
install -d "$(target)$(mandir)/man6"
@ -153,7 +155,7 @@ install-%: $(WADS)/%.wad %.6
install -d "$(target)/share/appdata"
install -m 644 dist/$*.appdata.xml "$(target)/share/appdata"
install -d "$(target)/share/icons"
install -m 644 dist/freedoom.png "$(target)/share/icons/$*.png"
install -m 644 dist/$*.png "$(target)/share/icons/$*.png"
uninstall-%:
rm "$(target)$(bindir)/$*"

1
dist/.gitignore vendored
View File

@ -1,3 +1,4 @@
*.6
*.png
freedm.adoc
freedoom[12].adoc

18
dist/Makefile vendored Normal file
View File

@ -0,0 +1,18 @@
man-%: freedoom.adoc
sed -e s/freedoom/$*/ freedoom.adoc > $*.adoc
a2x -f manpage $*.adoc
icon-freedm:
convert -trim +repage -extent 32x32 -gravity center \
-transparent \#00ffff -background \#00ffff \
../graphics/stfkill3.gif freedm.png
icon-freedoom1:
convert -trim +repage -extent 48x48 -gravity center \
-transparent \#00ffff -background \#00ffff \
../sprites/playa2a8.gif freedoom1.png
icon-freedoom2:
convert -trim +repage -extent 64x64 -gravity center \
-transparent \#00ffff -background \#00ffff \
../sprites/heada1.gif freedoom2.png

BIN
dist/freedoom.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 592 B