mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
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..)
This commit is contained in:
@@ -1,3 +1,23 @@
|
||||
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 $@
|
||||
|
||||
|
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 98 KiB |
@@ -10,6 +10,8 @@ m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
|
||||
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]))
|
||||
|
||||
@@ -2,10 +2,9 @@
|
||||
Name=LÖVE
|
||||
Comment=The unquestionably awesome 2D game engine
|
||||
MimeType=application/x-love-game;
|
||||
Exec=/usr/bin/love
|
||||
Exec=@bindir@/love
|
||||
Type=Application
|
||||
Categories=Development;Game;
|
||||
Terminal=false
|
||||
Icon=love.svg
|
||||
Icon=love
|
||||
NoDisplay=true
|
||||
|
||||
|
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 99 KiB |
Reference in New Issue
Block a user