--- files/patch-configure-mysql.diff.orig	2014-06-26 06:46:48.000000000 -0700
+++ files/patch-configure-mysql.diff	2014-06-26 06:46:57.000000000 -0700
@@ -1,9 +1,10 @@
---- configure.orig	2014-01-08 14:36:00.000000000 -0700
-+++ configure	2014-01-08 14:37:59.000000000 -0700
-@@ -24328,110 +24328,9 @@
+--- configure.orig	2014-06-03 01:28:41.000000000 -0700
++++ configure	2014-06-26 06:42:01.000000000 -0700
+@@ -24039,112 +24039,13 @@
+ if test "${with_mysql+set}" = set; then :
    withval=$with_mysql;
    if test "$withval" != "no"; then
-         if test "$withval" = "yes"; then
+-        if test "$withval" = "yes"; then
 -#
 -# This code is very broken on older systems
 -#
@@ -108,9 +109,14 @@
 -$as_echo "no" >&6; }
 -              as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
 -           fi
-+           MYSQL_INCDIR=@@PREFIX@@/include/mysql55/mysql
-+           MYSQL_LIBDIR=@@PREFIX@@/lib/mysql55/mysql
-+           MYSQL_BINDIR=@@PREFIX@@/lib/mysql55/bin
-         fi
+-        fi
++
++     ## replaced by macports start
++     MYSQL_INCDIR=/opt/local/include/mysql55/mysql
++     MYSQL_LIBDIR=/opt/local/lib/mysql55/mysql
++     MYSQL_BINDIR=/opt/local/lib/mysql55/bin
++     ## replaced by macports end
++
       MYSQL_INCLUDE=-I$MYSQL_INCDIR
       if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
+           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then