Files

44 lines
1.4 KiB
Tcl

# -*- 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
name libdbi
version 0.9.0
categories databases devel
license LGPL-2.1+
maintainers {umich.edu:mta @mtalexander} openmaintainer
description Database independent abstraction layer for C
long_description {*}${description}
homepage https://libdbi.sourceforge.net
master_sites sourceforge
checksums rmd160 29cbfa6dd31f9b9dc4919db8d594e94942c2b310 \
sha256 dafb6cdca524c628df832b6dd0bf8fabceb103248edb21762c02d3068fca4503 \
size 1194284
configure.args-append \
--disable-docs
platform darwin arm {
depends_build-append \
port:automake
post-patch {
# Use newer config.guess and config.sub to support Apple Silicon.
set automake_dirs [glob -directory ${prefix}/share automake-*]
set automake_dir [lindex [lsort -command vercmp $automake_dirs] end]
copy -force ${automake_dir}/config.guess ${automake_dir}/config.sub \
${worksrcpath}
}
}
variant docs description "Build the documentation" {
configure.args-delete --disable-docs
depends_build port:openjade
}
variant debug description "Build with debugger symbols" {
build.target debug
}