# -*- 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
# $Id: Portfile 106976 2013-06-12 22:26:38Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           github 1.0
PortGroup           active_variants 1.1

github.setup        openlink iODBC 3.52.8 v
#override name (keep it lowercase)
name                libiodbc
conflicts           unixODBC
revision            3
categories          devel
maintainers         snc openmaintainer
license             BSD
description         Independent Open DataBase Connectivity
long_description    iODBC is the acronym for Independent Open DataBase Connectivity, \
                    an Open Source platform independent implementation of both the \
                    ODBC and X/Open specifications.
platforms           darwin

checksums           rmd160  b0f091679ab45a0669468b9c85f45863ad54e7bc \
                    sha256  d37b468c2fbed046c4778aee1f8d9f1e73f1321cc33e2e264998c0d701ca26fb

depends_build       port:automake \
                    port:autoconf

depends_lib         port:libpng \
                    port:libtool \
                    port:gtk2

patchfiles          patch-iodbcinst-unicode.h.diff
patchfiles-append   patch-configure.in.diff

require_active_variants gtk2 x11

pre-configure {
    system -W ${worksrcpath} "sh ./bootstrap.sh"
}
configure.args-append   --with-iodbc-inidir=${prefix}/etc

# make[2]: *** No rule to make target `../iodbcadm/libiodbcadm.la', needed by `iodbcadm-gtk'.  Stop.
use_parallel_build  no
