# $Id$

PortSystem 1.0
PortGroup               muniversal 1.0

name                    unittest-cpp
version                 1.4
revision                1
categories              devel
license                 MIT
platforms               darwin
maintainers             nomaintainer
description             lightweight unit testing framework for C++
long_description        UnitTest++ is a lightweight unit testing framework for C++. \
                        It was designed to do test-driven development on a wide variety \
                        of platforms. Simplicity, portability, speed, and small footprint \
                        are all very important aspects of UnitTest++.

homepage                http://unittest-cpp.sourceforge.net/
master_sites            sourceforge:project/unittest-cpp/UnitTest%2B%2B/${version}

checksums               md5 bd373a53403ed51ea1bbb60b1952d7e3 \
                        sha1 dad944159e2e135aea74039987490eaaee00f2ad \
                        rmd160 fe55f111e7551af5cb05890888f32814b51c70e0

use_zip                 yes
worksrcdir              UnitTest++

post-extract {
    # DOS to UNIX line endings so we can patch properly.
    reinplace "s|\r||g" ${worksrcpath}/Makefile
}

patchfiles              patch-Makefile.diff

use_configure           no

foreach arch ${configure.universal_archs} {
    lappend merger_build_args(${arch})  CXX='${configure.cxx} -arch ${arch}'
}
if {![variant_isset universal]} {
    build.args-append   CXX='${configure.cxx} [get_canonical_archflags cxx]'
}

destroot.args           prefix=${prefix}