PKGNAME=postgresql-runtime-17
PKGSEC=database
# Dependencies of the runtime libraries.
PKGDEP="krb5 openssl glibc"
# Dependencies to build the entire PostgreSQL. PKGDEP for PostgreSQL itself
# will be recorded at 02-server/defines.
BUILDDEP="libxml2 linux-pam python-3 readline tcl util-linux llvm perl \
          docbook-dtd docbook-xsl libxslt"
PKGDES="PostgreSQL runtime libraries (17.x branch)"

# IMPORTANT!
# PostgreSQL keeps data directories individually for each major version.
# Do NOT use the same data directory across the major versions.
# NOTE: their translation files do have versioned suffixes.
AUTOTOOLS_AFTER=(
	"--prefix=/usr/lib/postgresql-17"
	"--bindir=/usr/lib/postgresql-17/bin"
	"--libdir=/usr/lib/postgresql-17/lib"
	"--sbindir=/usr/lib/postgresql-17/bin"
	"--datarootdir=/usr/share/postgresql-17"
	"--datadir=/usr/share/postgresql-17"
	"--localedir=/usr/share/locale"
	"--with-gssapi"
	"--with-libxml"
	"--with-openssl"
	"--with-perl"
	"--with-python"
	"--with-tcl"
	"--with-llvm"
	"--with-pam"
	"--with-icu"
	"--with-system-tzdata=/usr/share/zoneinfo"
	"--with-uuid=e2fs"
	"--enable-nls"
	"PYTHON=/usr/bin/python3"
)

AUTOTOOLS_AFTER__RISCV64=(
	"${AUTOTOOLS_AFTER[@]}"
	"--disable-spinlocks"
)

ABMK="world"
ABSHADOW=0
RECONF=0
NOSTATIC=0
