blob: 407b2b89c27e2d8cbd89089ae5042552c01db45a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= ode
PORTVERSION= 1.2.0
PORTREVISION= 3
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
BUILD_DEPENDS= ${LOCALBASE}/lib/libode.a: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 <bsd.port.mk>
|