# -*- 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 55455 2009-08-11 02:58:43Z snc@macports.org $

PortSystem          1.0

name                lpc21isp
version             1.64
categories          cross devel
#license             LGPL
maintainers         snc openmaintainer
description         a NXP MCU programmer
long_description    In-circuit programming (ISP) tool for the NXP (Philips) \
                    LPC2000 series ARM7 microcontrollers
homepage            http://sourceforge.net/projects/lpc21isp/
platforms           darwin
master_sites        sourceforge
checksums           md5 3dda91f9bac1568d43b6217e19501be8 \
                    sha1 4ad1ba8aef99ac00191c81ebb863f7e04415eb45 \
                    rmd160 49c5355dcfbe14b18eae324b57529458fc1d3deb

patchfiles          patch-lpc21isp.c.diff

use_configure       no

pre-build {
                    system "make -C ${worksrcpath} clean"
}

destroot {
                    xinstall -m 755 ${worksrcpath}/lpc21isp \
                    ${destroot}${prefix}/bin
}
