# $Id: Portfile 42188 2008-11-16 17:33:17Z jwa@macports.org $ PortSystem 1.0 name postgresql82 version 8.2.11 categories databases platforms darwin maintainers mww jwa description The most advanced open-source database available anywhere long_description PostgreSQL is Object-Relational Database Management System. \ It supports almost all SQL constructs, including transactions, \ subselects, and user-defined types and functions. Write-ahead \ logging means increased performance while retaining data \ integrity. homepage http://www.postgresql.org/ master_sites http://ftp3.de.postgresql.org/pub/Mirrors/ftp.postgresql.org/source/v${version}/ \ postgresql:source/v${version} distname postgresql-${version} checksums md5 84e1fedd5f676e978a3afa744bc71b0a \ sha1 5410c25a369f19fc4a376f942351553aff710d8f \ rmd160 30e1f792a9168fa78b1c7d27742c6f98a7e2a08c use_bzip2 yes depends_lib port:readline port:openssl port:zlib port:libxml2 port:libxslt depends_build port:bison set libdir ${prefix}/lib/${name} configure.args --sysconfdir=${prefix}/etc/${name} \ --bindir=${libdir}/bin \ --libdir=${libdir} \ --includedir=${prefix}/include/${name} \ --datadir=${prefix}/share/${name} \ --mandir=${prefix}/share/man \ --without-docdir \ --with-includes=${prefix}/include \ --with-libraries=${prefix}/lib \ --with-openssl \ --with-bonjour \ --with-readline \ --with-zlib \ --enable-thread-safety \ --enable-integer-datetimes build.type gnu build.target test.run yes test.target check livecheck.check regex livecheck.url ${homepage} livecheck.regex (8.2.\[0-9\]+) set contribs "adminpack dblink fuzzystrmatch lo pg_buffercache pg_trgm pgcrypto tsearch2 vacuumlo xml2" post-build { foreach contrib ${contribs} { system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}" } } post-destroot { foreach contrib ${contribs} { system "echo contrib: \"${contrib}\"" system "cd ${worksrcpath}/contrib/${contrib}/ && \ ${build.cmd} install ${destroot.destdir} && touch DONE" } system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql82" file delete -force ${destroot}${prefix}/share/doc/${name} \ ${destroot}${prefix}/share/man } variant python description {add support for python} { depends_lib-append port:python25 configure.args-append --with-python configure.env-append PYTHON=${prefix}/bin/python2.5 } variant krb5 description {add support for Kerberos 5 authentication} { configure.args-append --with-krb5 } variant perl description {add Perl support} { depends_lib-append bin:perl:perl5.8 configure.args-append --with-perl } post-install { ui_msg "\nTo use the postgresql server, install the postgresql82-server port" }