Ticket #13949: libgda-1.2.4_1.diff
File libgda-1.2.4_1.diff, 3.6 KB (added by nox@…, 17 years ago) |
---|
-
Portfile
4 4 name libgda 5 5 version 1.2.4 6 6 set branch [join [lrange [split ${version} .] 0 1] .] 7 revision 17 revision 2 8 8 description GDA provides uniform access to diffent kinds of data sources. 9 9 long_description GNU Data Access (GDA) is an attempt to provide \ 10 10 uniform access to different kinds of data sources \ … … 26 26 # ${prefix}/database instead of this weird include/database lib/database 27 27 # magic. 28 28 set mysqldir "${workpath}/mysql" 29 set pgdir "${workpath}/pgsql"30 29 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" 30 configure.cppflags-append -I${prefix}/include/db44 -I${prefix}/include/postgresql82 31 configure.ldflags-append -L${prefix}/lib/postgresql82 -L${prefix}/lib/db44 32 configure.env-append MACOSX_DEPLOYMENT_TARGET=10.3 33 build.args MACOSX_DEPLOYMENT_TARGET=10.3 34 34 35 configure.args --mandir=${prefix}/share/man36 37 35 default_variants +mysql5 +db4 +postgresql8 +sqlite 38 36 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/Makefile68 }69 70 37 post-patch { 71 38 if {[variant_isset "mysql5"]} { 72 39 file mkdir ${mysqldir} 73 40 system "ln -s \"[file join ${prefix} include mysql5]\" \"[file join ${mysqldir} include]\"" 74 41 system "ln -s \"[file join ${prefix} lib mysql5]\" \"[file join ${mysqldir} lib]\"" 75 42 } 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 }82 43 } 83 44 84 45 variant mysql5 { … … 88 49 89 50 variant postgresql8 { 90 51 depends_lib-append port:postgresql8 91 configure.args-append --with-postgres= ${pgdir}52 configure.args-append --with-postgres=yes 92 53 } 93 54 94 55 variant db4 { 95 56 depends_lib-append port:db44 96 57 configure.args-append --with-bdb=${prefix} 58 build.args-append BDB_LIBS=-ldb-4 97 59 } 98 60 99 61 variant sqlite { … … 101 63 configure.args-append --with-sqlite=${prefix} 102 64 } 103 65 66 platform darwin 8 { 67 build.args MACOSX_DEPLOYMENT_TARGET=10.4 68 configure.env-append MACOSX_DEPLOYMENT_TARGET=10.4 69 } 70 104 71 livecheck.check regex 105 72 livecheck.url http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/?C=M&O=D 106 73 livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)