Ignore:
Timestamp:
May 25, 2011, 3:51:50 PM (8 years ago)
Author:
jmr@…
Message:

postgresql82: fix universal build (#24738)

Location:
trunk/dports/databases/postgresql82
Files:
1 added
1 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/postgresql82/Portfile

    r78424 r78880  
    4646                                --enable-thread-safety \
    4747                                --enable-integer-datetimes
     48
     49if {[variant_isset universal]} {
     50    post-patch {
     51        xinstall -m 755 ${filespath}/ldfat.sh ${workpath}
     52        reinplace s|@UNIVERSAL_ARCHS@|${universal_archs}| ${workpath}/ldfat.sh
     53    }
     54    configure.env-append LD=${workpath}/ldfat.sh
     55    post-configure {
     56        system "cd ${worksrcpath}/src/include \
     57                && ed - pg_config.h < ${filespath}/pg_config.h.ed \
     58                && touch stamp-h"
     59        system "cd ${worksrcpath}/src/interfaces/ecpg/include \
     60                && ed - ecpg_config.h < ${filespath}/ecpg_config.h.ed \
     61                && touch stamp-h"
     62    }
     63}
    4864
    4965build.type              gnu
  • trunk/dports/databases/postgresql82/files/pg_config.h.ed

    r78878 r78880  
    1818#else
    1919#define ALIGNOF_LONG_LONG_INT 4
    20 #endif
    21 .
    22 /FLOAT8PASSBYVAL/c
    23 #ifdef __LP64__
    24 #define FLOAT8PASSBYVAL true
    25 #else
    26 #define FLOAT8PASSBYVAL false
    2720#endif
    2821.
     
    7669#endif
    7770.
    78 /SIZEOF_VOID_P/c
    79 #ifdef __LP64__
    80 #define SIZEOF_VOID_P 8
    81 #else
    82 #define SIZEOF_VOID_P 4
    83 #endif
    84 .
    8571/UINT64_FORMAT/c
    8672#ifdef __LP64__
     
    9076#endif
    9177.
    92 /USE_FLOAT8_BYVAL/c
    93 #ifdef __LP64__
    94 #define USE_FLOAT8_BYVAL 1
    95 #else
    96 /* #undef USE_FLOAT8_BYVAL */
    97 #endif
    98 .
    99 /WORDS_BIGENDIAN/c
    100 #ifdef __BIG_ENDIAN__
    101 #define WORDS_BIGENDIAN 1
    102 #else
    103 /* #undef WORDS_BIGENDIAN */
    104 #endif
    105 .
    10678w
Note: See TracChangeset for help on using the changeset viewer.