Ticket #13949: libgda-1.2.4_1.diff

File libgda-1.2.4_1.diff, 3.6 KB (added by nox@…, 16 years ago)
  • Portfile

     
    44name            libgda
    55version         1.2.4
    66set branch  [join [lrange [split ${version} .] 0 1] .]
    7 revision        1
     7revision        2
    88description     GDA provides uniform access to diffent kinds of data sources.
    99long_description        GNU Data Access (GDA) is an attempt to provide \
    1010                        uniform access to different kinds of data sources \
     
    2626# ${prefix}/database instead of this weird include/database lib/database
    2727# magic.
    2828set mysqldir "${workpath}/mysql"
    29 set pgdir "${workpath}/pgsql"
    3029
    31 configure.cppflags      "-I${prefix}/include -I${prefix}/include/db44 -I${pgdir}/include"
    32 configure.ldflags       "-Wl,-undefined -Wl,dynamic_lookup -L${prefix}/lib -L${pgdir}/lib -L${prefix}/lib/db44"
    33 configure.env-append    MACOSX_DEPLOYMENT_TARGET="10.3"
     30configure.cppflags-append   -I${prefix}/include/db44 -I${prefix}/include/postgresql82
     31configure.ldflags-append    -L${prefix}/lib/postgresql82 -L${prefix}/lib/db44
     32configure.env-append        MACOSX_DEPLOYMENT_TARGET=10.3
     33build.args                  MACOSX_DEPLOYMENT_TARGET=10.3
    3434
    35 configure.args  --mandir=${prefix}/share/man
    36 
    3735default_variants +mysql5 +db4 +postgresql8 +sqlite
    3836
    39 post-configure {
    40         reinplace "s|-ldb|-ldb-4|g" \
    41                 ${worksrcpath}/Makefile \
    42                 ${worksrcpath}/data/Makefile \
    43                 ${worksrcpath}/doc/C/Makefile \
    44                 ${worksrcpath}/doc/Makefile \
    45                 ${worksrcpath}/libgda/Makefile \
    46                 ${worksrcpath}/libsql/Makefile \
    47                 ${worksrcpath}/providers/Makefile \
    48                 ${worksrcpath}/providers/bdb/Makefile \
    49                 ${worksrcpath}/providers/firebird/Makefile \
    50                 ${worksrcpath}/providers/freetds/Makefile \
    51                 ${worksrcpath}/providers/ibmdb2/Makefile \
    52                 ${worksrcpath}/providers/ldap/Makefile \
    53                 ${worksrcpath}/providers/mdb/Makefile \
    54                 ${worksrcpath}/providers/msql/Makefile \
    55                 ${worksrcpath}/providers/mysql/Makefile \
    56                 ${worksrcpath}/providers/odbc/Makefile \
    57                 ${worksrcpath}/providers/oracle/Makefile \
    58                 ${worksrcpath}/providers/postgres/Makefile \
    59                 ${worksrcpath}/providers/sqlite/Makefile \
    60                 ${worksrcpath}/providers/sybase/Makefile \
    61                 ${worksrcpath}/providers/xbase/Makefile \
    62                 ${worksrcpath}/providers/xml/Makefile \
    63                 ${worksrcpath}/report/Makefile \
    64                 ${worksrcpath}/report/libgda-report/Makefile \
    65                 ${worksrcpath}/report/testing/Makefile \
    66                 ${worksrcpath}/testing/Makefile \
    67                 ${worksrcpath}/tools/Makefile
    68 }
    69 
    7037post-patch {
    7138        if {[variant_isset "mysql5"]} {
    7239                file mkdir ${mysqldir}
    7340                system "ln -s \"[file join ${prefix} include mysql5]\" \"[file join ${mysqldir} include]\""
    7441                system "ln -s \"[file join ${prefix} lib mysql5]\" \"[file join ${mysqldir} lib]\""
    7542        }
    76 
    77         if {[variant_isset "postgresql8"]} {
    78                 file mkdir ${pgdir}
    79                 system "ln -s \"[file join ${prefix} include pgsql8]\" \"[file join ${pgdir} include]\""
    80                 system "ln -s \"[file join ${prefix} lib pgsql8]\" \"[file join ${pgdir} lib]\""
    81         }
    8243}
    8344
    8445variant mysql5 {
     
    8849
    8950variant postgresql8 {
    9051        depends_lib-append      port:postgresql8
    91         configure.args-append   --with-postgres=${pgdir}
     52        configure.args-append   --with-postgres=yes
    9253}
    9354
    9455variant db4 {
    9556        depends_lib-append      port:db44
    9657        configure.args-append   --with-bdb=${prefix}
     58    build.args-append   BDB_LIBS=-ldb-4
    9759}
    9860
    9961variant sqlite {
     
    10163        configure.args-append   --with-sqlite=${prefix}
    10264}
    10365
     66platform darwin 8 {
     67    build.args              MACOSX_DEPLOYMENT_TARGET=10.4
     68    configure.env-append    MACOSX_DEPLOYMENT_TARGET=10.4
     69}
     70
    10471livecheck.check regex
    10572livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/?C=M&O=D
    10673livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)