1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 42118 2008-11-15 20:14:29Z mcalhoun@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name libgda4 |
---|
7 | set gname libgda |
---|
8 | version 4.0.2 |
---|
9 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
10 | description GDA provides uniform access to diffent kinds of data sources. |
---|
11 | long_description \ |
---|
12 | GNU Data Access (GDA) is an attempt to provide \ |
---|
13 | uniform access to different kinds of data sources \ |
---|
14 | (databases, information servers, mail spools, etc). |
---|
15 | maintainers jwa devans openmaintainer |
---|
16 | categories databases gnome |
---|
17 | platforms darwin |
---|
18 | homepage http://www.gnome-db.org/ |
---|
19 | distname libgda-${version} |
---|
20 | master_sites gnome:sources/${gname}/${branch}/ |
---|
21 | use_bzip2 yes |
---|
22 | |
---|
23 | checksums md5 cd79f6542cdd9477017b76b5f81c776f \ |
---|
24 | sha1 9cfc4afc8eb4f39fa91d1007ac7b77ea7498bdab \ |
---|
25 | rmd160 eb746e7c5b7863b9c528d39a2dae09e0ea284101 |
---|
26 | |
---|
27 | patchfiles patch-configure.in.diff |
---|
28 | |
---|
29 | depends_build port:pkgconfig \ |
---|
30 | port:autoconf \ |
---|
31 | port:flex \ |
---|
32 | port:m4 \ |
---|
33 | port:intltool \ |
---|
34 | port:p5-xml-parser \ |
---|
35 | port:gnome-doc-utils |
---|
36 | |
---|
37 | depends_lib port:gettext \ |
---|
38 | port:libiconv \ |
---|
39 | port:libxml2 \ |
---|
40 | port:ncurses \ |
---|
41 | port:readline \ |
---|
42 | port:zlib \ |
---|
43 | port:gnome-vfs \ |
---|
44 | port:sqlite3 \ |
---|
45 | port:libsoup |
---|
46 | |
---|
47 | # |
---|
48 | # prefer Berkeley DB 4.7 over 4.6 |
---|
49 | # and depend on it if 4.6 is not installed |
---|
50 | # if both are installed configure will select 4.7 |
---|
51 | # otherwise look for 4.6 |
---|
52 | # |
---|
53 | |
---|
54 | if (![variant_isset without_bdb]) { |
---|
55 | if !([file exists ${prefix}/include/db46/db.h]) { |
---|
56 | depends_lib-append port:db47 |
---|
57 | } elseif ([file exists ${prefix}/include/db47/db.h]) { |
---|
58 | depends_lib-append port:db47 |
---|
59 | } else { |
---|
60 | depends_lib-append port:db46 |
---|
61 | } |
---|
62 | } |
---|
63 | |
---|
64 | use_autoconf yes |
---|
65 | |
---|
66 | configure.perl ${prefix}/bin/perl |
---|
67 | configure.env-append INTLTOOL_PERL=${configure.perl} |
---|
68 | |
---|
69 | configure.args --mandir=${prefix}/share/man \ |
---|
70 | --with-bdb=${prefix} \ |
---|
71 | --enable-system-sqlite \ |
---|
72 | --without-odbc \ |
---|
73 | --without-mysql \ |
---|
74 | --without-msql \ |
---|
75 | --without-postgres \ |
---|
76 | --without-tds \ |
---|
77 | --without-ibmdb2 \ |
---|
78 | --without-sybase \ |
---|
79 | --without-oracle \ |
---|
80 | --without-firebird \ |
---|
81 | --without-xbase \ |
---|
82 | --without-mdb \ |
---|
83 | --without-ldap \ |
---|
84 | --without-java \ |
---|
85 | --without-jni |
---|
86 | |
---|
87 | variant with_mysql5 \ |
---|
88 | description {support for current MySQL 5.x} { |
---|
89 | depends_lib-append path:bin/mysql_config5:mysql5 |
---|
90 | configure.env-append \ |
---|
91 | MYSQL_CONFIG=${prefix}/lib/mysql5/bin/mysql_config |
---|
92 | configure.args-delete --without-mysql |
---|
93 | configure.args-append --with-mysql=${prefix}/lib/mysql5 |
---|
94 | configure.cppflags-append "-I${prefix}/include/mysql5/mysql" |
---|
95 | } |
---|
96 | |
---|
97 | variant with_postgresql83 \ |
---|
98 | description {support for PostgreSQL 8.3.x} { |
---|
99 | configure.cppflags-append "-I${prefix}/include/postgresql83" |
---|
100 | depends_lib-append port:postgresql83 |
---|
101 | configure.args-delete --without-postgres |
---|
102 | configure.args-append --with-postgres=${prefix}/lib/postgresql83 |
---|
103 | } |
---|
104 | |
---|
105 | variant without_bdb \ |
---|
106 | description {remove support for Berkeley DB} { |
---|
107 | configure.args-delete --with-bdb=${prefix} |
---|
108 | configure.args-append --without-bdb |
---|
109 | } |
---|
110 | |
---|
111 | livecheck.check regex |
---|
112 | livecheck.url http://ftp.gnome.org/pub/GNOME/sources/${gname}/${branch}/ |
---|
113 | livecheck.regex "LATEST-IS-(\\d+(?:\\.\\d+)*)" |
---|