# -*- 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
PortSystem 1.0
PortGroup select 1.0
PortGroup compiler_blacklist_versions 1.0
#remember to update the -doc and -server as well
name postgresql90
version 9.0.23
revision 1
categories databases
platforms darwin
maintainers jwa
license Permissive
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 rmd160 a8751d04dfad1323e4f2d2d2d05c8868cc3008ae \
sha256 3dbcbe19c814139a3f4be8bc6b49db804753cbc49979f345083e835c52b4d7de
use_bzip2 yes
depends_lib port:readline path:lib/libssl.dylib:openssl port:zlib port:libxml2 port:libxslt port:ossp-uuid
depends_build port:bison
depends_run port:postgresql_select
worksrcdir postgresql-${version}
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 \
--with-includes=${prefix}/include \
--with-libraries=${prefix}/lib \
--with-openssl \
--with-bonjour \
--with-readline \
--with-zlib \
--with-libxml \
--with-libxslt \
--enable-thread-safety \
--enable-integer-datetimes \
--with-ossp-uuid
configure.cppflags-append -I${prefix}/include/ossp
# building psql with clang from XCode prior to 4.4 causes segfault on query; see #31717
compiler.blacklist-append {clang < 421}
if {[variant_isset universal]} {
configure.cflags-append -DAC_APPLE_UNIVERSAL_BUILD
post-configure {
system "cd ${worksrcpath}/src/include \
&& ed - pg_config.h < ${filespath}/pg_config.h.ed \
&& touch stamp-h"
system "cd ${worksrcpath}/src/interfaces/ecpg/include \
&& ed - ecpg_config.h < ${filespath}/ecpg_config.h.ed \
&& touch stamp-h"
}
}
build.type gnu
build.target
test.run yes
test.target check
livecheck.type none
platform darwin {
if {${os.major} >= 12} {
patchfiles-append postgresql-uuid-ossp.patch
}
}
# prepare the contrib modules
set contribs {}
post-build {