[105103] trunk/dports/databases/libgda3/Portfile

devans at macports.org devans at macports.org
Wed Apr 10 08:23:09 PDT 2013


Revision: 105103
          https://trac.macports.org/changeset/105103
Author:   devans at macports.org
Date:     2013-04-10 08:23:08 -0700 (Wed, 10 Apr 2013)
Log Message:
-----------
libgda3: fix build with clang (#34331), explicitly disable unwanted backends (#34332).

Modified Paths:
--------------
    trunk/dports/databases/libgda3/Portfile

Modified: trunk/dports/databases/libgda3/Portfile
===================================================================
--- trunk/dports/databases/libgda3/Portfile	2013-04-10 14:23:14 UTC (rev 105102)
+++ trunk/dports/databases/libgda3/Portfile	2013-04-10 15:23:08 UTC (rev 105103)
@@ -45,8 +45,26 @@
 configure.perl  ${prefix}/bin/perl5.12
 configure.env-append  INTLTOOL_PERL=${configure.perl}
 
-configure.args  --mandir=${prefix}/share/man
+# fix build with clang, see #34331
 
+if {${configure.compiler} == "clang"} {
+        configure.cflags-append -Wno-return-type
+}
+
+configure.args  --mandir=${prefix}/share/man \
+                --without-odbc \
+                --without-mysql \
+                --without-mSQL \
+                --without-postgres \
+                --without-tds \
+                --without-ibmdb2 \
+                --without-sybase \
+                --without-oracle \
+                --without-firebird \
+                --without-xbase \
+                --without-mdb \
+                --without-ldap
+                
 post-configure {
 	fs-traverse file ${worksrcpath} {
 		if [string match {/Makefile$} ${file}] {
@@ -60,7 +78,7 @@
 variant with_mysql4 conflicts with_mysql5 \
     description {support for MySQL 4.x} {
 	depends_lib-append	port:mysql4
-	configure.args-append	--with-mysql=${prefix}
+	configure.args-replace  --without-mysql --with-mysql=${prefix}
 }
 
 variant with_mysql5 conflicts with_mysql4 \
@@ -68,7 +86,7 @@
 	depends_lib-append	path:bin/mysql_config5:mysql5
 	configure.env-append	\
 		MYSQL_CONFIG=${prefix}/lib/mysql5/bin/mysql_config
-	configure.args-append	--with-mysql=${prefix}/lib/mysql5
+	configure.args-replace  --without-mysql --with-mysql=${prefix}/lib/mysql5
 	configure.cppflags-append	"-I${prefix}/include/mysql5/mysql"
 }
 
@@ -77,8 +95,7 @@
 	configure.cppflags-append	"-I${prefix}/include/postgresql82"
 	configure.ldflags-append	"-L${prefix}/lib/postgresql82"
 	depends_lib-append	port:postgresql82
-	configure.args-append	--with-postgres
-#	configure.args-append	--with-postgres=${prefix}/lib/postgresql82
+	configure.args-replace  --without-postgress --with-postgres
 }
 
 variant with_postgresql83 conflicts with_postgresql82 \
@@ -86,7 +103,7 @@
 	configure.cppflags-append	"-I${prefix}/include/postgresql83"
 	configure.ldflags-append	"-L${prefix}/lib/postgresql83"
 	depends_lib-append	port:postgresql83
-	configure.args-append	--with-postgres
+	configure.args-replace  --without-postgress --with-postgres
 }
 
 variant with_bdb46 conflicts without_bdb \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130410/3e207f94/attachment.html>


More information about the macports-changes mailing list