Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=libpng.git;a=commitdiff;h=5e8937970886e465e820179a59ce703ead34e2f6

commit 5e8937970886e465e820179a59ce703ead34e2f6
Author: Baste <[email protected]>
Date:   Wed Jan 16 11:34:13 2013 +0100

cups-filters-1.0.29-1-x86_64
* Add buildfix.patch

diff --git a/source/xapps/cups-filters/FrugalBuild 
b/source/xapps/cups-filters/FrugalBuild
index 120da74..93ab7f0 100644
--- a/source/xapps/cups-filters/FrugalBuild
+++ b/source/xapps/cups-filters/FrugalBuild
@@ -10,9 +10,10 @@ depends=('cups>=1.6.1-3' 'ijs' 'qpdf')
rodepends=('ghostscript>=9.00')
archs=('i686' 'x86_64' 'arm')
groups=('xapps')
-source=(http://www.openprinting.org/download/$pkgname/$pkgname-$pkgver.tar.gz)
+source=(http://www.openprinting.org/download/$pkgname/$pkgname-$pkgver.tar.gz 
buildfix.patch)
up2date="Flasttar 'http://www.openprinting.org/download/$pkgname/'"
-sha1sums=('fc0476a1a89aed93b5d6ac02ae46bf76509fe9da')
+sha1sums=('fc0476a1a89aed93b5d6ac02ae46bf76509fe9da' \
+          'e9cbaff9772aa240d2e04bfedfd00baa347aa1e4')

Fconfopts+=" --with-gs-path=/usr/bin/gs \
--with-pdftops-path=/usr/bin/gs"
diff --git a/source/xapps/cups-filters/buildfix.patch 
b/source/xapps/cups-filters/buildfix.patch
new file mode 100644
index 0000000..6952156
--- /dev/null
+++ b/source/xapps/cups-filters/buildfix.patch
@@ -0,0 +1,61 @@
+=== modified file 'NEWS'
+--- NEWS       2013-01-02 18:23:25 +0000
++++ NEWS       2013-01-09 10:42:32 +0000
+@@ -1,6 +1,11 @@
+ NEWS - OpenPrinting CUPS Filters v1.0.29 - 2013-01-02
+ -----------------------------------------------------
+
++CHANGES IN V1.0.30
++
++      - pdftoopvp: Let it build with Poppler 0.22.x. Thanks to Koji Otani
++        from BBR Inc. (Bug #1089).
++
+ CHANGES IN V1.0.29
+
+       - Fixed ./configure option "--with-rcdir=no". Thanks to Jiri
+
+=== modified file 'filter/pdftoopvp/OPVPOutputDev.cxx'
+--- filter/pdftoopvp/OPVPOutputDev.cxx 2012-07-20 08:32:55 +0000
++++ filter/pdftoopvp/OPVPOutputDev.cxx 2013-01-09 10:42:32 +0000
+@@ -1804,8 +1804,14 @@
+   maskSplash = new Splash(maskBitmap, gFalse);
+   maskColor[0] = 0;
+   maskSplash->clear(maskColor);
++#if POPPLER_VERSION_MAJOR <= 0 && (POPPLER_VERSION_MINOR <= 20 || 
(POPPLER_VERSION_MINOR == 21 && POPPLER_VERSION_MICRO <= 2))
+   maskSplash->drawImage(&imageSrc, &imgMaskData,
+                       splashModeMono8, gFalse, maskWidth, maskHeight, mat);
++#else
++  maskSplash->drawImage(&imageSrc, &imgMaskData,
++                      splashModeMono8, gFalse, maskWidth, maskHeight,
++                        mat,gFalse);
++#endif
+   delete imgMaskData.imgStr;
+   maskStr->close();
+   gfree(imgMaskData.lookup);
+
+=== modified file 'filter/pdftoopvp/oprs/OPRS.cxx'
+--- filter/pdftoopvp/oprs/OPRS.cxx     2012-09-10 19:56:59 +0000
++++ filter/pdftoopvp/oprs/OPRS.cxx     2013-01-09 10:42:32 +0000
+@@ -5,6 +5,9 @@
+ //========================================================================
+
+ #include <config.h>
++#ifdef HAVE_CPP_POPPLER_VERSION_H
++#include "cpp/poppler-version.h"
++#endif
+
+ #ifdef USE_GCC_PRAGMAS
+ #pragma implementation
+@@ -235,7 +238,11 @@
+                             SplashColorMode srcMode, GBool srcAlpha,
+                             int w, int h, SplashCoord *mat) {
+     if (rasterMode) {
++#if POPPLER_VERSION_MAJOR <= 0 && (POPPLER_VERSION_MINOR <= 20 || 
(POPPLER_VERSION_MINOR == 21 && POPPLER_VERSION_MICRO <= 2))
+       return splash->drawImage(src,srcData,srcMode,srcAlpha,w,h,mat);
++#else
++      return splash->drawImage(src,srcData,srcMode,srcAlpha,w,h,mat,gFalse);
++#endif
+     } else {
+       return opvpSplash->drawImage(src,srcData,srcMode,srcAlpha,w,h,mat);
+     }
+
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to