[46711] trunk/dports/devel/lzo
jmr at macports.org
jmr at macports.org
Tue Feb 10 16:50:59 PST 2009
Revision: 46711
http://trac.macports.org/changeset/46711
Author: jmr at macports.org
Date: 2009-02-10 16:50:58 -0800 (Tue, 10 Feb 2009)
Log Message:
-----------
lzo: modify config.h to fix 32/64-bit issues (approved by blb)
Modified Paths:
--------------
trunk/dports/devel/lzo/Portfile
Added Paths:
-----------
trunk/dports/devel/lzo/files/
trunk/dports/devel/lzo/files/config.h.ed
Modified: trunk/dports/devel/lzo/Portfile
===================================================================
--- trunk/dports/devel/lzo/Portfile 2009-02-11 00:50:29 UTC (rev 46710)
+++ trunk/dports/devel/lzo/Portfile 2009-02-11 00:50:58 UTC (rev 46711)
@@ -33,6 +33,12 @@
configure.ccache no
configure.args --enable-shared --disable-static
+post-configure {
+ if {[variant_isset universal]} {
+ system "cd ${worksrcpath} && ed - config.h < ${filespath}/config.h.ed && touch stamp-h1"
+ }
+}
+
post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath}/doc LTEST.TXT LZO.FAQ LZO.TXT \
Added: trunk/dports/devel/lzo/files/config.h.ed
===================================================================
--- trunk/dports/devel/lzo/files/config.h.ed (rev 0)
+++ trunk/dports/devel/lzo/files/config.h.ed 2009-02-11 00:50:58 UTC (rev 46711)
@@ -0,0 +1,29 @@
+/#define SIZEOF_CHAR_P/c
+#ifdef __LP64__
+#define SIZEOF_CHAR_P 8
+#else
+#define SIZEOF_CHAR_P 4
+#endif
+.
+/#define SIZEOF_PTRDIFF_T/c
+#ifdef __LP64__
+#define SIZEOF_PTRDIFF_T 8
+#else
+#define SIZEOF_PTRDIFF_T 4
+#endif
+.
+/#define SIZEOF_SIZE_T/c
+#ifdef __LP64__
+#define SIZEOF_SIZE_T 8
+#else
+#define SIZEOF_SIZE_T 4
+#endif
+.
+/#define SIZEOF_UNSIGNED_LONG/c
+#ifdef __LP64__
+#define SIZEOF_UNSIGNED_LONG 8
+#else
+#define SIZEOF_UNSIGNED_LONG 4
+#endif
+.
+w
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090210/22cb8bff/attachment.html>
More information about the macports-changes
mailing list