# -*- 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               active_variants 1.1
PortGroup               bitbucket 1.0
PortGroup               qt4 1.0

bitbucket.setup         Coin3D coin 1.5.0 SoQt-
bitbucket.tarball_from  downloads
name                    SoQt
revision                2
categories              graphics devel
platforms               darwin
maintainers             {gmail.com:mark.brethen @mbrethen} openmaintainer
license                 BSD

description             SoQt is a Qt GUI component toolkit library for Coin.

long_description        ${description}

distname                ${name}-${version}

checksums               rmd160  04e9179954f7e3bfb5d1c595ad6c62215bc24ad2 \
                        sha256  f6a34b4c19e536c00f21aead298cdd274a7a0b03a31826fbe38fc96f3d82ab91

depends_lib-append      port:Coin-framework

depends_build-append    port:pkgconfig \
                        path:bin/doxygen:doxygen

patchfiles              patch-configure.diff \
                        patch-src-Inventor-Qt-Makefile.in.diff

configure.args-append   --disable-debug \
                        --disable-symbols \
                        --disable-dependency-tracking

post-build {
    reinplace -E {s|-arch [a-z0-9_]+||g} \
        ${worksrcpath}/SoQt.pc \
        ${worksrcpath}/soqt-default.cfg
}
