source: trunk/dports/databases/postgresql81/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                    postgresql81
6version                 8.1.23
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://ftp3.de.postgresql.org/pub/Mirrors/ftp.postgresql.org/source/v${version}/ \
22                        postgresql:source/v${version}
23
24checksums           md5     b511c1c6d5de2417096dba48912e6f18 \
25                    sha1    418b8c2e5a076e2e3c3e28455ee16b6550210352 \
26                    rmd160  cb2c9572ecefe49303e49f458116d51d3f1e6c36
27
28use_bzip2               yes
29distname                postgresql-${version}
30
31depends_lib             port:readline path:lib/libssl.dylib:openssl port:zlib port:libxml2 port:libxslt
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                                --without-docdir \
44                                --with-includes=${prefix}/include \
45                                --with-libraries=${prefix}/lib \
46                                --with-openssl \
47                                --with-bonjour \
48                                --with-readline \
49                                --with-zlib \
50                                --enable-thread-safety \
51                                --enable-integer-datetimes
52
53build.type              gnu
54build.target
55
56test.run                yes
57test.target             check
58
59livecheck.type  none
60livecheck.url   ${homepage}
61livecheck.regex (8.1.\[0-9\]+)
62
63platform darwin {
64    if {${os.major} >= 13} {
65        configure.args-replace  --with-bonjour --without-bonjour
66    }
67}
68
69set contribs    "dblink fulltextindex fuzzystrmatch pg_buffercache pg_trgm pgcrypto tsearch2 vacuumlo xml2"
70
71post-build {
72        foreach contrib ${contribs} {
73                system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
74        }
75}
76
77post-destroot {
78        foreach contrib ${contribs} {
79                system "echo contrib: \"${contrib}\""
80                system "cd ${worksrcpath}/contrib/${contrib}/ && \
81                        ${destroot.cmd} install ${destroot.destdir} && touch DONE"
82        }
83        system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql81"
84        file delete -force ${destroot}${prefix}/share/doc/${name} \
85                ${destroot}${prefix}/share/man
86}
87
88variant python description {add support for python} {
89        depends_lib-append              port:python26
90        configure.args-append   --with-python
91        configure.python                ${prefix}/bin/python2.6
92}
93
94variant krb5 description {add support for Kerberos 5 authentication} {
95#       depends_lib-append                      bin:kerberos:kerberos5
96        configure.args-append           --with-krb5
97}
98
99variant perl description {add Perl support} {
100        depends_lib-append                      bin:perl:perl5
101        configure.args-append           --with-perl
102}
103
104post-install {
105        ui_msg "\nTo use the postgresql server, install the postgresql81-server port"
106}
107
108notes "This is the last upgrade to 8.1 PostgreSQL, pls upgrade"
Note: See TracBrowser for help on using the repository browser.