libranlib: ensure we're UsingTheRightCompiler and build_arch; add universal variant
--- trunk/dports/math/libranlib/Portfile 2011-08-29 06:01:11 UTC (rev 83233)
+++ trunk/dports/math/libranlib/Portfile 2011-08-29 06:01:44 UTC (rev 83234)
@@ -42,7 +42,10 @@
use_configure no
-build.args CFLAGS=-fno-common \
+variant universal {}
+
+build.args CC=${configure.cc} \
+ CFLAGS="[get_canonical_archflags] -fno-common" \
prefix=${prefix}
-destroot.args prefix=${prefix}
+eval destroot.args ${build.args}