1. rude
  2. love

Commits

Michał Górny  committed a03519f

Install file associations and icons using autotools (issue #605)

Condensed version of pull request #24, containing the following commits:
- 31f803f Install .desktop and mime-info files with autotools.
- a354096 unix: Install icon using autotools as well.
- 4b1beb2 Fix Icon= in love.desktop.
- d0d3fe4 unix: Install game file icon as well.
- 9a6e291 unix: Update/fix README file name in Makefile.am.

All of the above commits were made by Michał Górny, and this single
code import was committed by Bart van Strien (so blame me if I broke
it..)

  • Participants
  • Parent commits 17ea458
  • Branches default

Comments (0)

Files changed (8)

File platform/unix/Makefile.am

View file
  • Ignore whitespace
 ACLOCAL_AMFLAGS = -I platform/unix/m4
 SUBDIRS = src
-EXTRA_DIST = changes.txt license.txt readme.txt
+EXTRA_DIST = changes.txt license.txt readme.md \
+	platform/unix/love.desktop.in
+
+applicationsdir=$(datarootdir)/applications
+mimeinfodir=$(datarootdir)/mime/packages
+pixmapsdir=$(datarootdir)/pixmaps
+mimeiconsdir=$(datarootdir)/icons/hicolor/scalable/mimetypes
+
+applications_DATA = platform/unix/love.desktop
+dist_mimeinfo_DATA = platform/unix/love.xml
+dist_pixmaps_DATA = platform/unix/love.svg
+dist_mimeicons_DATA = platform/unix/application-x-love-game.svg
+
+platform/unix/love.desktop: platform/unix/love.desktop.in
+	$(MKDIR_P) platform/unix
+	rm -f $@ $@.tmp
+	$(SED) \
+		-e "s|@bindir[@]|$(bindir)|" \
+		${srcdir}/$@.in > $@.tmp
+	chmod a-w $@.tmp
+	mv $@.tmp $@

File platform/unix/app.svg

  • Ignore whitespace
Removed
Old image

File platform/unix/application-x-love-game.svg

View file
  • Ignore whitespace
Added
New image

File platform/unix/configure.ac

View file
  • Ignore whitespace
 AC_PROG_LIBTOOL
 AC_PROG_CC
 AC_PROG_CXX
+AC_PROG_SED
+AC_PROG_MKDIR_P
 AC_C_BIGENDIAN
 AC_SEARCH_LIBS([sqrt], [m], [], AC_MSG_ERROR([Can't LÖVE without C math library]))
 AC_SEARCH_LIBS([SDL_Init], [SDL], [], AC_MSG_ERROR([Can't LÖVE without SDL]))

File platform/unix/game.svg

  • Ignore whitespace
Removed
Old image

File platform/unix/love.desktop

  • Ignore whitespace
-[Desktop Entry]
-Name=LÖVE
-Comment=The unquestionably awesome 2D game engine
-MimeType=application/x-love-game;
-Exec=/usr/bin/love
-Type=Application
-Categories=Development;Game;
-Terminal=false
-Icon=love.svg
-NoDisplay=true
-

File platform/unix/love.desktop.in

View file
  • Ignore whitespace
+[Desktop Entry]
+Name=LÖVE
+Comment=The unquestionably awesome 2D game engine
+MimeType=application/x-love-game;
+Exec=@bindir@/love
+Type=Application
+Categories=Development;Game;
+Terminal=false
+Icon=love
+NoDisplay=true

File platform/unix/love.svg

View file
  • Ignore whitespace
Added
New image