5 | | name postgresql83 |
6 | | version 8.3.4 |
7 | | categories databases |
8 | | platforms darwin |
9 | | maintainers mww jwa |
10 | | description The most advanced open-source database available anywhere. |
11 | | long_description PostgreSQL is Object-Relational Database Management System. \ |
12 | | It supports almost all SQL constructs, including transactions, \ |
13 | | subselects, and user-defined types and functions. Write-ahead \ |
14 | | logging means increased performance while retaining data \ |
15 | | integrity. |
16 | | |
17 | | homepage http://www.postgresql.org/ |
18 | | master_sites http://ftp3.de.postgresql.org/pub/Mirrors/ftp.postgresql.org/source/v${version}/ \ |
19 | | postgresql:source/v${version}/ |
20 | | distname postgresql-${version} |
21 | | |
22 | | checksums md5 c339b9d3c0c4add64c7a76640fc93744 \ |
23 | | sha1 3e6fd905fd3fe9698b50e5376ed15b7d6e3bb602 \ |
24 | | rmd160 13cb20672b0dc6fe52346d7c906a0842e0c872ac |
25 | | |
26 | | use_bzip2 yes |
27 | | |
28 | | depends_lib port:readline port:openssl port:zlib port:libxml2 port:libxslt port:ossp-uuid |
29 | | depends_build port:bison |
30 | | |
31 | | worksrcdir postgresql-${version} |
32 | | |
33 | | set libdir ${prefix}/lib/${name} |
34 | | configure.args --sysconfdir=${prefix}/etc/${name} \ |
35 | | --bindir=${libdir}/bin \ |
36 | | --libdir=${libdir} \ |
37 | | --includedir=${prefix}/include/${name} \ |
38 | | --datadir=${prefix}/share/${name} \ |
39 | | --mandir=${prefix}/share/man \ |
40 | | --without-docdir \ |
41 | | --with-includes=${prefix}/include \ |
42 | | --with-libraries=${prefix}/lib \ |
43 | | --with-openssl \ |
44 | | --with-bonjour \ |
45 | | --with-readline \ |
46 | | --with-zlib \ |
47 | | --with-libxml \ |
48 | | --with-libxslt \ |
49 | | --enable-thread-safety \ |
50 | | --enable-integer-datetimes \ |
51 | | --with-ossp-uuid |
52 | | configure.cppflags-append -I${prefix}/include/ossp |
| 7 | name postgresql83 |
| 8 | version 8.3.4 |
| 9 | |
| 10 | categories databases |
| 11 | platforms darwin |
| 12 | maintainers mww jwa |
| 13 | |
| 14 | distname postgresql-${version} |
| 15 | worksrcdir postgresql-${version} |
| 16 | |
| 17 | set pathConf ${prefix}/etc/${name} |
| 18 | set pathLib ${prefix}/lib/${name} |
| 19 | set pathInc ${prefix}/include/${name} |
| 20 | set pathBin ${pathLib}/bin |
| 21 | set pathMan ${prefix}/share/man |
| 22 | set pathDoc ${prefix}/share/doc/${name} |
| 23 | set pathData ${prefix}/share/${name} |
| 24 | |
| 25 | description The world's most advanced open-source database. |
| 26 | long_description \ |
| 27 | PostgreSQL is Object-Relational Database Management System. \ |
| 28 | It supports almost all SQL constructs, including transactions, \ |
| 29 | subselects, and user-defined types and functions. Write-ahead \ |
| 30 | logging means increased performance while retaining data \ |
| 31 | integrity. \n\n\ |
| 32 | default_variants +doc +bonjour +krb5 +tclSys +perl +python \n\n\ |
| 33 | Install paths:\n\ |
| 34 | config:\t ${pathConf}\n\ |
| 35 | include:\t ${pathInc}\n\ |
| 36 | lib:\t\t ${pathLib}\n\ |
| 37 | bin:\t\t ${pathBin}\n\ |
| 38 | man:\t\t ${pathMan}\n\ |
| 39 | doc:\t\t ${pathDoc}\n\ |
| 40 | data:\t\t ${pathData}\n |
| 41 | |
| 42 | homepage http://www.postgresql.org/ |
| 43 | master_sites http://www.postgresql.org/ftp/source/v${version}/ \ |
| 44 | ftp://ftp7.us.postgresql.org/pub/postgresql/source/v${version}/ \ |
| 45 | postgresql:source/v${version}/ |
| 46 | |
| 47 | use_bzip2 yes |
| 48 | |
| 49 | checksums md5 c339b9d3c0c4add64c7a76640fc93744 \ |
| 50 | sha1 3e6fd905fd3fe9698b50e5376ed15b7d6e3bb602 \ |
| 51 | rmd160 13cb20672b0dc6fe52346d7c906a0842e0c872ac |
| 52 | |
| 53 | depends_lib port:readline \ |
| 54 | port:openssl \ |
| 55 | port:ossp-uuid \ |
| 56 | port:zlib \ |
| 57 | port:libxml2 \ |
| 58 | port:libxslt |
| 59 | |
| 60 | depends_build port:bison |
| 61 | |
| 62 | configure.args-append \ |
| 63 | --sysconfdir=${pathConf} \ |
| 64 | --bindir=${pathBin} \ |
| 65 | --libdir=${pathLib} \ |
| 66 | --includedir=${pathInc} \ |
| 67 | --datadir=${pathData} \ |
| 68 | --mandir=${pathMan} \ |
| 69 | --enable-thread-safety \ |
| 70 | --enable-integer-datetimes \ |
| 71 | --without-docdir \ |
| 72 | --with-includes=${prefix}/include \ |
| 73 | --with-libraries=${prefix}/lib \ |
| 74 | --with-openssl \ |
| 75 | --with-ossp-uuid \ |
| 76 | --with-readline \ |
| 77 | --with-zlib \ |
| 78 | --with-libxml \ |
| 79 | --with-libxslt |
| 80 | |
| 81 | configure.cflags-append \ |
| 82 | -I${prefix}/include \ |
| 83 | -I${prefix}/include/ossp |
73 | | foreach contrib ${contribs} { |
74 | | system "echo contrib: \"${contrib}\"" |
75 | | system "cd ${worksrcpath}/contrib/${contrib}/ && \ |
76 | | ${destroot.cmd} install ${destroot.destdir} && touch DONE" |
77 | | } |
78 | | system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql83" |
79 | | file delete -force ${destroot}${prefix}/share/doc/${name} \ |
80 | | ${destroot}${prefix}/share/man |
| 104 | foreach contrib ${contribs} { |
| 105 | system "echo contrib: \"${contrib}\"" |
| 106 | system "cd ${worksrcpath}/contrib/${contrib}/ && \ |
| 107 | ${destroot.cmd} install ${destroot.destdir} && touch DONE" |
| 108 | } |
| 109 | system "cd ${destroot}${prefix}/bin && ln -sf ${pathLib}/bin/psql psql83" |
| 110 | file delete -force ${destroot}${prefix}/share/doc/${name} \ |
| 111 | ${destroot}${prefix}/share/man |
| 112 | } |
| 113 | |
| 114 | post-install { |
| 115 | ui_msg "\nTo use the postgresql server, install the ${name}-server port\n" |
| 116 | |
| 117 | if {[variant_isset doc]} { |
| 118 | ui_msg "Documentation is installed in\n${pathDoc}/html/\n\ |
| 119 | Update this path in pgAdmin3 Preferences:General\n" |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | |
| 124 | # -- Variants |
| 125 | |
| 126 | default_variants +doc +bonjour +krb5 +tclSys +perl +python |
| 127 | |
| 128 | |
| 129 | # --enable section |
| 130 | |
| 131 | variant dependency description {automatic dependency tracking} { |
| 132 | configure.args-append --enable-depend |
| 133 | } |
| 134 | |
| 135 | variant profiling description {add profiling support} { |
| 136 | configure.args-append --enable-profiling |
| 137 | } |
| 138 | |
| 139 | variant debug description {add debug symbols and enable assertion checking} { |
| 140 | configure.args-append --enable-debug --enable-cassert |
| 141 | } |
| 142 | |
| 143 | variant nls description {add native language support} { |
| 144 | configure.args-append --enable-nls |
| 145 | } |
| 146 | |
| 147 | variant NOlargefile description {DISABLE large file support} { |
| 148 | configure.args-append --disable-largefile |
| 149 | } |
| 150 | |
| 151 | variant NOshared description {DISABLE shared libs} { |
| 152 | configure.args-append --disable-shared |
| 153 | } |
| 154 | |
| 155 | variant NOrpath description {DISABLE rpath search for executables} { |
| 156 | configure.args-append --disable-rpath |
| 157 | } |
| 158 | |
| 159 | variant NOspinlocks description {DISABLE spinlocks} { |
| 160 | configure.args-append --disable-spinlocks |
| 161 | } |
| 162 | |
| 163 | |
| 164 | # --with section |
| 165 | |
| 166 | variant bonjour description {add support for Bonjour} { |
| 167 | configure.args-append --with-bonjour |
98 | | post-install { |
99 | | ui_msg "\nTo use the postgresql server, install the postgresql83-server port" |
| 183 | variant pam description {add support for PAM authentication} { |
| 184 | configure.args-append --with-pam |
| 185 | } |
| 186 | |
| 187 | variant perl description {add Perl modules (PL/Perl)} { |
| 188 | depends_lib-append bin:perl:perl5.8 |
| 189 | configure.args-append --with-perl |
| 190 | } |
| 191 | |
| 192 | variant python description {add Python modules (PL/Python)} { |
| 193 | depends_lib-append port:python25 |
| 194 | configure.args-append --with-python |
| 195 | configure.env-append PYTHON=${prefix}/bin/python2.5 |
| 196 | } |
| 197 | |
| 198 | variant tclPort conflicts tclSys description {add Tcl modules (PL/Tcl; MacPorts Tcl)} { |
| 199 | configure.args-append --with-tcl \ |
| 200 | --with-tclconfig=${prefix}/lib/ |
| 201 | } |
| 202 | |
| 203 | variant tclSys conflicts tclPort description {add Tcl modules (PL/Tcl; System Tcl framework)} { |
| 204 | configure.args-append --with-tcl \ |
| 205 | --with-tclconfig=/System/Library/Frameworks/Tcl.framework/ |