[gimp] icons: fix generated Symbolic-Inverted icons dependency.



commit 7102d3d82ba5cf889ff3ab741162803c70572d2e
Author: Jehan <jehan girinstud io>
Date:   Sat Dec 26 03:36:51 2015 +0100

    icons: fix generated Symbolic-Inverted icons dependency.
    
    They need to be properly dependent on the image with the same name
    in the Symbolic icon theme. Until now we could only make them dependent
    on either nothing or all Symbolic icons.

 icons/Symbolic-Inverted/Makefile.am |  105 ++++++++++++++++++++++++++++++++++-
 1 files changed, 104 insertions(+), 1 deletions(-)
---
diff --git a/icons/Symbolic-Inverted/Makefile.am b/icons/Symbolic-Inverted/Makefile.am
index e2e013f..1851f4a 100644
--- a/icons/Symbolic-Inverted/Makefile.am
+++ b/icons/Symbolic-Inverted/Makefile.am
@@ -18,7 +18,110 @@ icons_DATA = \
 
 include $(top_srcdir)/icons/Symbolic/icon-list.mk
 
-%.png: $(top_srcdir)/icons/Symbolic/$@
+# We are basically repeating the same rule for every subdirectory, which
+# is very dirty. But this is the only way we found to have a rule
+# dependency correctly tied to the image with same name in Symbolic/.
+# I would expect the following to match as a single rule:
+#     %.png: $(top_srcdir)/icons/Symbolic/%.png
+# But it doesn't. If someone knows how, feel free to fix it back into
+# a single rule.
+12/%.png: $(top_srcdir)/icons/Symbolic/12/%.png
+       mkdir -p `dirname $ `;
+       $(GEGL) -x \
+       "<gegl> \
+         <node operation='gegl:invert-linear'></node> \
+         <node operation='gegl:load'> \
+           <params> \
+             <param name='path'>$(top_srcdir)/icons/Symbolic/$@</param> \
+           </params> \
+         </node> \
+       </gegl>" -o $@
+
+16/%.png: $(top_srcdir)/icons/Symbolic/16/%.png
+       mkdir -p `dirname $ `;
+       $(GEGL) -x \
+       "<gegl> \
+         <node operation='gegl:invert-linear'></node> \
+         <node operation='gegl:load'> \
+           <params> \
+             <param name='path'>$(top_srcdir)/icons/Symbolic/$@</param> \
+           </params> \
+         </node> \
+       </gegl>" -o $@
+
+18/%.png: $(top_srcdir)/icons/Symbolic/18/%.png
+       mkdir -p `dirname $ `;
+       $(GEGL) -x \
+       "<gegl> \
+         <node operation='gegl:invert-linear'></node> \
+         <node operation='gegl:load'> \
+           <params> \
+             <param name='path'>$(top_srcdir)/icons/Symbolic/$@</param> \
+           </params> \
+         </node> \
+       </gegl>" -o $@
+
+20/%.png: $(top_srcdir)/icons/Symbolic/20/%.png
+       mkdir -p `dirname $ `;
+       $(GEGL) -x \
+       "<gegl> \
+         <node operation='gegl:invert-linear'></node> \
+         <node operation='gegl:load'> \
+           <params> \
+             <param name='path'>$(top_srcdir)/icons/Symbolic/$@</param> \
+           </params> \
+         </node> \
+       </gegl>" -o $@
+
+22/%.png: $(top_srcdir)/icons/Symbolic/22/%.png
+       mkdir -p `dirname $ `;
+       $(GEGL) -x \
+       "<gegl> \
+         <node operation='gegl:invert-linear'></node> \
+         <node operation='gegl:load'> \
+           <params> \
+             <param name='path'>$(top_srcdir)/icons/Symbolic/$@</param> \
+           </params> \
+         </node> \
+       </gegl>" -o $@
+
+24/%.png: $(top_srcdir)/icons/Symbolic/24/%.png
+       mkdir -p `dirname $ `;
+       $(GEGL) -x \
+       "<gegl> \
+         <node operation='gegl:invert-linear'></node> \
+         <node operation='gegl:load'> \
+           <params> \
+             <param name='path'>$(top_srcdir)/icons/Symbolic/$@</param> \
+           </params> \
+         </node> \
+       </gegl>" -o $@
+
+32/%.png: $(top_srcdir)/icons/Symbolic/32/%.png
+       mkdir -p `dirname $ `;
+       $(GEGL) -x \
+       "<gegl> \
+         <node operation='gegl:invert-linear'></node> \
+         <node operation='gegl:load'> \
+           <params> \
+             <param name='path'>$(top_srcdir)/icons/Symbolic/$@</param> \
+           </params> \
+         </node> \
+       </gegl>" -o $@
+
+48/%.png: $(top_srcdir)/icons/Symbolic/48/%.png
+       mkdir -p `dirname $ `;
+       $(GEGL) -x \
+       "<gegl> \
+         <node operation='gegl:invert-linear'></node> \
+         <node operation='gegl:load'> \
+           <params> \
+             <param name='path'>$(top_srcdir)/icons/Symbolic/$@</param> \
+           </params> \
+         </node> \
+       </gegl>" -o $@
+
+64/%.png: $(top_srcdir)/icons/Symbolic/64/%.png
        mkdir -p `dirname $ `;
        $(GEGL) -x \
        "<gegl> \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]