[42381] trunk/dports/graphics/jpeg

blb at macports.org blb at macports.org
Wed Nov 19 23:02:30 PST 2008


Revision: 42381
          http://trac.macports.org/changeset/42381
Author:   blb at macports.org
Date:     2008-11-19 23:02:29 -0800 (Wed, 19 Nov 2008)
Log Message:
-----------
graphics/jpeg - fix using jpeg with C++ code, ticket #13392 (maintainer timeout)

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

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

Modified: trunk/dports/graphics/jpeg/Portfile
===================================================================
--- trunk/dports/graphics/jpeg/Portfile	2008-11-20 06:51:44 UTC (rev 42380)
+++ trunk/dports/graphics/jpeg/Portfile	2008-11-20 07:02:29 UTC (rev 42381)
@@ -4,7 +4,7 @@
 
 name		jpeg
 version     	6b
-revision	2
+revision	3
 categories	graphics
 maintainers	waqar at macports.org
 description	Library for manipulating JPEG images
@@ -36,7 +36,7 @@
 extract.only    ${jpegmain}
 
 patchfiles      patch-config.sub patch-config.guess patch-ltmain.sh \
-                patch-ltconfig patch-makefile.cfg
+                patch-ltconfig patch-makefile.cfg patch-jpeglib.h
 post-patch {
     system "cd ${worksrcpath} &&
         tar zxf ${distpath}/droppatch.tar.gz"

Added: trunk/dports/graphics/jpeg/files/patch-jpeglib.h
===================================================================
--- trunk/dports/graphics/jpeg/files/patch-jpeglib.h	                        (rev 0)
+++ trunk/dports/graphics/jpeg/files/patch-jpeglib.h	2008-11-20 07:02:29 UTC (rev 42381)
@@ -0,0 +1,24 @@
+--- jpeglib.h.org	Sat Feb 21 14:48:14 1998
++++ jpeglib.h	Tue Feb 25 16:49:36 2003
+@@ -13,6 +13,10 @@
+ #ifndef JPEGLIB_H
+ #define JPEGLIB_H
+ 
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ /*
+  * First we include the configuration files that record how this
+  * installation of the JPEG library is set up.  jconfig.h can be
+@@ -1091,6 +1095,10 @@
+ #ifdef JPEG_INTERNALS
+ #include "jpegint.h"		/* fetch private declarations */
+ #include "jerror.h"		/* fetch error codes too */
++#endif
++
++#ifdef __cplusplus
++}
+ #endif
+ 
+ #endif /* JPEGLIB_H */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081119/e906d9fa/attachment.html>


More information about the macports-changes mailing list