# -*- 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
PortGroup compiler_blacklist_versions 1.0
#remember to update the -doc and -server as well
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 \
homepage https://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 rmd160 a8751d04dfad1323e4f2d2d2d05c8868cc3008ae \
sha256 3dbcbe19c814139a3f4be8bc6b49db804753cbc49979f345083e835c52b4d7de
# do not build man or html files (use postgresqlXY-doc instead)
patchfiles-append patch-no_doc.diff
depends_lib port:readline path:lib/libssl.dylib:openssl port:zlib port:libxml2 port:libxslt port:ossp-uuid
depends_run port:postgresql_select
worksrcdir postgresql-${version}
set libdir ${prefix}/lib/${name}
configure.args --sysconfdir=${prefix}/etc/${name} \
--includedir=${prefix}/include/${name} \
--datadir=${prefix}/share/${name} \
--docdir=${prefix}/share/doc/${name} \
--mandir=${prefix}/share/man \
--with-includes=${prefix}/include \
--with-libraries=${prefix}/lib \
--enable-integer-datetimes \
configure.cppflags-append -I${prefix}/include/ossp