New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80031


Ignore:
Timestamp:
07/03/11 01:15:21 (4 years ago)
Author:
ryandesign@…
Message:

libgda: do not make use of database engines whose variants were not requested (#15147); upgrade to using postgres 8.4 (#17102); move code related to specific variants into those variants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gnome/libgda/Portfile

    r58271 r80031  
    55version         1.2.4 
    66set branch  [join [lrange [split ${version} .] 0 1] .] 
    7 revision        3 
     7revision        4 
    88description     GDA provides uniform access to different kinds of data sources. 
    99long_description        GNU Data Access (GDA) is an attempt to provide \ 
     
    2323depends_build   port:gnome-doc-utils 
    2424 
    25 # Wow this is ugly. The database ports should probably support 
    26 # ${prefix}/database instead of this weird include/database lib/database 
    27 # magic. 
    28 set mysqldir "${workpath}/mysql" 
    29  
    30 configure.cppflags-append   -I${prefix}/include/db44 -I${prefix}/include/postgresql82 
    31 configure.ldflags-append    -L${prefix}/lib/postgresql82 -L${prefix}/lib/db44 
     25configure.args  --without-bdb \ 
     26                --without-mysql \ 
     27                --without-postgres \ 
     28                --without-sqlite 
    3229 
    3330default_variants +mysql5 +db4 +postgresql8 +sqlite 
    3431 
    35 post-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  
     32set mysqldir ${workpath}/mysql 
    4333variant mysql5 { 
    4434        depends_lib-append      path:bin/mysql_config5:mysql5 
     35    post-patch { 
     36        file mkdir ${mysqldir} 
     37        system "ln -s \"[file join ${prefix} include mysql5]\" \"[file join ${mysqldir} include]\"" 
     38        system "ln -s \"[file join ${prefix} lib mysql5]\" \"[file join ${mysqldir} lib]\"" 
     39    } 
     40        configure.args-delete   --without-mysql 
    4541        configure.args-append   --with-mysql=${mysqldir} 
    4642} 
    4743 
    4844variant postgresql8 { 
    49         depends_lib-append      port:postgresql80 
     45        depends_lib-append      port:postgresql84 
     46        configure.args-delete   --without-postgres 
    5047        configure.args-append   --with-postgres=yes 
     48    configure.cppflags-append   -I${prefix}/include/postgresql84 
     49    configure.ldflags-append    -L${prefix}/lib/postgresql84 
    5150} 
    5251 
    5352variant db4 { 
    5453        depends_lib-append      port:db44 
     54        configure.args-delete   --without-bdb 
    5555        configure.args-append   --with-bdb=${prefix} 
    5656    build.args-append   BDB_LIBS=-ldb-4 
     57    configure.cppflags-append   -I${prefix}/include/db44 
     58    configure.ldflags-append    -L${prefix}/lib/db44 
    5759} 
    5860 
    5961variant sqlite { 
    6062        depends_lib-append      port:sqlite3 
     63        configure.args-delete   --without-sqlite 
    6164        configure.args-append   --with-sqlite=${prefix} 
    6265} 
Note: See TracChangeset for help on using the changeset viewer.