Changeset 103850


Ignore:
Timestamp:
Mar 8, 2013, 10:16:11 PM (7 years ago)
Author:
jmr@…
Message:

tnef2txt: pass CFLAGS and platform defines correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/tnef2txt/Portfile

    r74893 r103850  
    2828
    2929variant universal {}
    30 if {[variant_isset universal]} {
    31     set archflags ${configure.universal_cflags}
    32 } else {
    33     set archflags ${configure.cc_archflags}
     30
     31set endian_define ""
     32if {${os.endian} == "big"} {
     33    set endian_define " -D __BYTE_ORDER=4321"
    3434}
    3535
    3636build.target        tnef2txt
    37 build.args          CC="${configure.cc} ${archflags}"
     37build.args          CC="${configure.cc}" \
     38                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
     39                    PLATFORM="-D LINUX${endian_define}"
     40# -D LINUX used because it happens to set the other defines correctly
     41# not defining a platform is bad because it assumes big-endian
    3842
    3943destroot {
Note: See TracChangeset for help on using the changeset viewer.