# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name postgresql83 version 8.3.4 distname postgresql-${version} worksrcdir postgresql-${version} categories databases platforms darwin maintainers mww jwa description The world's most advanced open-source database. 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://www.postgresql.org/ftp/source/v${version}/ \ ftp://ftp7.us.postgresql.org/pub/postgresql/source/v${version}/ \ postgresql:source/v${version}/ use_bzip2 yes checksums md5 c339b9d3c0c4add64c7a76640fc93744 \ sha1 3e6fd905fd3fe9698b50e5376ed15b7d6e3bb602 \ rmd160 13cb20672b0dc6fe52346d7c906a0842e0c872ac depends_lib port:readline \ port:openssl \ port:ossp-uuid \ port:zlib \ port:libxml2 \ port:libxslt depends_build port:bison set libdir ${prefix}/lib/${name} configure.args-append \ --sysconfdir=${prefix}/etc/${name} \ --bindir=${libdir}/bin \ --libdir=${libdir} \ --includedir=${prefix}/include/${name} \ --datadir=${prefix}/share/${name} \ --mandir=${prefix}/share/man \ --enable-thread-safety \ --enable-integer-datetimes \ --without-docdir \ --with-includes=${prefix}/include \ --with-libraries=${prefix}/lib \ --with-openssl \ --with-ossp-uuid \ --with-readline \ --with-zlib \ --with-libxml \ --with-libxslt configure.cflags-append \ -I${prefix}/include \ -I${prefix}/include/ossp build.type gnu build.target test.run yes test.target check livecheck.check regex livecheck.url ${homepage}/versions.rss livecheck.regex (8.3.\[0-9\]+) set contribs "adminpack dblink fuzzystrmatch lo uuid-ossp 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}/ && \ ${destroot.cmd} install ${destroot.destdir} && touch DONE" } system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql83" file delete -force ${destroot}${prefix}/share/doc/${name} \ ${destroot}${prefix}/share/man # Add /opt/local/lib/postgresql83/bin to the system path mkdir ${destroot}/etc/paths.d echo "${prefix}/lib/postgresql83/bin" > ${destroot}/etc/paths.d/postgresql83 } post-install { ui_msg "\ \nTo use the postgresql server, install the ${name}-server port\ \n" if {[variant_isset doc]} { ui_msg "\nDocumentation can be found in\n\ ${prefix}/share/doc/${name}/html/\n\ Update this path in pgAdmin3 Preferences:General\n" } } default_variants +doc +bonjour +krb5 +tclSys +perl +python # --enable section variant dependency description {automatic dependency tracking} { configure.args-append --enable-depend } variant profiling description {add profiling support} { configure.args-append --enable-profiling } variant debug description {add debug symbols and enable assertion checking} { configure.args-append --enable-debug --enable-cassert } variant nls description {add native language support} { configure.args-append --enable-nls } variant NOlargefile description {DISABLE large file support} { configure.args-append --disable-largefile } variant NOshared description {DISABLE shared libs} { configure.args-append --disable-shared } variant NOrpath description {DISABLE rpath search for executables} { configure.args-append --disable-rpath } variant NOspinlocks description {DISABLE spinlocks} { configure.args-append --disable-spinlocks } # --with section variant bonjour description {add support for Bonjour} { configure.args-append --with-bonjour } variant doc description {add documentation} { configure.args-delete --without-docdir configure.args-append --with-docdir=${prefix}/share/doc/${name} } variant krb5 description {add support for Kerberos 5 authentication} { configure.args-append --with-krb5 } variant ldap description {add support for LDAP} { configure.args-append --with-ldap } variant pam description {add support for PAM authentication} { configure.args-append --with-pam } variant perl description {add Perl modules (PL/Perl)} { depends_lib-append bin:perl:perl5.8 configure.args-append --with-perl } variant python description {add Python modules (PL/Python)} { depends_lib-append port:python25 configure.args-append --with-python configure.env-append PYTHON=${prefix}/bin/python2.5 } variant tclPort conflicts tclSys description {add Tcl modules (PL/Tcl; MacPorts Tcl)} { configure.args-append --with-tcl \ --with-tclconfig=${prefix}/lib/ } variant tclSys conflicts tclPort description {add Tcl modules (PL/Tcl; System Tcl framework)} { configure.args-append --with-tcl \ --with-tclconfig=/System/Library/Frameworks/Tcl.framework/ }