# -*- 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

PortSystem          1.0
PortGroup           app 1.0
PortGroup           bitbucket 1.0
PortGroup           wxWidgets 1.0

bitbucket.setup     bwalle usbprog-tools-classic b833a7276539
name                usbprog
version             0.2.1_20130915-hg-${bitbucket.version}
revision            4
categories          cross
maintainers         nomaintainer
description         Tool for uploading and downloading firmwares to the usbprog device
long_description    Tool for uploading and downloading firmwares to the usbprog device.
platforms           darwin
license             GPL-2+

wxWidgets.use       wxWidgets-3.0

depends_build       port:autoconf \
                    port:automake \
                    port:libtool \
                    port:pkgconfig

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

checksums           rmd160  333cbef9f2446c5b3ee2586c83b4685408aec759 \
                    sha256  9ae52da5485456b90f349295701906bc223a45ec07964555274c31ce13598a84

# 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}