# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 113329 2013-11-13 16:53:30Z mojca@macports.org $

PortSystem          1.0
PortGroup           app 1.0
PortGroup           bitbucket 1.0
PortGroup           wxWidgets 1.0

bitbucket.setup     bwalle usbprog-tools-classic b833a72
name                usbprog
version             0.2.1_20130915-hg-${bitbucket.version}
revision            1
categories          cross
maintainers         lilalinux.net:macports
description         Tool for uploading and downloading firmwares to the usbprog device
long_description    Tool for uploading and downloading firmwares to the usbprog device.
homepage            https://bitbucket.org/bwalle/usbprog-tools-classic
platforms           darwin
license             GPL-2+

wxWidgets.use       wxWidgets-3.0

depends_build       port:autoconf \
                    port:automake \
                    port:libtool \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  port:curl \
                    port:libusb-compat \
                    port:libxml2 \
                    port:readline \
                    port:${wxWidgets.port}

checksums           rmd160  1fe9533818de56f1b47fc91ea36ea5cd870c0432 \
                    sha256  aa08b71d9508653ac06050ccc494822b8cb31b0816ff61ce575e4eadc1303593

# ideally the icon should be fetched from upstream
app.name            usbprog
app.executable      usbprog-gui
app.icon            ${filespath}/usbprog_icon.png

pre-configure {
    system -W ${worksrcpath} "./bootstrap"
}

configure.args      --with-wxdir=${wxWidgets.wxdir}
