aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-ode/Makefile
blob: f38e712a08fab29d750fcd02f9007c9e64253702 (plain) (blame)
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
35
36
37
38
39
40
41
# New ports collection makefile for:    py-ode
# Date created:     26 Jan 2007
# Whom:         Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#

PORTNAME=   ode
PORTVERSION=    1.2.0
PORTREVISION=   1
CATEGORIES= devel python
MASTER_SITES=   SF
MASTER_SITE_SUBDIR= pyode
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:${PORTSDIR}/devel/ode

USE_BZIP2=  yes

USE_PYTHON= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGNAME=    PyODE

OPTIONSFILE=    ${PORT_DBDIR}/py-${PORTNAME}/options

OPTIONS=    TRIMESH "Trimesh support (sync with OPCODE opt of devel/ode)"   on

.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/setup.py
.if defined(WITHOUT_TRIMESH)
    @${REINPLACE_CMD} -e '/TRIMESH_ENABLE/ s|True|False|' ${WRKSRC}/setup.py
.endif

.include <bsd.port.post.mk>