[33373] trunk/dports/gnome/libgda/Portfile

nox at macports.org nox at macports.org
Fri Jan 25 13:21:32 PST 2008


Revision: 33373
          http://trac.macosforge.org/projects/macports/changeset/33373
Author:   nox at macports.org
Date:     2008-01-25 13:21:28 -0800 (Fri, 25 Jan 2008)

Log Message:
-----------
libgda (closes #13949):
 * Fixed linker flags and MACOSX_DEPLOYMENT_TARGET conflict on Tiger.
 * Made a cleaner version of postgresql8 and db4 variants.

Modified Paths:
--------------
    trunk/dports/gnome/libgda/Portfile

Modified: trunk/dports/gnome/libgda/Portfile
===================================================================
--- trunk/dports/gnome/libgda/Portfile	2008-01-25 20:43:27 UTC (rev 33372)
+++ trunk/dports/gnome/libgda/Portfile	2008-01-25 21:21:28 UTC (rev 33373)
@@ -4,7 +4,7 @@
 name		libgda
 version		1.2.4
 set branch  [join [lrange [split ${version} .] 0 1] .]
-revision	1
+revision	2
 description	GDA provides uniform access to diffent kinds of data sources.
 long_description	GNU Data Access (GDA) is an attempt to provide \
 			uniform access to different kinds of data sources \
@@ -26,59 +26,20 @@
 # ${prefix}/database instead of this weird include/database lib/database
 # magic.
 set mysqldir "${workpath}/mysql"
-set pgdir "${workpath}/pgsql"
 
-configure.cppflags	"-I${prefix}/include -I${prefix}/include/db44 -I${pgdir}/include"
-configure.ldflags	"-Wl,-undefined -Wl,dynamic_lookup -L${prefix}/lib -L${pgdir}/lib -L${prefix}/lib/db44"
-configure.env-append	MACOSX_DEPLOYMENT_TARGET="10.3"
+configure.cppflags-append   -I${prefix}/include/db44 -I${prefix}/include/postgresql82
+configure.ldflags-append    -L${prefix}/lib/postgresql82 -L${prefix}/lib/db44
+configure.env-append        MACOSX_DEPLOYMENT_TARGET=10.3
+build.args                  MACOSX_DEPLOYMENT_TARGET=10.3
 
-configure.args  --mandir=${prefix}/share/man
-
 default_variants +mysql5 +db4 +postgresql8 +sqlite
 
-post-configure {
-	reinplace "s|-ldb|-ldb-4|g" \
-		${worksrcpath}/Makefile \
-		${worksrcpath}/data/Makefile \
-		${worksrcpath}/doc/C/Makefile \
-		${worksrcpath}/doc/Makefile \
-		${worksrcpath}/libgda/Makefile \
-		${worksrcpath}/libsql/Makefile \
-		${worksrcpath}/providers/Makefile \
-		${worksrcpath}/providers/bdb/Makefile \
-		${worksrcpath}/providers/firebird/Makefile \
-		${worksrcpath}/providers/freetds/Makefile \
-		${worksrcpath}/providers/ibmdb2/Makefile \
-		${worksrcpath}/providers/ldap/Makefile \
-		${worksrcpath}/providers/mdb/Makefile \
-		${worksrcpath}/providers/msql/Makefile \
-		${worksrcpath}/providers/mysql/Makefile \
-		${worksrcpath}/providers/odbc/Makefile \
-		${worksrcpath}/providers/oracle/Makefile \
-		${worksrcpath}/providers/postgres/Makefile \
-		${worksrcpath}/providers/sqlite/Makefile \
-		${worksrcpath}/providers/sybase/Makefile \
-		${worksrcpath}/providers/xbase/Makefile \
-		${worksrcpath}/providers/xml/Makefile \
-		${worksrcpath}/report/Makefile \
-		${worksrcpath}/report/libgda-report/Makefile \
-		${worksrcpath}/report/testing/Makefile \
-		${worksrcpath}/testing/Makefile \
-		${worksrcpath}/tools/Makefile
-}
-
 post-patch {
 	if {[variant_isset "mysql5"]} {
 		file mkdir ${mysqldir}
 		system "ln -s \"[file join ${prefix} include mysql5]\" \"[file join ${mysqldir} include]\""
 		system "ln -s \"[file join ${prefix} lib mysql5]\" \"[file join ${mysqldir} lib]\""
 	}
-
-	if {[variant_isset "postgresql8"]} {
-		file mkdir ${pgdir}
-		system "ln -s \"[file join ${prefix} include pgsql8]\" \"[file join ${pgdir} include]\""
-		system "ln -s \"[file join ${prefix} lib pgsql8]\" \"[file join ${pgdir} lib]\""
-	}
 }
 
 variant mysql5 {
@@ -88,12 +49,13 @@
 
 variant postgresql8 {
 	depends_lib-append	port:postgresql8
-	configure.args-append	--with-postgres=${pgdir}
+	configure.args-append	--with-postgres=yes
 }
 
 variant db4 {
 	depends_lib-append	port:db44
 	configure.args-append	--with-bdb=${prefix}
+    build.args-append   BDB_LIBS=-ldb-4
 }
 
 variant sqlite {
@@ -101,6 +63,11 @@
 	configure.args-append	--with-sqlite=${prefix}
 }
 
+platform darwin 8 {
+    build.args              MACOSX_DEPLOYMENT_TARGET=10.4
+    configure.env-append    MACOSX_DEPLOYMENT_TARGET=10.4
+}
+
 livecheck.check regex
 livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/?C=M&O=D
 livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080125/8506bc70/attachment.html


More information about the macports-changes mailing list