[63149] trunk/dports/databases/postgresql84

jmr at macports.org jmr at macports.org
Wed Jan 27 13:46:17 PST 2010


Revision: 63149
          http://trac.macports.org/changeset/63149
Author:   jmr at macports.org
Date:     2010-01-27 13:46:15 -0800 (Wed, 27 Jan 2010)
Log Message:
-----------
postgresql84: fix universal build (#21358)

Modified Paths:
--------------
    trunk/dports/databases/postgresql84/Portfile

Added Paths:
-----------
    trunk/dports/databases/postgresql84/files/
    trunk/dports/databases/postgresql84/files/ecpg_config.h.ed
    trunk/dports/databases/postgresql84/files/pg_config.h.ed

Modified: trunk/dports/databases/postgresql84/Portfile
===================================================================
--- trunk/dports/databases/postgresql84/Portfile	2010-01-27 21:15:59 UTC (rev 63148)
+++ trunk/dports/databases/postgresql84/Portfile	2010-01-27 21:46:15 UTC (rev 63149)
@@ -51,6 +51,17 @@
 				--with-ossp-uuid
 configure.cppflags-append	-I${prefix}/include/ossp
 
+if {[variant_isset universal]} {
+    post-configure {
+        system "cd ${worksrcpath}/src/include \
+                && ed - pg_config.h < ${filespath}/pg_config.h.ed \
+                && touch stamp-h"
+        system "cd ${worksrcpath}/src/interfaces/ecpg/include \
+                && ed - ecpg_config.h < ${filespath}/ecpg_config.h.ed \
+                && touch stamp-h"
+    }
+}
+
 build.type		gnu
 build.target
 

Added: trunk/dports/databases/postgresql84/files/ecpg_config.h.ed
===================================================================
--- trunk/dports/databases/postgresql84/files/ecpg_config.h.ed	                        (rev 0)
+++ trunk/dports/databases/postgresql84/files/ecpg_config.h.ed	2010-01-27 21:46:15 UTC (rev 63149)
@@ -0,0 +1,15 @@
+/HAVE_LONG_INT_64/c
+#ifdef __LP64__
+#define HAVE_LONG_INT_64 1
+#else
+/* #undef HAVE_LONG_INT_64 */
+#endif
+.
+/HAVE_LONG_LONG_INT_64/c
+#ifdef __LP64__
+/* #undef HAVE_LONG_LONG_INT_64 */
+#else
+#define HAVE_LONG_LONG_INT_64 1
+#endif
+.
+w

Added: trunk/dports/databases/postgresql84/files/pg_config.h.ed
===================================================================
--- trunk/dports/databases/postgresql84/files/pg_config.h.ed	                        (rev 0)
+++ trunk/dports/databases/postgresql84/files/pg_config.h.ed	2010-01-27 21:46:15 UTC (rev 63149)
@@ -0,0 +1,106 @@
+/ALIGNOF_DOUBLE/c
+#ifdef __LP64__
+#define ALIGNOF_DOUBLE 8
+#else
+#define ALIGNOF_DOUBLE 4
+#endif
+.
+/ALIGNOF_LONG/c
+#ifdef __LP64__
+#define ALIGNOF_LONG 8
+#else
+#define ALIGNOF_LONG 4
+#endif
+.
+/ALIGNOF_LONG_LONG_INT/c
+#ifdef __LP64__
+/* #undef ALIGNOF_LONG_LONG_INT */
+#else
+#define ALIGNOF_LONG_LONG_INT 4
+#endif
+.
+/FLOAT8PASSBYVAL/c
+#ifdef __LP64__
+#define FLOAT8PASSBYVAL true
+#else
+#define FLOAT8PASSBYVAL false
+#endif
+.
+/HAVE_LL_CONSTANTS/c
+#ifdef __LP64__
+/* #undef HAVE_LL_CONSTANTS */
+#else
+#define HAVE_LL_CONSTANTS 1
+#endif
+.
+/HAVE_LONG_INT_64/c
+#ifdef __LP64__
+#define HAVE_LONG_INT_64 1
+#else
+/* #undef HAVE_LONG_INT_64 */
+#endif
+.
+/HAVE_LONG_LONG_INT_64/c
+#ifdef __LP64__
+/* #undef HAVE_LONG_LONG_INT_64 */
+#else
+#define HAVE_LONG_LONG_INT_64 1
+#endif
+.
+/INT64_FORMAT/c
+#ifdef __LP64__
+#define INT64_FORMAT "%ld"
+#else
+#define INT64_FORMAT "%lld"
+#endif
+.
+/MAXIMUM_ALIGNOF/c
+#ifdef __LP64__
+#define MAXIMUM_ALIGNOF 8
+#else
+#define MAXIMUM_ALIGNOF 4
+#endif
+.
+/SIZEOF_SIZE_T/c
+#ifdef __LP64__
+#define SIZEOF_SIZE_T 8
+#else
+#define SIZEOF_SIZE_T 4
+#endif
+.
+/SIZEOF_UNSIGNED_LONG/c
+#ifdef __LP64__
+#define SIZEOF_UNSIGNED_LONG 8
+#else
+#define SIZEOF_UNSIGNED_LONG 4
+#endif
+.
+/SIZEOF_VOID_P/c
+#ifdef __LP64__
+#define SIZEOF_VOID_P 8
+#else
+#define SIZEOF_VOID_P 4
+#endif
+.
+/UINT64_FORMAT/c
+#ifdef __LP64__
+#define UINT64_FORMAT "%lu"
+#else
+#define UINT64_FORMAT "%llu"
+#endif
+.
+/USE_FLOAT8_BYVAL/c
+#ifdef __LP64__
+#define USE_FLOAT8_BYVAL 1
+#else
+/* #undef USE_FLOAT8_BYVAL */
+#endif
+.
+/WORDS_BIGENDIAN/c
+#ifdef __BIG_ENDIAN__
+#define WORDS_BIGENDIAN 1
+#else
+/* #undef WORDS_BIGENDIAN */
+#endif
+.
+w
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100127/201d66d0/attachment-0001.html>


More information about the macports-changes mailing list