hasufell    14/06/20 14:31:42

  Added:                xpaint-2.9.10.2-tiff.patch
  Removed:              xpaint-2.9.10-version.patch
  Log:
  fix build with tiff disabled wrt #513968, rm old
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
BDEED020)

Revision  Changes    Path
1.1                  media-gfx/xpaint/files/xpaint-2.9.10.2-tiff.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xpaint/files/xpaint-2.9.10.2-tiff.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xpaint/files/xpaint-2.9.10.2-tiff.patch?rev=1.1&content-type=text/plain

Index: xpaint-2.9.10.2-tiff.patch
===================================================================
From: Julian Ospald <[email protected]>
Date: Fri Jun 20 13:52:42 UTC 2014
Subject: fix tiff build switch

--- xpaint-2.9.10.2/configure.ac
+++ xpaint-2.9.10.2/configure.ac
@@ -125,9 +125,11 @@
 with_libtiff="yes"
 tiff_header_found="no"
 #
-AC_ARG_ENABLE(tiff,
+AC_ARG_ENABLE([tiff],
 [  --enable-tiff[=[yes|no]]         Build with TIFF support [ [default=yes] ]],
-test "$enable_tiff" = "no"  && with_libtiff="no")
+       [with_libtiff=$enableval],
+       [with_libtiff=yes]
+)
 #
 if test "x$with_libtiff" = xyes ; then
 #TIFF compiled with JPEG and JBIG support?
--- xpaint-2.9.10.2/rw/readWriteTIFF.c
+++ xpaint-2.9.10.2/rw/readWriteTIFF.c
@@ -14,6 +14,8 @@
 
 /* $Id: xpaint-2.9.10.2-tiff.patch,v 1.1 2014/06/20 14:31:42 hasufell Exp $ */
 
+#ifdef HAVE_TIFF
+
 #include <stdio.h>
 #include <stdlib.h>
 #include "tiffio.h"
@@ -527,3 +529,5 @@ int WriteTIFF(char *file, Image * image)
 
     return 0;
 }
+
+#endif /* HAVE_TIFF */




Reply via email to