# -*- 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           github 1.0

github.setup        flightaware Pgtcl 3.1.0 v
revision            1
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                pgtcl
license             BSD
categories          databases
maintainers         nomaintainer
description         Tcl PostgreSQL interface
long_description    Tcl client interface to PostgreSQL

checksums           rmd160  931ed12f1c710007b27a0e01733bb5e658e68bce \
                    sha256  7b72005947af5818a0fe3173c30edd00f04fef221d6173c8ef7cb5797c878b08 \
                    size    633432

configure.env-append \
                    PG_CONFIG=${prefix}/lib/postgresql16/bin/pg_config

# No configure script in tarball.
use_autoreconf      yes

configure.args      --exec-prefix=${prefix} \
                    --with-sqlite3 \
                    --with-tcl=${prefix}/lib

# https://github.com/flightaware/Pgtcl/issues/53
use_parallel_build  no

depends_lib         port:tcl \
                    port:sqlite3 \
                    port:postgresql16
