Revision
89341
Author
ryandesign@macports.org
Date
2012-01-25 17:49:39 -0800 (Wed, 25 Jan 2012)

Log Message

jshon: jansson is a library dependency not just a build dependency; add universal variant and ensure we're UsingTheRightCompiler and -arch flags

Modified Paths

Diff

Modified: trunk/dports/textproc/jshon/Portfile (89340 => 89341)


--- trunk/dports/textproc/jshon/Portfile	2012-01-26 01:42:20 UTC (rev 89340)
+++ trunk/dports/textproc/jshon/Portfile	2012-01-26 01:49:39 UTC (rev 89341)
@@ -4,6 +4,7 @@
 PortGroup  github 1.0
 
 github.setup    keenerd jshon 20111222
+revision        1
 categories      textproc
 platforms       darwin
 license         MIT
@@ -15,8 +16,14 @@
 fetch.type      git
 git.branch      471a3bd08e
 
-depends_build   port:jansson
+depends_lib     port:jansson
+
 use_configure   no
+
+variant universal {}
+
+build.args      CC="${configure.cc} [get_canonical_archflags cc]"
+
 destroot {
     xinstall -m 755 ${worksrcpath}/jshon ${destroot}${prefix}/bin/
     xinstall -m 644 ${worksrcpath}/jshon.1 ${destroot}${prefix}/share/man/man1/