summaryrefslogtreecommitdiff
path: root/media-gfx/xpaint/files/xpaint-2.9.10.2-tiff.patch
blob: 20e59872b84dce26349c0a8897229803f746796d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From: Julian Ospald <hasufell@gentoo.org>
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$ */
 
+#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 */