Author: miriam
Date: 2008-05-14 17:27:59 +0000 (Wed, 14 May 2008)
New Revision: 7004

Modified:
   packages/trunk/fretsonfire/debian/changelog
   packages/trunk/fretsonfire/debian/control
   packages/trunk/fretsonfire/debian/rules
Log:
Optimize PNG images



Modified: packages/trunk/fretsonfire/debian/changelog
===================================================================
--- packages/trunk/fretsonfire/debian/changelog 2008-05-14 16:41:17 UTC (rev 
7003)
+++ packages/trunk/fretsonfire/debian/changelog 2008-05-14 17:27:59 UTC (rev 
7004)
@@ -7,6 +7,7 @@
   * Standards-Version set to 3.7.3. No changes needed.
   * Added call to dh_desktop in debian/rules.
   * Added "DM-Upload-Allowed: yes" to debian/control.
+  * Added optimization for PNG images.
 
   [ Matthew Johnson ]
   * Correct obvious inaccuracies in man page.

Modified: packages/trunk/fretsonfire/debian/control
===================================================================
--- packages/trunk/fretsonfire/debian/control   2008-05-14 16:41:17 UTC (rev 
7003)
+++ packages/trunk/fretsonfire/debian/control   2008-05-14 17:27:59 UTC (rev 
7004)
@@ -6,7 +6,8 @@
 Build-Depends: debhelper (>= 5), quilt
 Build-Depends-Indep: python-dev, python-support (>= 0.4), 
                      libsdl1.2-dev, libsdl-ttf2.0-dev, libsdl-mixer1.2-dev, 
-                     inkscape, docbook-to-man, imagemagick
+                     inkscape, docbook-to-man, imagemagick,
+                    optipng, advancecomp
 Standards-Version: 3.7.3
 Homepage: http://fretsonfire.sourceforge.net/
 Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/fretsonfire/

Modified: packages/trunk/fretsonfire/debian/rules
===================================================================
--- packages/trunk/fretsonfire/debian/rules     2008-05-14 16:41:17 UTC (rev 
7003)
+++ packages/trunk/fretsonfire/debian/rules     2008-05-14 17:27:59 UTC (rev 
7004)
@@ -85,6 +85,16 @@
        dh_installmenu
        dh_installman -pfretsonfire-game fretsonfire.6
        dh_install -pfretsonfire-game
+
+ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+       cd "$(CURDIR)/debian/fretsonfire-game/" && \
+       for i in `find usr/share/games/fretsonfire/data/ -name "*.png"`; do 
echo "Optimizing image $$i"; \
+               # 
http://lists.debian.org/debian-devel-games/2008/03/msg00123.html ; \
+               optipng -q "$$i" ; \
+               advpng -q -z4 "$$i" ; \
+               done
+endif
+
        dh_link
        dh_desktop
        dh_strip


_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to