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

Last change on this file since 21476 was 21476, checked in by eridius@…, 13 years ago

Massive update to svn properties on files:
All patchfiles have svn:eol-style removed.
All files that are not in fact able to be executed have svn:executable removed
All binary files have svn:eol-style removed (and are probably corrupt)
All binary files have svn:mime-type set to application/octet-stream
All files which are not patchfiles or binary files have svn:eol-style set to native
All Portfiles have svn:eol-style set to native and svn:executable removed

  • Property svn:eol-style set to native
File size: 3.0 KB
Line 
1# $Id: Portfile 20226 2006-10-29 07:09:01Z blair@macports.org $
2
3PortSystem 1.0
4
5name                    postgresql82
6version                 8.2.1
7categories              databases
8platforms               darwin
9maintainers             mww@macports.org jwa@macports.org
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    postgresql:source/v${version}
19set dbase               postgresql-base-${version}.tar.bz2
20set dopt                postgresql-opt-${version}.tar.bz2
21set dtest               postgresql-test-${version}.tar.bz2
22distfiles               ${dbase} ${dopt} ${dtest}
23
24checksums               ${dbase} sha1 025cea3b072d273da8da5e0a125fe22d172aab3d \
25                        ${dopt} sha1 b318cda7a22b4ac14b67ac46e5f53780871b963f \
26                        ${dtest} sha1 7b564b716c027feb2ecdb375b45d54ada4a66b4f
27use_bzip2               yes
28
29depends_lib             port:readline port:openssl port:zlib
30depends_build   port:bison
31
32worksrcdir              postgresql-${version}
33
34set libdir              ${prefix}/lib/${name}
35configure.args  --sysconfdir=${prefix}/etc/${name} \
36                                --bindir=${libdir}/bin \
37                                --libdir=${libdir} \
38                                --includedir=${prefix}/include/${name} \
39                                --datadir=${prefix}/share/${name} \
40                                --mandir=${prefix}/share/man \
41                                --without-docdir \
42                                --with-includes=${prefix}/include \
43                                --with-libraries=${prefix}/lib \
44                                --with-openssl \
45                                --with-rendezvous \
46                                --with-readline \
47                                --with-zlib \
48                                --enable-thread-safety \
49                                --enable-integer-datetimes \
50                                --enable-multibyte \
51                                --enable-unicode
52configure.env   CPPFLAGS=-I${prefix}/include \
53                                CFLAGS="-I${worksrcpath}/src/interfaces/libpq -I${prefix}/include" \
54                                LDFLAGS="-L${prefix}/lib"
55
56build.type              gnu
57build.target
58
59test.run                yes
60test.target             check
61
62set dbdir               ${prefix}/var/db/${name}/defaultdb
63set logdir              ${prefix}/var/log/${name}
64set contribs    "adminpack dblink fuzzystrmatch lo pg_buffercache pg_trgm tsearch2 vacuumlo xml2"
65
66post-build {
67        foreach contrib ${contribs} {
68                system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
69        }
70}
71
72post-destroot {
73        foreach contrib ${contribs} {
74                system "echo contrib: \"${contrib}\""
75                system "cd ${worksrcpath}/contrib/${contrib}/ && \
76                        ${build.cmd} install ${destroot.destdir} && touch DONE"
77        }
78        system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql82"
79        file delete -force ${destroot}${prefix}/share/doc/${name} \
80                ${destroot}${prefix}/share/man
81}
82
83variant python {
84        depends_lib-append              port:python25
85        configure.args-append   --with-python
86        configure.env-append    PYTHON=${prefix}/bin/python2.5
87}
88
89variant krb5 {
90#       depends_lib-append                      bin:kerberos:kerberos5
91        configure.args-append           --with-krb5
92}
93
94variant perl {
95        depends_lib-append                      bin:perl:perl5.8
96        configure.args-append           --with-perl
97}
98
99platform darwin 8 {
100        configure.env-append    CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
101}
102
103post-install {
104        ui_msg "\nTo use the postgresql server, install the postgresql82-server port"
105}
106
Note: See TracBrowser for help on using the repository browser.