[112198] trunk/dports/graphics/netpbm
blair at macports.org
blair at macports.org
Mon Oct 14 21:31:49 PDT 2013
Revision: 112198
https://trac.macports.org/changeset/112198
Author: blair at macports.org
Date: 2013-10-14 21:31:49 -0700 (Mon, 14 Oct 2013)
Log Message:
-----------
netpbm: update to 10.64.01.
The previous version failed to compile on my 10.5.8 PPC PowerBook PPC:
/usr/bin/gcc-4.2 -c -I. -Iimportinc -Iimportinc/netpbm -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_netpbm/netpbm/work/advanced/converter/pbm -DNDEBUG -I/opt/local/include -Os -arch ppc -o pbmtog3.o pbmtog3.c
In file included from pbmtog3.c:25: importinc/netpbm/wordaccess.h:52:15: error: #include expects "FILENAME" or <FILENAME>
In file included from pbmtog3.c:26: importinc/netpbm/wordintclz.h:21: error: expected ?)? before ?const?
This is fixed in 10.64.01 but the new version fails to compile with this error;
/usr/bin/gcc-4.2 -c -I. -Iimportinc -Iimportinc/netpbm -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_netpbm/netpbm/work/advanced/converter/other/jpeg2000 -I/opt/local/include -DNDEBUG -I/opt/local/include -Os -arch ppc -o pamtojpeg2k.o pamtojpeg2k.c
pamtojpeg2k.c: In function ?parseCommandLine?:
pamtojpeg2k.c:153: error: ?false? undeclared (first use in this function)
pamtojpeg2k.c:153: error: (Each undeclared identifier is reported only once
pamtojpeg2k.c:153: error: for each function it appears in.)
The new patch-lib-util-pm_c_util.h.diff patch addresses this by
replacing 'true' with '1' and 'false' with '0' which will work with
any C compiler, no matter how old.
Modified Paths:
--------------
trunk/dports/graphics/netpbm/Portfile
Added Paths:
-----------
trunk/dports/graphics/netpbm/files/patch-lib-util-pm_c_util.h.diff
Modified: trunk/dports/graphics/netpbm/Portfile
===================================================================
--- trunk/dports/graphics/netpbm/Portfile 2013-10-15 03:54:03 UTC (rev 112197)
+++ trunk/dports/graphics/netpbm/Portfile 2013-10-15 04:31:49 UTC (rev 112198)
@@ -3,8 +3,8 @@
PortSystem 1.0
name netpbm
-version 10.62.09
-svn.revision 1961
+version 10.64.01
+svn.revision 2009
revision 1
categories graphics
license {BSD GPL-2 IJG Permissive}
@@ -33,7 +33,8 @@
patchfiles patch-pm_config.in.h.diff \
patch-lib-Makefile.diff \
- patch-converter-other-giftopnm.c-strcaseeq.diff
+ patch-converter-other-giftopnm.c-strcaseeq.diff \
+ patch-lib-util-pm_c_util.h.diff
post-patch {
reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/pm_config.in.h
Added: trunk/dports/graphics/netpbm/files/patch-lib-util-pm_c_util.h.diff
===================================================================
--- trunk/dports/graphics/netpbm/files/patch-lib-util-pm_c_util.h.diff (rev 0)
+++ trunk/dports/graphics/netpbm/files/patch-lib-util-pm_c_util.h.diff 2013-10-15 04:31:49 UTC (rev 112198)
@@ -0,0 +1,17 @@
+Index: lib/util/pm_c_util.h
+===================================================================
+--- lib/util/pm_c_util.h (revision 2009)
++++ lib/util/pm_c_util.h (working copy)
+@@ -80,10 +80,10 @@
+ #endif
+
+ #ifndef TRUE
+- #define TRUE true
++ #define TRUE 1
+ #endif
+ #ifndef FALSE
+-#define FALSE false
++#define FALSE 0
+ #endif
+
+ #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131014/49897b76/attachment.html>
More information about the macports-changes
mailing list