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

Last change on this file since 82553 was 82553, checked in by jmr@…, 6 years ago

update p5-* dependents to use a specific version

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# $Id: Portfile 82553 2011-08-15 19:22:39Z jmr@macports.org $
2
3PortSystem 1.0
4
5name            libgda3
6version         3.0.4
7revision        2
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.12-xml-parser \
31        port:perl5.12 \
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.perl  ${prefix}/bin/perl5.12
43configure.env-append  INTLTOOL_PERL=${configure.perl}
44
45configure.args  --mandir=${prefix}/share/man
46
47post-configure {
48        fs-traverse file ${worksrcpath} {
49                if [string match {/Makefile$} ${file}] {
50                        reinplace "s|-ldb|-lbd-4|g" ${file}
51                }
52        }
53}
54
55default_variants +with_bdb46
56
57variant with_mysql4 conflicts with_mysql5 \
58    description {support for MySQL 4.x} {
59        depends_lib-append      port:mysql4
60        configure.args-append   --with-mysql=${prefix}
61}
62
63variant with_mysql5 conflicts with_mysql4 \
64    description {support for current MySQL 5.x} {
65        depends_lib-append      path:bin/mysql_config5:mysql5
66        configure.env-append    \
67                MYSQL_CONFIG=${prefix}/lib/mysql5/bin/mysql_config
68        configure.args-append   --with-mysql=${prefix}/lib/mysql5
69        configure.cppflags-append       "-I${prefix}/include/mysql5/mysql"
70}
71
72variant with_postgresql82 conflicts with_postgresql83 \
73    description {support for PostgreSQL 8.2.x} {
74        configure.cppflags-append       "-I${prefix}/include/postgresql82"
75        configure.ldflags-append        "-L${prefix}/lib/postgresql82"
76        depends_lib-append      port:postgresql82
77        configure.args-append   --with-postgres
78#       configure.args-append   --with-postgres=${prefix}/lib/postgresql82
79}
80
81variant with_postgresql83 conflicts with_postgresql82 \
82    description {support for PostgreSQL 8.3.x} {
83        configure.cppflags-append       "-I${prefix}/include/postgresql83"
84        configure.ldflags-append        "-L${prefix}/lib/postgresql83"
85        depends_lib-append      port:postgresql83
86        configure.args-append   --with-postgres
87}
88
89variant with_bdb46 conflicts without_bdb with_bdb \
90    description {support for Berkeley DB 4.6} {
91        depends_lib-append      port:db46
92        configure.args-append   --with-bdb=${prefix}
93        configure.cppflags-append       "-I${prefix}/include/db46"
94        configure.ldflags-append        "-L${prefix}/lib/db46"
95       
96}
97
98variant without_bdb conflicts with_bdb with_bdb46 \
99    description {remove support for Berkeley DB} {
100        configure.args-append   --without-bdb
101}
102
103livecheck.type          regex
104livecheck.url           http://ftp.gnome.org/pub/GNOME/sources/libgda/3.0
105livecheck.regex         LATEST-IS-(3\.0\.\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.