New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 83178


Ignore:
Timestamp:
08/27/11 03:07:27 (4 years ago)
Author:
jmr@…
Message:

nsping: fix build on 10.6+, use correct compiler and archflags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/nsping/Portfile

    r36370 r83178  
    2222extract.post_args       | gnutar -x 
    2323use_configure           no 
    24 build.env               CPPFLAGS="-DBIND_8_COMPAT" 
     24build.args              CPPFLAGS="-DBIND_8_COMPAT" \ 
     25                        CC="${configure.cc}" \ 
     26                        CFLAGS="${configure.cflags} ${configure.cc_archflags}" \ 
     27                        LDFLAGS="${configure.ld_archflags}" 
    2528build.target 
    2629destroot                { xinstall -m 755 -d ${destroot}${prefix}/bin 
     
    2831                          xinstall -m 755 -d ${destroot}${prefix}/share/man/man8 
    2932                          xinstall -m 644 -c -W ${worksrcpath} nsping.8 ${destroot}${prefix}/share/man/man8 } 
     33 
     34if {${os.platform} == "darwin" && ${os.major} >= 10} { 
     35    build.args-append LIBS=-lresolv 
     36} 
Note: See TracChangeset for help on using the changeset viewer.