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

Last change on this file since 48323 was 48323, checked in by mww@…, 11 years ago

version 8.2.13

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