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

Last change on this file since 74739 was 74739, checked in by jwa@…, 7 years ago

version bump to 8.2.19

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: Portfile 74739 2010-12-31 18:01:07Z jwa@macports.org $
2
3PortSystem 1.0
4
5name                    postgresql82
6version                 8.2.19
7
8categories              databases
9platforms               darwin
10maintainers             mww jwa
11description             The most advanced open-source database available anywhere
12long_description PostgreSQL is Object-Relational Database Management System. \
13                                It supports almost all SQL constructs, including transactions, \
14                                subselects, and user-defined types and functions. Write-ahead \
15                                logging means increased performance while retaining data \
16                                integrity.
17
18homepage                http://www.postgresql.org/
19master_sites            http://ftp3.de.postgresql.org/pub/Mirrors/ftp.postgresql.org/source/v${version}/ \
20                        postgresql:source/v${version}
21distname                postgresql-${version}
22
23checksums           md5     c7806430decc8dc67fb52920a3940c54 \
24                    sha1    f43da20065ca97edc00f10c9db635c6c4279e520 \
25                    rmd160  a2b0782cad74ba03a9c003d81943e5d2ad12e8c2
26
27use_bzip2               yes
28
29depends_lib             port:readline port:openssl port:zlib port:libxml2 port:libxslt
30depends_build           port:bison
31
32set libdir              ${prefix}/lib/${name}
33configure.args  --sysconfdir=${prefix}/etc/${name} \
34                                --bindir=${libdir}/bin \
35                                --libdir=${libdir} \
36                                --includedir=${prefix}/include/${name} \
37                                --datadir=${prefix}/share/${name} \
38                                --mandir=${prefix}/share/man \
39                                --without-docdir \
40                                --with-includes=${prefix}/include \
41                                --with-libraries=${prefix}/lib \
42                                --with-openssl \
43                                --with-bonjour \
44                                --with-readline \
45                                --with-zlib \
46                                --enable-thread-safety \
47                                --enable-integer-datetimes
48
49build.type              gnu
50build.target
51
52test.run                yes
53test.target             check
54
55livecheck.type  regex
56livecheck.url   ${homepage}
57livecheck.regex (8\\.2\\.\[0-9\]+)
58
59set contribs    "adminpack dblink fuzzystrmatch lo pg_buffercache pg_trgm pgcrypto tsearch2 vacuumlo xml2"
60
61post-build {
62        foreach contrib ${contribs} {
63                system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
64        }
65}
66
67post-destroot {
68        foreach contrib ${contribs} {
69                system "echo contrib: \"${contrib}\""
70                system "cd ${worksrcpath}/contrib/${contrib}/ && \
71                        ${build.cmd} install ${destroot.destdir} && touch DONE"
72        }
73        system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql82"
74        file delete -force ${destroot}${prefix}/share/doc/${name} \
75                ${destroot}${prefix}/share/man
76}
77
78variant python description {add support for python} {
79        depends_lib-append              port:python26
80        configure.args-append   --with-python
81        configure.env-append    PYTHON=${prefix}/bin/python2.6
82}
83
84variant krb5 description {add support for Kerberos 5 authentication} {
85        configure.args-append   --with-krb5
86}
87
88variant perl description {add Perl support} {
89        depends_lib-append                      bin:perl:perl5
90        configure.args-append           --with-perl
91}
92
93variant tcl description {add Tcl support} {
94        depends_lib-append                      port:tcl
95        configure.args-append           --with-tcl --with-tclconfig=${prefix}/lib
96        configure.env-append            TCLSH=${prefix}/bin/tclsh
97}
98
99post-install {
100        ui_msg "\nTo use the postgresql server, install the postgresql82-server port"
101}
Note: See TracBrowser for help on using the repository browser.