freebsd-ports/devel/py-ode/Makefile
Alexander Botero-Lowry 4942ce5a7d - Make Python 2.5.1 the default Python version
- Add significantly better support in bsd.python.mk for working with
   Python Eggs and the easy_install system

Tested by:	pointyhat runs
Approved by:	pav (portmgr)
Most work by:	perky
Thanks to:	pav
2007-07-30 09:42:28 +00:00

41 lines
943 B
Makefile

# 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@amdmi3.ru
COMMENT= Python bindings for The Open Dynamics Engine
BUILD_DEPENDS= ${X11BASE}/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|${X11BASE}|' ${WRKSRC}/setup.py
.if defined(WITHOUT_TRIMESH)
@${REINPLACE_CMD} -e '/TRIMESH_ENABLE/ s|True|False|' ${WRKSRC}/setup.py
.endif
.include <bsd.port.post.mk>