# $Id$ PortSystem 1.0 name libgda version 1.2.4 set branch [join [lrange [split ${version} .] 0 1] .] revision 3 description GDA provides uniform access to different kinds of data sources. long_description GNU Data Access (GDA) is an attempt to provide \ uniform access to different kinds of data sources \ (databases, information servers, mail spools, etc). maintainers landonf categories gnome platforms darwin homepage http://www.gnome-db.org/ master_sites gnome:sources/${name}/${branch}/ checksums md5 512a8ed842ce98eb432e69bd6867f437 use_bzip2 yes depends_lib port:libxslt \ port:glib2 depends_build port:gnome-doc-utils # Wow this is ugly. The database ports should probably support # ${prefix}/database instead of this weird include/database lib/database # magic. set mysqldir "${workpath}/mysql" configure.cppflags-append -I${prefix}/include/db44 -I${prefix}/include/postgresql82 configure.ldflags-append -L${prefix}/lib/postgresql82 -L${prefix}/lib/db44 default_variants +mysql5 +db4 +postgresql8 +sqlite 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]\"" } } variant mysql5 { depends_lib-append port:mysql5 configure.args-append --with-mysql=${mysqldir} } variant postgresql8 { depends_lib-append port:postgresql80 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 { depends_lib-append port:sqlite3 configure.args-append --with-sqlite=${prefix} } livecheck.check regex livecheck.url http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/?C=M&O=D livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)