# $Id: Portfile 84512 2011-09-27 14:19:06Z snc@macports.org $

PortSystem      1.0
PortGroup       python26 1.0

name            py26-ode
version         1.2.0
categories      python
maintainers     jameskyle
description     Python bindings for The Open Dynamics Engine
long_description ${description}.
platforms       darwin
homepage        http://pyode.sourceforge.net/
master_sites    sourceforge:pyode
distname        PyODE-${version}
use_bzip2       yes
checksums       md5     ab72f3acc635371fd454978e5a97591c \
                sha1    381627b3ab36840fbdd178e53d53d221f1017699 \
                rmd160  1d158b3484e6bcb1f83f18be979d40ecdf1cae36


depends_lib-append port:ode

patchfiles      patch-setup-py.diff
post-patch {
  reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
}
