# Created by: Dmitry Marakasov # $FreeBSD$ PORTNAME= ode PORTVERSION= 1.2.0 PORTREVISION= 4 CATEGORIES= devel python MASTER_SITES= SF/py${PORTNAME}/py${PORTNAME}/${PORTVERSION} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= PyODE-${PORTVERSION} DIST_SUBDIR= python MAINTAINER= amdmi3@FreeBSD.org COMMENT= Python bindings for The Open Dynamics Engine LIB_DEPENDS= libode.so:devel/ode USES= python:2 tar:bzip2 USE_PYTHON= autoplist distutils OPTIONS_DEFINE= TRIMESH OPTIONS_DEFAULT=TRIMESH TRIMESH_DESC= Trimesh support (sync with OPCODE opt of devel/ode) post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/setup.py post-patch-TRIMESH-off: @${REINPLACE_CMD} -e '/TRIMESH_ENABLE/ s|True|False|' ${WRKSRC}/setup.py post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/ode.so .include