source: trunk/dports/databases/postgresql80/Portfile @ 139229

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