tomka       14/07/30 07:13:09

  Added:                leptonica-1.71-openjpeg-2.0.patch
  Log:
  Add compatibility with openjpeg-2.0 (bug #518540)
  
  (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 
565C32BC)

Revision  Changes    Path
1.1                  
media-libs/leptonica/files/leptonica-1.71-openjpeg-2.0.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/leptonica/files/leptonica-1.71-openjpeg-2.0.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/leptonica/files/leptonica-1.71-openjpeg-2.0.patch?rev=1.1&content-type=text/plain

Index: leptonica-1.71-openjpeg-2.0.patch
===================================================================
Better use `pkg-config --cflags libopenjp2`

Michael Weber, [email protected]

--- leptonica-1.71/src/libversions.c
+++ leptonica-1.71/src/libversions.c
@@ -69,7 +69,7 @@
 #endif
 
 #if HAVE_LIBJP2K  /* assuming it's 2.1 */
-#include "openjpeg-2.1/openjpeg.h"
+#include "openjpeg-2.0/openjpeg.h"
 #endif
 
 #define stringJoinInPlace(s1, s2) \
--- leptonica-1.71/src/jp2kio.c
+++ leptonica-1.71/src/jp2kio.c
@@ -108,7 +108,7 @@
 
     /* Leptonica supports both 2.0 and 2.1.  If you have 2.0,
      * change MINOR to 0.  */
-#define  MINOR   1
+#define  MINOR   0
 
 #if MINOR == 0
   static const l_int32  OpjMinor = 0;




Reply via email to