Ticket #18927: neon-config.diff

File neon-config.diff, 1.1 KB (added by jmroot (Joshua Root), 16 years ago)
  • files/config.h.ed

     
     1/#define SIZEOF_LONG/c
     2#ifdef __LP64__
     3#define SIZEOF_LONG 8
     4#else
     5#define SIZEOF_LONG 4
     6#endif
     7.
     8/#define SIZEOF_SIZE_T/c
     9#ifdef __LP64__
     10#define SIZEOF_SIZE_T 8
     11#else
     12#define SIZEOF_SIZE_T 4
     13#endif
     14.
     15/#define SIZEOF_SSIZE_T/c
     16#ifdef __LP64__
     17#define SIZEOF_SSIZE_T 8
     18#else
     19#define SIZEOF_SSIZE_T 4
     20#endif
     21.
     22/#define SIZEOF_TIME_T/c
     23#ifdef __LP64__
     24#define SIZEOF_TIME_T 8
     25#else
     26#define SIZEOF_TIME_T 4
     27#endif
     28.
     29/#define SIZEOF_XML_SIZE/c
     30#ifdef __LP64__
     31#define SIZEOF_XML_SIZE 8
     32#else
     33#define SIZEOF_XML_SIZE 4
     34#endif
     35.
     36w
  • Portfile

     
    3535                --with-expat \
    3636                --mandir=${prefix}/share/man
    3737
     38post-configure {
     39    if {[variant_isset universal]} {
     40        system "cd ${worksrcpath} && ed - config.h < ${filespath}/config.h.ed && touch stamp-h1"
     41    }
     42}
     43
    3844pre-test {
    3945        set x {}
    4046