# -*- 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                AntTweakBar
version             1.14
revision            2
categories          graphics
maintainers         gmail.com:karcaw
description         Graphics Library for graphical user interface
long_description    AntTweakBar is a small and easy-to-use C/C++ library \
                    that allows programmers to quickly add a light and intuitive graphical \
                    user interface into graphic applications based on OpenGL, DirectX 9 or \
                    DirectX 10 to interactively tweak their parameters on-screen.
homepage            http://www.antisphere.com/Wiki/tools:anttweakbar
platforms           darwin
master_sites        http://www.antisphere.com/Tools/AntTweakBar/
distname            ${name}_[join [split ${version} .] ""]
use_configure       no
use_zip             yes

variant universal {}

build.args          CXX="${configure.cc}" \
                    CXXCFG="${configure.optflags} [get_canonical_archflags cxx]" \
                    LFLAGS="[get_canonical_archflags ld]" \
                    LINK="${configure.cc}" \
                    PREFIX=${prefix}

destroot.args       {*}${build.args}

# stealth update of 1.14, ticket #31267
dist_subdir         ${name}/${version}_2
checksums           rmd160  6297484674785807a8e750ccc8934dcba35f8353 \
                    sha256  606a2a7fc07d5acc42d0e81ccb8b7c59927faace4642a2091168c5f390b4cb2a \
                    size    4354790

patchfiles          ATB_[join [split ${version} .] ""]_mac.patch
worksrcdir          ${name}

#post-extract {
#    file link ${workpath}/AntTweakBar-${version} ${workpath}/AntTweakBar
#}
