--- Portfile.orig	2007-10-08 13:26:33.000000000 +0200
+++ Portfile	2007-10-08 13:27:52.000000000 +0200
@@ -120,6 +120,15 @@
 		--with-iodbc=/usr
 }
 
+variant unixodbc {
+        configure.args-delete \
+                --with-iodbc=/usr \
+                --with-pdo-odbc=generic,/usr,iodbc,/usr/include
+        configure.args-append \
+                --with-unixODBC=${prefix} \
+                --with-pdo-odbc=unixODBC,${prefix}
+}
+
 # Build an Apache 1 module. On Mac OS X, it uses Apple's provided Apache 1 server.
 # On other platforms, the MacPorts apache port is used. Keep the options here
 # in sync with those in the relevant part of the post-destroot phase.

