# $Id: Portfile 62211 2009-12-31 21:36:31Z ryandesign@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     path:bin/qmake-mac:qt4-mac port:qwt

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
}
