Modified: trunk/dports/net/nsping/Portfile (83177 => 83178)
--- 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
+}