# -*- 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
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 md5 7ecc63c517a8e79b86cd680214ec14fc \
sha1 f51ac2051c4b1c95f5f58bf75bbafc50d2bc359b \
rmd160 5a1d45cae1e7a9d9caa8e902608404b281bac7ff
depends_lib port:readline path:lib/libssl.dylib:openssl port:zlib port:libxml2 port:libxslt
patchfiles src_pl_plpython_Makefile.patch
set libdir ${prefix}/lib/${name}
configure.args --sysconfdir=${prefix}/etc/${name} \
--includedir=${prefix}/include/${name} \
--datadir=${prefix}/share/${name} \
--mandir=${prefix}/share/man \
--with-includes=${prefix}/include \
--with-libraries=${prefix}/lib \
--enable-integer-datetimes
if {[variant_isset universal]} {
xinstall -m 755 ${filespath}/ldfat.sh ${workpath}
reinplace s|@UNIVERSAL_ARCHS@|${universal_archs}| ${workpath}/ldfat.sh
configure.env-append LD=${workpath}/ldfat.sh
system "cd ${worksrcpath}/src/include \
&& ed - pg_config.h < ${filespath}/pg_config.h.ed \
system "cd ${worksrcpath}/src/interfaces/ecpg/include \