source: trunk/dports/databases/postgresql82/Portfile

Last change on this file was 146517, checked in by raimue@…, 19 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.7 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                    postgresql82
7version                 8.2.23
8revision  1
9
10categories              databases
11platforms               darwin
12maintainers             mww
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           md5     7ecc63c517a8e79b86cd680214ec14fc \
27                    sha1    f51ac2051c4b1c95f5f58bf75bbafc50d2bc359b \
28                    rmd160  5a1d45cae1e7a9d9caa8e902608404b281bac7ff
29
30use_bzip2               yes
31
32depends_lib             port:readline path:lib/libssl.dylib:openssl port:zlib port:libxml2 port:libxslt
33depends_build           port:bison
34
35patchfiles              src_pl_plpython_Makefile.patch
36
37set libdir              ${prefix}/lib/${name}
38configure.args  --sysconfdir=${prefix}/etc/${name} \
39                                --bindir=${libdir}/bin \
40                                --libdir=${libdir} \
41                                --includedir=${prefix}/include/${name} \
42                                --datadir=${prefix}/share/${name} \
43                                --mandir=${prefix}/share/man \
44                                --without-docdir \
45                                --with-includes=${prefix}/include \
46                                --with-libraries=${prefix}/lib \
47                                --with-openssl \
48                                --with-bonjour \
49                                --with-readline \
50                                --with-zlib \
51                                --enable-thread-safety \
52                                --enable-integer-datetimes
53
54if {[variant_isset universal]} {
55    post-patch {
56        xinstall -m 755 ${filespath}/ldfat.sh ${workpath}
57        reinplace s|@UNIVERSAL_ARCHS@|${universal_archs}| ${workpath}/ldfat.sh
58    }
59    configure.env-append LD=${workpath}/ldfat.sh
60    post-configure {
61        system "cd ${worksrcpath}/src/include \
62                && ed - pg_config.h < ${filespath}/pg_config.h.ed \
63                && touch stamp-h"
64        system "cd ${worksrcpath}/src/interfaces/ecpg/include \
65                && ed - ecpg_config.h < ${filespath}/ecpg_config.h.ed \
66                && touch stamp-h"
67    }
68}
69
70build.type              gnu
71build.target
72
73test.run                yes
74test.target             check
75
76livecheck.type  none
77
78platform darwin {
79    if {${os.major} >= 13} {
80        configure.args-replace  --with-bonjour --without-bonjour
81    }
82}
83
84set contribs    "adminpack dblink fuzzystrmatch lo pg_buffercache pg_trgm pgcrypto tsearch2 vacuumlo xml2"
85
86post-build {
87        foreach contrib ${contribs} {
88                system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
89        }
90}
91
92post-destroot {
93        foreach contrib ${contribs} {
94                system "echo contrib: \"${contrib}\""
95                system "cd ${worksrcpath}/contrib/${contrib}/ && \
96                        ${build.cmd} install ${destroot.destdir} && touch DONE"
97        }
98        system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql82"
99        file delete -force ${destroot}${prefix}/share/doc/${name} \
100                ${destroot}${prefix}/share/man
101}
102
103variant python description {add support for python} {
104        depends_lib-append              port:python26
105        configure.args-append   --with-python
106        configure.python                ${prefix}/bin/python2.6
107}
108
109variant krb5 description {add support for Kerberos 5 authentication} {
110        configure.args-append   --with-krb5
111}
112
113variant perl description {add Perl support} {
114        depends_lib-append                      bin:perl:perl5
115        configure.args-append           --with-perl
116}
117
118variant tcl description {add Tcl support} {
119        depends_lib-append                      port:tcl
120        configure.args-append           --with-tcl --with-tclconfig=${prefix}/lib
121        configure.env-append            TCLSH=${prefix}/bin/tclsh
122}
123
124post-install {
125        ui_msg "\nTo use the postgresql server, install the postgresql82-server port"
126}
Note: See TracBrowser for help on using the repository browser.