source: trunk/dports/databases/libgda3/Portfile @ 41809

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

Change dependency style "path:${prefix}/..." to "path:..." in all openmaintainer ports, because this is simpler and actually works; see #17182

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# $Id: Portfile 41809 2008-11-10 23:46:44Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            libgda3
6version         3.0.4
7revision        1
8description     GDA provides uniform access to diffent kinds of data sources.
9long_description        \
10    GNU Data Access (GDA) is an attempt to provide \
11        uniform access to different kinds of data sources \
12        (databases, information servers, mail spools, etc).
13maintainers     jwa openmaintainer
14categories      databases gnome
15platforms       darwin
16homepage        http://www.gnome-db.org/
17distname        libgda-${version}
18master_sites    gnome:sources/libgda/3.0/
19use_bzip2       yes
20checksums       md5     1096d03d64ee50f98a59ef5e7f906c9c \
21                sha1    50ba121e05ab1fbe95b66e8df4f54a0c6a30ef23 \
22                rmd160  6efbf5a0f40277124dcc5464168677cc97be40e3
23
24
25depends_lib     \
26        port:gettext \
27        port:libiconv \
28        port:libxml2 \
29        port:ncurses \
30        port:p5-xml-parser \
31        port:perl5.8 \
32        port:readline \
33        port:zlib \
34        path:lib/pkgconfig/glib-2.0.pc:glib2
35
36depends_build   \
37        port:flex \
38        port:m4 \
39        port:pkgconfig \
40        port:gnome-doc-utils
41
42configure.args  --mandir=${prefix}/share/man
43
44post-configure {
45        fs-traverse file ${worksrcpath} {
46                if [string match {/Makefile$} ${file}] {
47                        reinplace "s|-ldb|-lbd-4|g" ${file}
48                }
49        }
50}
51
52default_variants +with_bdb46
53
54variant with_mysql3 conflicts with_mysql4 with_mysql5 \
55    description {support for MySQL 3.x} {
56        depends_lib-append      port:mysql3
57        configure.args-append   --with-mysql=${prefix}
58}
59
60variant with_mysql4 conflicts with_mysql3 with_mysql5 \
61    description {support for MySQL 4.x} {
62        depends_lib-append      port:mysql4
63        configure.args-append   --with-mysql=${prefix}
64}
65
66variant with_mysql5 conflicts with_mysql3 with_mysql4 \
67    description {support for current MySQL 5.x} {
68        depends_lib-append      port:mysql5
69        configure.env-append    \
70                MYSQL_CONFIG=${prefix}/lib/mysql5/bin/mysql_config
71        configure.args-append   --with-mysql=${prefix}/lib/mysql5
72        configure.cppflags-append       "-I${prefix}/include/mysql5/mysql"
73}
74
75variant with_postgresql82 conflicts with_postgresql83 \
76    description {support for PostgreSQL 8.2.x} {
77        configure.cppflags-append       "-I${prefix}/include/postgresql82"
78        configure.ldflags-append        "-L${prefix}/lib/postgresql82"
79        depends_lib-append      port:postgresql82
80        configure.args-append   --with-postgres
81#       configure.args-append   --with-postgres=${prefix}/lib/postgresql82
82}
83
84variant with_postgresql83 conflicts with_postgresql82 \
85    description {support for PostgreSQL 8.3.x} {
86        configure.cppflags-append       "-I${prefix}/include/postgresql83"
87        configure.ldflags-append        "-L${prefix}/lib/postgresql83"
88        depends_lib-append      port:postgresql83
89        configure.args-append   --with-postgres
90}
91
92variant with_bdb46 conflicts without_bdb with_bdb \
93    description {support for Berkeley DB 4.6} {
94        depends_lib-append      port:db46
95        configure.args-append   --with-bdb=${prefix}
96        configure.cppflags-append       "-I${prefix}/include/db46"
97        configure.ldflags-append        "-L${prefix}/lib/db46"
98       
99}
100
101variant without_bdb conflicts with_bdb with_bdb46 \
102    description {remove support for Berkeley DB} {
103        configure.args-append   --without-bdb
104}
105
106livecheck.check         regex
107livecheck.url           http://ftp.gnome.org/pub/GNOME/sources/libgda/3.0
108livecheck.regex         LATEST-IS-(3\.0\.\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.