source: trunk/dports/databases/postgresql83/Portfile

Last change on this file was 146517, checked in by raimue@…, 17 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.6 KB
Line 
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 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                    postgresql83
7version                 8.3.23
8revision  1
9
10categories              databases
11platforms               darwin
12maintainers             mww jwa
13license                 Permissive
14description             The most advanced open-source database available anywhere.
15long_description PostgreSQL is Object-Relational Database Management System. \
16                                It supports almost all SQL constructs, including transactions, \
17                                subselects, and user-defined types and functions. Write-ahead \
18                                logging means increased performance while retaining data \
19                                integrity.
20
21homepage                http://www.postgresql.org/
22master_sites            http://ftp3.de.postgresql.org/pub/Mirrors/ftp.postgresql.org/source/v${version}/ \
23                        postgresql:source/v${version}/
24distname                postgresql-${version}
25
26checksums           rmd160  ac0ee6a829f04e7cdca0179a2c881244c54f31cd \
27                    sha256  17a46617ddbeb16f37d79b43f4e72301b051e6ef888a2eac960375bf579018d9
28
29use_bzip2               yes
30
31universal_variant   no
32
33depends_lib             port:readline path:lib/libssl.dylib:openssl port:zlib port:libxml2 port:libxslt port:ossp-uuid
34depends_build           port:bison
35
36worksrcdir              postgresql-${version}
37
38patchfiles              src_pl_plpython_Makefile.patch
39
40set libdir              ${prefix}/lib/${name}
41configure.args  --sysconfdir=${prefix}/etc/${name} \
42                                --bindir=${libdir}/bin \
43                                --libdir=${libdir} \
44                                --includedir=${prefix}/include/${name} \
45                                --datadir=${prefix}/share/${name} \
46                                --mandir=${prefix}/share/man \
47                                --without-docdir \
48                                --with-includes=${prefix}/include \
49                                --with-libraries=${prefix}/lib \
50                                --with-openssl \
51                                --with-bonjour \
52                                --with-readline \
53                                --with-zlib \
54                                --with-libxml \
55                                --with-libxslt \
56                                --enable-thread-safety \
57                                --enable-integer-datetimes \
58                                --with-ossp-uuid
59configure.cppflags-append       -I${prefix}/include/ossp
60
61build.type              gnu
62build.target
63
64test.run                yes
65test.target             check
66
67livecheck.type  none
68
69platform darwin {
70    if {${os.major} >= 12} {
71        patchfiles-append   postgresql-uuid-ossp.patch
72    }
73    if {${os.major} >= 13} {
74        configure.args-replace  --with-bonjour --without-bonjour
75    }
76}
77
78set contribs    "adminpack dblink fuzzystrmatch lo oid2name pageinspect pg_buffercache pg_freespacemap pg_standby pg_trgm pgcrypto pgrowlocks pgstattuple tablefunc uuid-ossp vacuumlo"
79
80post-build {
81        foreach contrib ${contribs} {
82                system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
83        }
84}
85
86post-destroot {
87        foreach contrib ${contribs} {
88                system "echo contrib: \"${contrib}\""
89                system "cd ${worksrcpath}/contrib/${contrib}/ && \
90                        ${destroot.cmd} install ${destroot.destdir} && touch DONE"
91        }
92        system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql83"
93        file delete -force ${destroot}${prefix}/share/doc/${name} \
94                ${destroot}${prefix}/share/man
95}
96
97variant python requires python27 description {add support for python} {
98}
99
100variant python27 description {add support for python 2.7} {
101        depends_lib-append              port:python27
102        configure.args-append   --with-python
103        configure.python                ${prefix}/bin/python2.7
104}
105
106variant krb5 description {add support for Kerberos 5 authentication} {
107        configure.args-append   --with-krb5
108}
109
110variant perl description {add Perl support (requires perl with +shared)} {
111        depends_lib-append                      bin:perl:perl5
112        configure.args-append           --with-perl
113}
114
115variant tcl description {add Tcl support} {
116        depends_lib-append                      port:tcl
117        configure.args-append           --with-tcl --with-tclconfig=${prefix}/lib
118        configure.env-append            TCLSH=${prefix}/bin/tclsh
119}
120
121notes "To use the postgresql server, install the postgresql83-server port\n\
122NB! This is the last update to postgresql83,\n\
123please upgrade to a later version!"
Note: See TracBrowser for help on using the repository browser.