[arch-commits] Commit in hugin/trunk (PKGBUILD libpng14.patch)

Eric Bélanger eric at archlinux.org
Fri Jan 22 02:43:48 UTC 2010


    Date: Thursday, January 21, 2010 @ 21:43:48
  Author: eric
Revision: 64736

upgpkg: hugin 2009.4.0-1
    Upstream update, Rebuilt for libpng 1.4 and libjpeg 8

Added:
  hugin/trunk/libpng14.patch
Modified:
  hugin/trunk/PKGBUILD

----------------+
 PKGBUILD       |   10 ++++++----
 libpng14.patch |   14 ++++++++++++++
 2 files changed, 20 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-01-22 02:14:27 UTC (rev 64735)
+++ PKGBUILD	2010-01-22 02:43:48 UTC (rev 64736)
@@ -4,8 +4,8 @@
 # Contributor: Dominik Ryba <domryba at post.pl>
 
 pkgname=hugin
-pkgver=2009.2.0
-pkgrel=2
+pkgver=2009.4.0
+pkgrel=1
 pkgdesc="A frontend to the panorama-tools"
 arch=('i686' 'x86_64')
 url="http://hugin.sourceforge.net/"
@@ -15,11 +15,13 @@
 makedepends=('zip' 'cmake')
 optdepends=('perl-exiftool: write metadata on output images')
 install=hugin.install
-source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz)
-md5sums=('856fa8016bc990874a71a19cc162f6be')
+source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz libpng14.patch)
+md5sums=('ed197d35213a46c77489f512cb8ff191' 'b892397406da9a1b366bf44d051f404c')
+sha1sums=('a801a2521d66a9b0c8680bdfe84afe67bc79d1c8' '159d592ecbcab399ab8beffb920b91616b4bdfff')
 
 build() {
   cd ${srcdir}
+  patch -p0 < libpng14.patch || return 1
   mkdir build
   cd build
   cmake ../${pkgname}-${pkgver} \

Added: libpng14.patch
===================================================================
--- libpng14.patch	                        (rev 0)
+++ libpng14.patch	2010-01-22 02:43:48 UTC (rev 64736)
@@ -0,0 +1,14 @@
+diff -Naur hugin-2009.4.0-orig/src/foreign/vigra/vigra_impex/png.cxx hugin-2009.4.0/src/foreign/vigra/vigra_impex/png.cxx
+--- hugin-2009.4.0-orig/src/foreign/vigra/vigra_impex/png.cxx	2010-01-21 20:13:52.000000000 -0500
++++ hugin-2009.4.0/src/foreign/vigra/vigra_impex/png.cxx	2010-01-21 20:15:01.000000000 -0500
+@@ -271,8 +271,8 @@
+         // expand gray values to at least one byte size
+         if ( color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8 ) {
+             if (setjmp(png->jmpbuf))
+-                vigra_postcondition( false,png_error_message.insert(0, "error in png_set_gray_1_2_4_to_8(): ").c_str());
+-            png_set_gray_1_2_4_to_8(png);
++                vigra_postcondition( false,png_error_message.insert(0, "error in png_set_expand_gray_1_2_4_to_8(): ").c_str());
++            png_set_expand_gray_1_2_4_to_8(png);
+             bit_depth = 8;
+         }
+ 




More information about the arch-commits mailing list