Revision: 83178 http://trac.macports.org/changeset/83178 Author: jmr@macports.org Date: 2011-08-27 03:07:27 -0700 (Sat, 27 Aug 2011) Log Message: ----------- nsping: fix build on 10.6+, use correct compiler and archflags Modified Paths: -------------- trunk/dports/net/nsping/Portfile Modified: trunk/dports/net/nsping/Portfile =================================================================== --- trunk/dports/net/nsping/Portfile 2011-08-27 09:08:09 UTC (rev 83177) +++ trunk/dports/net/nsping/Portfile 2011-08-27 10:07:27 UTC (rev 83178) @@ -21,9 +21,16 @@ checksums md5 64785a50eb065a9b28ee33ec8c1ccab2 extract.post_args | gnutar -x use_configure no -build.env CPPFLAGS="-DBIND_8_COMPAT" +build.args CPPFLAGS="-DBIND_8_COMPAT" \ + CC="${configure.cc}" \ + CFLAGS="${configure.cflags} ${configure.cc_archflags}" \ + LDFLAGS="${configure.ld_archflags}" build.target destroot { xinstall -m 755 -d ${destroot}${prefix}/bin xinstall -m 555 -W ${worksrcpath} nsping ${destroot}${prefix}/bin xinstall -m 755 -d ${destroot}${prefix}/share/man/man8 xinstall -m 644 -c -W ${worksrcpath} nsping.8 ${destroot}${prefix}/share/man/man8 } + +if {${os.platform} == "darwin" && ${os.major} >= 10} { + build.args-append LIBS=-lresolv +}
participants (1)
-
jmr@macports.org