Ignore:
Timestamp:
Jun 13, 2011, 9:16:52 AM (8 years ago)
Author:
ryandesign@…
Message:

nasty: ensure we're UsingTheRightCompiler and build_arch; add universal variant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/security/nasty/Portfile

    r56184 r79436  
    2525use_configure           no
    2626
    27 build.env               CFLAGS=-I${prefix}/include \
    28                                 LDFLAGS=-L${prefix}/lib
     27variant universal {}
     28if {[variant_isset universal]} {
     29    set archflags ${configure.universal_cflags}
     30} else {
     31    set archflags ${configure.cc_archflags}
     32}
     33
     34build.env           CC="${configure.cc}" \
     35                    CFLAGS="${configure.cflags} ${configure.cppflags} ${archflags}" \
     36                    LDFLAGS="${configure.ldflags} ${archflags}"
    2937
    3038destroot.destdir        prefix=${destroot}${prefix}
Note: See TracChangeset for help on using the changeset viewer.