source: trunk/dports/databases/postgresql81/Portfile @ 125624

Last change on this file since 125624 was 125624, checked in by ryandesign@…, 5 years ago

postgresql80, postgresql81, postgresql82: fix build on Mavericks and later by disabling Bonjour support (#44120)

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