# -*- 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.1 v
revision            0
checksums           rmd160  17b47d42bce8283fd61364c35b2a0e5abb81b6cc \
                    sha256  d941a01621eefc17375952a23d4b349adce51b1aec9e9a8b3a07cbe0748dfa6e \
                    size    633378

name                pgtcl
license             BSD
categories          databases
maintainers         nomaintainer
description         Tcl PostgreSQL interface
long_description    Tcl client interface to PostgreSQL

homepage            https://${github.author}.github.io/${github.project}/
github.tarball_from archive

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
