Modified: trunk/dports/databases/mariadb/Portfile (94865 => 94866)
--- trunk/dports/databases/mariadb/Portfile 2012-07-01 21:20:22 UTC (rev 94865)
+++ trunk/dports/databases/mariadb/Portfile 2012-07-01 21:21:07 UTC (rev 94866)
@@ -6,7 +6,7 @@
name mariadb
conflicts mysql5-devel mysql5 mysql4
version 5.2.9
-revision 2
+revision 3
categories databases
platforms darwin
license GPL-2
@@ -57,9 +57,10 @@
patchfiles patch-Makefile.in.diff
-# Reconf to fix building with clang.
-depends_build port:autoconf
-use_autoreconf yes
+# Configure gets clang wrong.
+if {${configure.compiler} == "clang"} {
+ patchfiles-append patch-clang-configure.diff
+}
configure.args \
--mandir=${prefix}/share/man \
Added: trunk/dports/databases/mariadb/files/patch-clang-configure.diff (0 => 94866)
--- trunk/dports/databases/mariadb/files/patch-clang-configure.diff (rev 0)
+++ trunk/dports/databases/mariadb/files/patch-clang-configure.diff 2012-07-01 21:21:07 UTC (rev 94866)
@@ -0,0 +1,11 @@
+--- configure.orig 2012-07-01 13:47:40.000000000 -0700
++++ configure 2012-07-01 13:48:57.000000000 -0700
+@@ -4065,7 +4065,7 @@
+ { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
+ $as_echo "$ac_cv_c_compiler_gnu" >&6; }
+ if test $ac_compiler_gnu = yes; then
+- GCC=yes
++ GCC=
+ else
+ GCC=
+ fi