[102830] trunk/dports/graphics/jpeg

jeremyhu at macports.org jeremyhu at macports.org
Fri Feb 8 22:38:38 PST 2013


Revision: 102830
          https://trac.macports.org/changeset/102830
Author:   jeremyhu at macports.org
Date:     2013-02-08 22:38:38 -0800 (Fri, 08 Feb 2013)
Log Message:
-----------
jpeg: Fix lcms build failure

Modified Paths:
--------------
    trunk/dports/graphics/jpeg/Portfile

Added Paths:
-----------
    trunk/dports/graphics/jpeg/files/
    trunk/dports/graphics/jpeg/files/boolean.patch

Modified: trunk/dports/graphics/jpeg/Portfile
===================================================================
--- trunk/dports/graphics/jpeg/Portfile	2013-02-09 06:29:23 UTC (rev 102829)
+++ trunk/dports/graphics/jpeg/Portfile	2013-02-09 06:38:38 UTC (rev 102830)
@@ -5,6 +5,7 @@
 name		jpeg
 conflicts       libjpeg-turbo
 version     9
+revision    1
 categories	graphics
 license     IJG
 maintainers	nomaintainer
@@ -30,6 +31,8 @@
 checksums       rmd160 048e52334f6341424bd684458799d9c72254e8ec \
                 sha256 c4e29e9375aaf60b4b79db87a58b063fb5b84f923bee97a88280b3d159e7e535
 
+patchfiles      boolean.patch
+
 configure.ldflags-delete	-L${prefix}/lib
 configure.cppflags-delete	-I${prefix}/include
 configure.args  --disable-silent-rules

Added: trunk/dports/graphics/jpeg/files/boolean.patch
===================================================================
--- trunk/dports/graphics/jpeg/files/boolean.patch	                        (rev 0)
+++ trunk/dports/graphics/jpeg/files/boolean.patch	2013-02-09 06:38:38 UTC (rev 102830)
@@ -0,0 +1,24 @@
+--- jmorecfg.h.orig	2013-02-08 22:31:48.000000000 -0800
++++ jmorecfg.h	2013-02-08 22:33:47.000000000 -0800
+@@ -252,17 +252,16 @@ typedef void noreturn_t;
+  * Defining HAVE_BOOLEAN before including jpeglib.h should make it work.
+  */
+ 
+-#ifdef HAVE_BOOLEAN
++#ifndef HAVE_BOOLEAN
++typedef int boolean;
++#endif
++
+ #ifndef FALSE			/* in case these macros already exist */
+ #define FALSE	0		/* values of boolean */
+ #endif
+ #ifndef TRUE
+ #define TRUE	1
+ #endif
+-#else
+-typedef enum { FALSE = 0, TRUE = 1 } boolean;
+-#endif
+-
+ 
+ /*
+  * The remaining options affect code selection within the JPEG library,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130208/3953b10c/attachment.html>


More information about the macports-changes mailing list