source: trunk/dports/gnome/libgda/Portfile @ 58230

Last change on this file since 58230 was 58230, checked in by ryandesign@…, 11 years ago

rewrite mysql5 dependency so mysql5-devel can satisfy it

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 58230 2009-09-24 16:45:22Z ryandesign@macports.org $
2
3PortSystem 1.0
4name            libgda
5version         1.2.4
6set branch  [join [lrange [split ${version} .] 0 1] .]
7revision        3
8description     GDA provides uniform access to different kinds of data sources.
9long_description        GNU Data Access (GDA) is an attempt to provide \
10                        uniform access to different kinds of data sources \
11                        (databases, information servers, mail spools, etc).
12maintainers     landonf
13categories      gnome
14platforms       darwin
15homepage        http://www.gnome-db.org/
16master_sites    gnome:sources/${name}/${branch}/
17checksums       md5 512a8ed842ce98eb432e69bd6867f437
18use_bzip2       yes
19
20depends_lib     port:libxslt \
21                port:glib2
22
23depends_build   port:gnome-doc-utils
24
25# Wow this is ugly. The database ports should probably support
26# ${prefix}/database instead of this weird include/database lib/database
27# magic.
28set mysqldir "${workpath}/mysql"
29
30configure.cppflags-append   -I${prefix}/include/db44 -I${prefix}/include/postgresql82
31configure.ldflags-append    -L${prefix}/lib/postgresql82 -L${prefix}/lib/db44
32
33default_variants +mysql5 +db4 +postgresql8 +sqlite
34
35post-patch {
36        if {[variant_isset "mysql5"]} {
37                file mkdir ${mysqldir}
38                system "ln -s \"[file join ${prefix} include mysql5]\" \"[file join ${mysqldir} include]\""
39                system "ln -s \"[file join ${prefix} lib mysql5]\" \"[file join ${mysqldir} lib]\""
40        }
41}
42
43variant mysql5 {
44        depends_lib-append      path:bin/mysql_config5:mysql5
45        configure.args-append   --with-mysql=${mysqldir}
46}
47
48variant postgresql8 {
49        depends_lib-append      port:postgresql80
50        configure.args-append   --with-postgres=yes
51}
52
53variant db4 {
54        depends_lib-append      port:db44
55        configure.args-append   --with-bdb=${prefix}
56    build.args-append   BDB_LIBS=-ldb-4
57}
58
59variant sqlite {
60        depends_lib-append      port:sqlite3
61        configure.args-append   --with-sqlite=${prefix}
62}
63
64livecheck.type  regex
65livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/?C=M&O=D
66livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.