source: trunk/dports/databases/postgresql82/Portfile @ 140737

Last change on this file since 140737 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • 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 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
3
4PortSystem 1.0
5
6name                    postgresql82
7version                 8.2.23
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}
23distname                postgresql-${version}
24
25checksums           md5     7ecc63c517a8e79b86cd680214ec14fc \
26                    sha1    f51ac2051c4b1c95f5f58bf75bbafc50d2bc359b \
27                    rmd160  5a1d45cae1e7a9d9caa8e902608404b281bac7ff
28
29use_bzip2               yes
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
53if {[variant_isset universal]} {
54    post-patch {
55        xinstall -m 755 ${filespath}/ldfat.sh ${workpath}
56        reinplace s|@UNIVERSAL_ARCHS@|${universal_archs}| ${workpath}/ldfat.sh
57    }
58    configure.env-append LD=${workpath}/ldfat.sh
59    post-configure {
60        system "cd ${worksrcpath}/src/include \
61                && ed - pg_config.h < ${filespath}/pg_config.h.ed \
62                && touch stamp-h"
63        system "cd ${worksrcpath}/src/interfaces/ecpg/include \
64                && ed - ecpg_config.h < ${filespath}/ecpg_config.h.ed \
65                && touch stamp-h"
66    }
67}
68
69build.type              gnu
70build.target
71
72test.run                yes
73test.target             check
74
75livecheck.type  none
76
77platform darwin {
78    if {${os.major} >= 13} {
79        configure.args-replace  --with-bonjour --without-bonjour
80    }
81}
82
83set contribs    "adminpack dblink fuzzystrmatch lo pg_buffercache pg_trgm pgcrypto tsearch2 vacuumlo xml2"
84
85post-build {
86        foreach contrib ${contribs} {
87                system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
88        }
89}
90
91post-destroot {
92        foreach contrib ${contribs} {
93                system "echo contrib: \"${contrib}\""
94                system "cd ${worksrcpath}/contrib/${contrib}/ && \
95                        ${build.cmd} install ${destroot.destdir} && touch DONE"
96        }
97        system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql82"
98        file delete -force ${destroot}${prefix}/share/doc/${name} \
99                ${destroot}${prefix}/share/man
100}
101
102variant python description {add support for python} {
103        depends_lib-append              port:python26
104        configure.args-append   --with-python
105        configure.python                ${prefix}/bin/python2.6
106}
107
108variant krb5 description {add support for Kerberos 5 authentication} {
109        configure.args-append   --with-krb5
110}
111
112variant perl description {add Perl support} {
113        depends_lib-append                      bin:perl:perl5
114        configure.args-append           --with-perl
115}
116
117variant tcl description {add Tcl support} {
118        depends_lib-append                      port:tcl
119        configure.args-append           --with-tcl --with-tclconfig=${prefix}/lib
120        configure.env-append            TCLSH=${prefix}/bin/tclsh
121}
122
123post-install {
124        ui_msg "\nTo use the postgresql server, install the postgresql82-server port"
125}
Note: See TracBrowser for help on using the repository browser.