source: trunk/dports/databases/postgresql80/Portfile

Last change on this file was 146517, checked in by raimue@…, 21 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# $Id: Portfile 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    postgresql80
6version                 8.0.26
7revision  1
8
9categories              databases
10platforms               darwin
11maintainers             mww
12license                 Permissive
13description             The most advanced open-source database available anywhere
14long_description PostgreSQL is Object-Relational Database Management System. \
15                        It supports almost all SQL constructs, including transactions, \
16                        subselects, and user-defined types and functions. Write-ahead \
17                        logging means increased performance while retaining data \
18                        integrity.
19
20homepage                http://www.postgresql.org/
21master_sites            http://ftp.de.postgresql.org/mirror/postgresql//source/v${version} \
22                        postgresql:source/v${version}
23distname                postgresql-${version}
24
25checksums           md5     6ea1097fd4a57102ec023bc5cca7a35e \
26                    sha1    27e0bd4661bc5f2b0f589f721cfbd4eddbb3b4cc \
27                    rmd160  e75c19fa0059929c89a18403a546c145698b2fe8
28
29use_bzip2               yes
30
31depends_lib             port:readline path:lib/libssl.dylib:openssl port:zlib
32depends_build           port:bison
33
34patchfiles              src_pl_plpython_Makefile.patch
35
36set libdir              ${prefix}/lib/${name}
37configure.args  --sysconfdir=${prefix}/etc/${name} \
38                                --bindir=${libdir}/bin \
39                                --libdir=${libdir} \
40                                --includedir=${prefix}/include/${name} \
41                                --datadir=${prefix}/share/${name} \
42                                --mandir=${prefix}/share/man \
43                                --with-docdir=${prefix}/share/doc/${name} \
44                                --with-includes=${prefix}/include \
45                                --with-libraries=${prefix}/lib \
46                                --with-openssl \
47                                --with-rendezvous \
48                                --with-readline \
49                                --with-zlib \
50                                --enable-thread-safety \
51                                --enable-integer-datetimes \
52                                --enable-multibyte \
53                                --enable-unicode
54
55build.type              gnu
56build.target
57
58test.run                yes
59test.target             check
60
61livecheck.type  none
62livecheck.url   ${homepage}
63livecheck.regex (8.0.\[0-9\]+)
64
65platform darwin {
66    if {${os.major} >= 13} {
67        configure.args-replace  --with-rendezvous --without-rendezvous
68    }
69}
70
71set contribs    "fulltextindex fuzzystrmatch pg_trgm tsearch2 vacuumlo"
72
73post-build {
74        foreach contrib ${contribs} {
75                system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
76        }
77}
78
79post-destroot {
80        foreach contrib ${contribs} {
81                system "echo contrib: \"${contrib}\""
82                system "cd ${worksrcpath}/contrib/${contrib}/ && \
83                        ${build.cmd} install ${destroot.destdir} && touch DONE"
84        }
85        system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql8"
86        file delete -force ${destroot}${prefix}/share/doc/${name} \
87                ${destroot}${prefix}/share/man
88}
89
90variant python description {add support for python} {
91        depends_lib-append              port:python26
92        configure.args-append   --with-python
93        configure.python                ${prefix}/bin/python2.6
94}
95
96variant krb5 description {add support for Kerberos 5 authentication} {
97#       depends_lib-append                      bin:kerberos:kerberos5
98        configure.args-append           --with-krb5
99}
100
101variant perl description {add Perl support} {
102        depends_lib-append                      bin:perl:perl5
103        configure.args-append           --with-perl
104}
105
106
107notes "
108To use the postgresql server, install the postgresql80-server port.\
109Also note that this is the last upgrade to 8.0 PostgreSQL\;\
110consider upgrading.
111"
Note: See TracBrowser for help on using the repository browser.