diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 03:13:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 03:13:10 +0000 |
commit | 3c57dd931145d43f2b0aef96c4d178135956bf91 (patch) | |
tree | 3de698981e9f0cc2c4f9569b19a5f3595e741f6b /desktop/Makefile.am | |
parent | Initial commit. (diff) | |
download | gimp-3c57dd931145d43f2b0aef96c4d178135956bf91.tar.xz gimp-3c57dd931145d43f2b0aef96c4d178135956bf91.zip |
Adding upstream version 2.10.36.upstream/2.10.36
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'desktop/Makefile.am')
-rw-r--r-- | desktop/Makefile.am | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/desktop/Makefile.am b/desktop/Makefile.am new file mode 100644 index 0000000..520dcfe --- /dev/null +++ b/desktop/Makefile.am @@ -0,0 +1,89 @@ +## Makefile.am for gimp/desktop + +desktop_in_files = \ + gimp.desktop.in.in + +desktop_files = $(desktop_in_files:.desktop.in.in=.desktop) + +appstream_in_files = \ + org.gimp.GIMP.appdata.xml.in \ + gimp-data-extras.metainfo.xml.in + +appstream_files = $(appstream_in_files:.xml.in=.xml) + +if DESKTOP_DATADIR + +applicationsdir = $(DESKTOP_DATADIR)/applications +applications_DATA = $(desktop_files) + +appdatadir = $(DESKTOP_DATADIR)/metainfo +appdata_DATA = $(appstream_files) + +icons16dir = $(DESKTOP_DATADIR)/icons/hicolor/16x16/apps +icons16_DATA = 16x16/gimp.png + +icons22dir = $(DESKTOP_DATADIR)/icons/hicolor/22x22/apps +icons22_DATA = 22x22/gimp.png + +icons24dir = $(DESKTOP_DATADIR)/icons/hicolor/24x24/apps +icons24_DATA = 24x24/gimp.png + +icons32dir = $(DESKTOP_DATADIR)/icons/hicolor/32x32/apps +icons32_DATA = 32x32/gimp.png + +icons48dir = $(DESKTOP_DATADIR)/icons/hicolor/48x48/apps +icons48_DATA = 48x48/gimp.png + +icons256dir = $(DESKTOP_DATADIR)/icons/hicolor/256x256/apps +icons256_DATA = 256x256/gimp.png + + +# touch the toplevel icon directory as required by the icon theme spec +install-data-hook: + touch $(DESTDIR)$(DESKTOP_DATADIR)/icons/hicolor + +endif + +EXTRA_DIST = \ + $(appstream_in_files) \ + test-appdata.sh.in \ + test-desktop.sh \ + gimp.desktop.in.in \ + 16x16/gimp.png \ + 22x22/gimp.png \ + 24x24/gimp.png \ + 32x32/gimp.png \ + 48x48/gimp.png \ + 64x64/gimp.png \ + 256x256/gimp.png + + +DISTCLEANFILES = $(desktop_files) $(appstream_files) + +@INTLTOOL_XML_RULE@ + +gimp.desktop: gimp.desktop.in $(wildcard $(top_srcdir)/po/*.po) + $(INTLTOOL_MERGE) $(top_srcdir)/po $< $(@) -d -u -c $(top_builddir)/po/.intltool-merge-cache + +validate: gimp.desktop + ( dfvalidate=`which desktop-file-validate`; \ + if test x$$dfvalidate != x && test -x $$dfvalidate; then \ + $$dfvalidate $< || ( echo "* $< INVALID *"; exit 1 ) \ + else \ + echo "Can't find desktop-file-validate to validate $<; proceed with fingers crossed..."; \ + fi ) + +dist-hook: validate + +TESTS_ENVIRONMENT = \ + chmod +x test-appdata.sh; \ + GIMP_TESTING_ABS_TOP_BUILDDIR=@abs_top_builddir@ +TESTS = + +if HAVE_APPSTREAM_UTIL +TESTS += test-appdata.sh +endif + +if HAVE_DESKTOP_FILE_VALIDATE +TESTS += test-desktop.sh +endif |