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

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

adding pgcrypto to contribs, closing ticket 12831

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 37171 2008-05-28 17:03:08Z jwa@macports.org $
2
3PortSystem 1.0
4
5name                    postgresql82
6version                 8.2.7
7revision                1
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            postgresql:source/v${version}
20distname                postgresql-${version}
21
22checksums               md5 e8b21cbc20ec23a1d9490fdfbaa7c09e \
23                        sha1 0be0dbaa488810ebcba77ac7246180c5b2a9b669 \
24                        rmd160 96700e91c3b9e733c686b0fe377c7ba661710942
25use_bzip2               yes
26
27depends_lib             port:readline port:openssl port:zlib port:libxml2 port:libxslt
28depends_build           port:bison
29
30set libdir              ${prefix}/lib/${name}
31configure.args  --sysconfdir=${prefix}/etc/${name} \
32                                --bindir=${libdir}/bin \
33                                --libdir=${libdir} \
34                                --includedir=${prefix}/include/${name} \
35                                --datadir=${prefix}/share/${name} \
36                                --mandir=${prefix}/share/man \
37                                --without-docdir \
38                                --with-includes=${prefix}/include \
39                                --with-libraries=${prefix}/lib \
40                                --with-openssl \
41                                --with-bonjour \
42                                --with-readline \
43                                --with-zlib \
44                                --enable-thread-safety \
45                                --enable-integer-datetimes
46
47build.type              gnu
48build.target
49
50test.run                yes
51test.target             check
52
53livecheck.check regex
54livecheck.url   ${homepage}
55livecheck.regex v(8.2.\[0-9\]+)
56
57set contribs    "adminpack dblink fuzzystrmatch lo pg_buffercache pg_trgm pgcrypto tsearch2 vacuumlo xml2"
58
59post-build {
60        foreach contrib ${contribs} {
61                system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
62        }
63}
64
65post-destroot {
66        foreach contrib ${contribs} {
67                system "echo contrib: \"${contrib}\""
68                system "cd ${worksrcpath}/contrib/${contrib}/ && \
69                        ${build.cmd} install ${destroot.destdir} && touch DONE"
70        }
71        system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql82"
72        file delete -force ${destroot}${prefix}/share/doc/${name} \
73                ${destroot}${prefix}/share/man
74}
75
76variant python description {add support for python} {
77        depends_lib-append              port:python25
78        configure.args-append   --with-python
79        configure.env-append    PYTHON=${prefix}/bin/python2.5
80}
81
82variant krb5 description {add support for Kerberos 5 authentication} {
83        configure.args-append   --with-krb5
84}
85
86variant perl description {add Perl support} {
87        depends_lib-append                      bin:perl:perl5.8
88        configure.args-append           --with-perl
89}
90
91post-install {
92        ui_msg "\nTo use the postgresql server, install the postgresql82-server port"
93}
94
Note: See TracBrowser for help on using the repository browser.