[45268] trunk/dports/net/squid

jmr at macports.org jmr at macports.org
Mon Jan 12 07:53:27 PST 2009


Revision: 45268
          http://trac.macports.org/changeset/45268
Author:   jmr at macports.org
Date:     2009-01-12 07:53:27 -0800 (Mon, 12 Jan 2009)
Log Message:
-----------
squid: 4-way universal fixes

Modified Paths:
--------------
    trunk/dports/net/squid/Portfile

Added Paths:
-----------
    trunk/dports/net/squid/files/patch-include_autoconf.h.diff

Modified: trunk/dports/net/squid/Portfile
===================================================================
--- trunk/dports/net/squid/Portfile	2009-01-12 15:52:35 UTC (rev 45267)
+++ trunk/dports/net/squid/Portfile	2009-01-12 15:53:27 UTC (rev 45268)
@@ -53,6 +53,11 @@
                 --enable-delay-pools \
                 --enable-removal-policies \
                 --enable-storeio=ufs,aufs,diskd,coss,null
+post-configure {
+    if {[variant_isset universal] && [lsearch -glob ${universal_archs} *64] != -1} {
+        system "cd ${worksrcpath} && patch -p0 < ${filespath}/patch-include_autoconf.h.diff"
+    }
+}
 
 build.args      DEFAULT_PID_FILE=${prefix}/var/run/squid/squid.pid
 use_parallel_build  yes

Added: trunk/dports/net/squid/files/patch-include_autoconf.h.diff
===================================================================
--- trunk/dports/net/squid/files/patch-include_autoconf.h.diff	                        (rev 0)
+++ trunk/dports/net/squid/files/patch-include_autoconf.h.diff	2009-01-12 15:53:27 UTC (rev 45268)
@@ -0,0 +1,38 @@
+--- include/autoconf.h.orig	2009-01-13 02:20:42.000000000 +1100
++++ include/autoconf.h	2009-01-13 02:35:32.000000000 +1100
+@@ -710,7 +710,11 @@
+ #define SIZEOF_INT8_T 1
+ 
+ /* The size of `long', as computed by sizeof. */
++#ifdef __LP64__
+ #define SIZEOF_LONG 8
++#else
++#define SIZEOF_LONG 4
++#endif
+ 
+ /* The size of `long long', as computed by sizeof. */
+ #define SIZEOF_LONG_LONG 8
+@@ -722,7 +726,11 @@
+ #define SIZEOF_SHORT 2
+ 
+ /* The size of `size_t', as computed by sizeof. */
++#ifdef __LP64__
+ #define SIZEOF_SIZE_T 8
++#else
++#define SIZEOF_SIZE_T 4
++#endif
+ 
+ /* The size of `uint16_t', as computed by sizeof. */
+ #define SIZEOF_UINT16_T 2
+@@ -749,7 +757,11 @@
+ #define SIZEOF_U_INT8_T 1
+ 
+ /* The size of `void *', as computed by sizeof. */
++#ifdef __LP64__
+ #define SIZEOF_VOID_P 8
++#else
++#define SIZEOF_VOID_P 4
++#endif
+ 
+ /* The size of `__int64', as computed by sizeof. */
+ #define SIZEOF___INT64 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090112/adbcac05/attachment.html>


More information about the macports-changes mailing list