# $Id: Portfile 69217 2010-06-29 02:06:45Z michaelld@macports.org $

PortSystem      1.0

name            py-pyqwt
version         5.1.0
platforms       macosx
categories      python devel
maintainers     erickt openmaintainer
description     PyQwt is a set of Python bindings for the Qwt toolkit
long_description ${description}
homepage        http://pyqwt.sourceforge.net
master_sites    sourceforge:pyqwt
distname        PyQwt-${version}

checksums       md5 c9d662a0d4fc95cec75d3c526e4e748a \
                sha1 d1b55e4a7400889e1d0831f8d6f3b692fc37aecb \
                rmd160 e8bbf154a9e30894977494829bf379a807fdf1e9

depends_lib     port:py-pyqt4

worksrcdir      ${worksrcdir}/configure

configure.cmd   ${prefix}/bin/python2.4 configure.py
configure.pre_args -I ${prefix}/include -I ${prefix}/include/python2.4 -L ${prefix}/lib

build.target

variant numpy description "Use numpy as array-object" {
        depends_lib-append port:py-numpy
}

variant qwt conflicts qwt52 description {Use qwt} {
    depends_lib-append  port:qwt
}

variant qwt52 conflicts qwt description {Use qwt52} {
    depends_lib-append  port:qwt52
}

if {![variant_isset qwt] && ![variant_isset qwt52]} {
    default_variants    +qwt
}
