diff --git a/Makefile.am b/Makefile.am index 39cf42fd8..0bfd31d4e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,7 +24,8 @@ SUBDIRS = \ $(ffmpegsource) \ aegisub \ automation \ - po + po \ + desktop osx-bundle: @SHELL@ scripts/osx-bundle.sh @PACKAGE_TARNAME@-@PACKAGE_VERSION@ diff --git a/configure.in b/configure.in index 4bf520520..5d4b61b99 100644 --- a/configure.in +++ b/configure.in @@ -99,14 +99,15 @@ AC_DEFINE_UNQUOTED(AEGISUB_VERSION_DATA, ["$AEGISUB_VERSION_DATA"], [Data path s aegisubdatadir="$datadir/$PACKAGE/aegisub_version_data" aegisubdocdir="$datadir/doc/$PACKAGE/aegisub_version_data" -AEGISUB_COMMAND="aegisub-$AEGISUB_VERSION_MAJOR.AEGISUB_VERSION_MINOR" +AEGISUB_COMMAND="aegisub-$AEGISUB_VERSION_MAJOR.$AEGISUB_VERSION_MINOR" AC_SUBST(aegisubdatadir) AC_SUBST(aegisubdocdir) AC_SUBST(AEGISUB_COMMAND) AC_ARG_WITH(desktop-dir, [ --with-desktop-dir=PATH desktop file locations (default: PREFIX/share)]) - if test -z "$with_desktop_dir" ; then + +if ! test -z "$with_desktop_dir" ; then DESKTOP_DATADIR=$with_desktop_dir else DESKTOP_DATADIR="$datadir" @@ -1073,10 +1074,12 @@ auto3/Makefile libass/Makefile automation/Makefile po/Makefile.in +desktop/Makefile ]) # Files that need substitution. AC_CONFIG_FILES([ +desktop/aegisub.desktop scripts/osx-bundle.sed ]) diff --git a/desktop/16x16/aegisub.png b/desktop/16x16/aegisub.png new file mode 100644 index 000000000..7d5d58846 Binary files /dev/null and b/desktop/16x16/aegisub.png differ diff --git a/desktop/22x22/aegisub.png b/desktop/22x22/aegisub.png new file mode 100644 index 000000000..74dd3f2c3 Binary files /dev/null and b/desktop/22x22/aegisub.png differ diff --git a/desktop/24x24/aegisub.png b/desktop/24x24/aegisub.png new file mode 100644 index 000000000..f57623260 Binary files /dev/null and b/desktop/24x24/aegisub.png differ diff --git a/desktop/32x32/aegisub.png b/desktop/32x32/aegisub.png new file mode 100644 index 000000000..9d609d7a2 Binary files /dev/null and b/desktop/32x32/aegisub.png differ diff --git a/desktop/48x48/aegisub.png b/desktop/48x48/aegisub.png new file mode 100644 index 000000000..c4f163c21 Binary files /dev/null and b/desktop/48x48/aegisub.png differ diff --git a/desktop/64x64/aegisub.png b/desktop/64x64/aegisub.png new file mode 100644 index 000000000..fbbd14dc9 Binary files /dev/null and b/desktop/64x64/aegisub.png differ diff --git a/desktop/Makefile.am b/desktop/Makefile.am new file mode 100644 index 000000000..299daefd0 --- /dev/null +++ b/desktop/Makefile.am @@ -0,0 +1,45 @@ + +if DESKTOP_DATADIR + +applicationsdir = $(DESKTOP_DATADIR)/applications +applications_DATA = aegisub.desktop + +iconsscalabledir = $(DESKTOP_DATADIR)/icons/hicolor/scalable/apps +iconsscalable_DATA = scalable/aegisub.svg + +install-data-hook: + touch "$(DESTDIR)$(DESKTOP_DATADIR)/icons/hicolor" + + +icons16dir = $(DESKTOP_DATADIR)/icons/hicolor/16x16/apps +icons16_DATA = 16x16/aegisub.png + +icons22dir = $(DESKTOP_DATADIR)/icons/hicolor/22x22/apps +icons22_DATA = 22x22/aegisub.png + +icons24dir = $(DESKTOP_DATADIR)/icons/hicolor/24x24/apps +icons24_DATA = 24x24/aegisub.png + +icons32dir = $(DESKTOP_DATADIR)/icons/hicolor/32x32/apps +icons32_DATA = 32x32/aegisub.png + +icons48dir = $(DESKTOP_DATADIR)/icons/hicolor/48x48/apps +icons48_DATA = 48x48/aegisub.png + +icons64dir = $(DESKTOP_DATADIR)/icons/hicolor/64x64/apps +icons64_DATA = 64x64/aegisub.png + +endif + + +EXTRA_DIST = \ + aegisub.desktop.in \ + 16x16/aegisub.png \ + 22x22/aegisub.png \ + 24x24/aegisub.png \ + 32x32/aegisub.png \ + 48x48/aegisub.png \ + 64x64/aegisub.png \ + scalable/aegisub.svg + +DISTCLEANFILES = aegisub.desktop diff --git a/desktop/aegisub.desktop.in b/desktop/aegisub.desktop.in new file mode 100644 index 000000000..515571aaa --- /dev/null +++ b/desktop/aegisub.desktop.in @@ -0,0 +1,12 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Aegisub +GenericName=Subtitle Editor +Comment=Create and edit subtitles for film and videos. +Exec=@AEGISUB_COMMAND@ %f +TryExec=@AEGISUB_COMMAND@ +Icon=aegisub +Terminal=false +Categories=AudioVideo;AudioVideoEditing; +MimeType=application/x-srt;text/plain;text/x-ass;text/x-microdvd;text/x-ssa; diff --git a/desktop/scalable/aegisub.svg b/desktop/scalable/aegisub.svg new file mode 100644 index 000000000..e0dfeadb6 --- /dev/null +++ b/desktop/scalable/aegisub.svg @@ -0,0 +1,375 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + +