Index: files/patch-Makefile.diff
===================================================================
--- files/patch-Makefile.diff	(revision 0)
+++ files/patch-Makefile.diff	(revision 0)
@@ -0,0 +1,20 @@
+--- Makefile.orig	2011-03-01 15:48:18.000000000 -0600
++++ Makefile	2011-03-07 17:20:31.000000000 -0600
+@@ -20,7 +20,7 @@
+ #    to compile code-generator programs as part of the build process.
+ #    See TCC below for the C compiler for building the finished binary.
+ #
+-BCC = gcc
++BCC = $(CC)
+ 
+ #### The suffix to add to final executable file.  When cross-compiling
+ #    to windows, make this ".exe".  Otherwise leave it blank.
+@@ -35,7 +35,7 @@
+ #
+ #TCC = gcc -O6
+ #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
+-TCC = gcc -g -Os -Wall
++TCC = $(CC) -g -Os -Wall
+ 
+ # To add support for HTTPS
+ TCC += -DFOSSIL_ENABLE_SSL
Index: Portfile
===================================================================
--- Portfile	(revision 76754)
+++ Portfile	(working copy)
@@ -32,7 +32,7 @@
 depends_lib         port:zlib \
                     port:openssl
 
-universal_variant   no
+patchfiles          patch-Makefile.diff
 
 post-extract {
     reinplace s|\$\(INSTALLDIR\)|\$(DESTDIR)/${prefix}/bin|g ${worksrcpath}/src/makemake.tcl
@@ -42,6 +42,16 @@
     system "cd ${worksrcpath}/src && tclsh ${worksrcpath}/src/makemake.tcl"
 }
 
+if {[variant_isset universal]} {
+    set archflags ${configure.universal_cflags}
+} else {
+    set archflags ${configure.cc_archflags}
+}
+
+build.args-append   CC="${configure.cc} ${archflags}" \
+                    CFLAGS=${configure.cflags} \
+                    LDFLAGS=${configure.ldflags}
+
 livecheck.type      regex
 livecheck.url       ${homepage}/download.html
 livecheck.regex     ${name}-src-(\\d{14})${extract.suffix}
