# -*- 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 77820 2011-04-14 05:28:43Z ryandesign@macports.org $
PortSystem          1.0
name                AntTweakBar
version             1.14
revision            1
categories          graphics
maintainers         karcaw@gmail.com
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/
distfiles           ${name}_[join [split ${version} .] ""]
use_configure       no
use_zip             yes

variant universal {}
if {[variant_isset universal]} {
    set archflags ${configure.universal_cflags}
} else {
    set archflags ${configure.cc_archflags}
}

build.args          CXX="${configure.cc}" \
                    CXXCFG="${configure.optflags} ${archflags}" \
                    LFLAGS="${archflags}" \
                    LINK="${configure.cc}" \
                    PREFIX=${prefix}

eval destroot.args  ${build.args}

checksums           sha1    a3e2d2c756413d1c562946a9e7b8190734284f2b \
                    rmd160  89fab9e632b54c858ed1a5f85a2abb802efe403d

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

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

