[arch-commits] Commit in gnash-common/trunk (PKGBUILD libpng-1.4.patch)

Andrea Scarpino andrea at archlinux.org
Mon Jan 18 00:24:15 UTC 2010


    Date: Sunday, January 17, 2010 @ 19:24:15
  Author: andrea
Revision: 63586

upgpkg: gnash-common 0.8.6-3
    libpng rebuild

Added:
  gnash-common/trunk/libpng-1.4.patch
Modified:
  gnash-common/trunk/PKGBUILD

------------------+
 PKGBUILD         |   14 +++++++++-----
 libpng-1.4.patch |   15 +++++++++++++++
 2 files changed, 24 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-01-17 23:39:35 UTC (rev 63585)
+++ PKGBUILD	2010-01-18 00:24:15 UTC (rev 63586)
@@ -1,24 +1,28 @@
 # $Id$
+# Maintainer:
 
 pkgname=gnash-common
 pkgver=0.8.6
-pkgrel=2
+pkgrel=3
 pkgdesc="A GNU Flash movie player"
 arch=('i686' 'x86_64')
 url="http://www.gnu.org/software/gnash/"
 license=('GPL3')
-depends=('curl' 'giflib' 'boost>=1.41.0' 'libldap>=2.4.18' 'gstreamer0.10-base' 'gstreamer0.10-ffmpeg' 
-         'sdl' 'agg' 'libjpeg>=7' 'libpng' 'libtool' 'speex' 'libxi' 'fontconfig')
+depends=('curl' 'giflib' 'boost' 'libldap' 'gstreamer0.10-base' 'gstreamer0.10-ffmpeg' 
+         'sdl' 'agg' 'libjpeg' 'libpng' 'libtool' 'speex' 'libxi' 'fontconfig')
 makedepends=('pkgconfig')
 provides=('gnash')
 replaces=('gnash')
 backup=('etc/gnashrc' 'etc/gnashpluginrc')
 options=('!libtool' '!emptydirs')
-source=(http://ftp.gnu.org/gnu/gnash/${pkgver}/gnash-${pkgver}.tar.bz2)
-md5sums=('913bcbffd37c9603b84486227c65dce7')
+source=(http://ftp.gnu.org/gnu/gnash/${pkgver}/gnash-${pkgver}.tar.bz2
+	'libpng-1.4.patch')
+md5sums=('913bcbffd37c9603b84486227c65dce7'
+         '24a030c4da4580bcb0f69545c0822912')
 
 build() {
 	cd "$srcdir/gnash-$pkgver"
+	patch -Np1 -i ${srcdir}/libpng-1.4.patch
 
 	./configure --prefix=/usr \
 		--sysconfdir=/etc \

Added: libpng-1.4.patch
===================================================================
--- libpng-1.4.patch	                        (rev 0)
+++ libpng-1.4.patch	2010-01-18 00:24:15 UTC (rev 63586)
@@ -0,0 +1,15 @@
+--- gnash-0.8.6/libbase/GnashImagePng.cpp~	2010-01-18 00:41:35.612492833 +0100
++++ gnash-0.8.6/libbase/GnashImagePng.cpp	2010-01-18 00:43:01.102478031 +0100
+@@ -165,7 +165,11 @@
+     if (type == PNG_COLOR_TYPE_GRAY && bitDepth < 8)
+     {
+         log_debug("Setting grey bit depth(%d) to 8", bitDepth);
+-        png_set_gray_1_2_4_to_8(_pngPtr);
++	#if PNG_LIBPNG_VER < 10400
++	    png_set_gray_1_2_4_to_8(_pngPtr);
++	#else
++	    png_set_expand_gray_1_2_4_to_8(_pngPtr);
++	#endif
+     }
+ 
+     // Apply the transparency block if it exists.




More information about the arch-commits mailing list