svn commit: r311521 - head/devel/py-ode

Dmitry Marakasov amdmi3 at FreeBSD.org
Sun Feb 3 23:35:27 UTC 2013


Author: amdmi3
Date: Sun Feb  3 23:35:27 2013
New Revision: 311521
URL: http://svnweb.freebsd.org/changeset/ports/311521

Log:
  - Trim header
  - OptionsNG

Modified:
  head/devel/py-ode/Makefile

Modified: head/devel/py-ode/Makefile
==============================================================================
--- head/devel/py-ode/Makefile	Sun Feb  3 23:33:55 2013	(r311520)
+++ head/devel/py-ode/Makefile	Sun Feb  3 23:35:27 2013	(r311521)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	py-ode
-# Date created:		26 Jan 2007
-# Whom:			Dmitry Marakasov <amdmi3 at amdmi3.ru>
-#
+# Created by: Dmitry Marakasov <amdmi3 at amdmi3.ru>
 # $FreeBSD$
-#
 
 PORTNAME=	ode
 PORTVERSION=	1.2.0
@@ -27,14 +23,16 @@ PYDISTUTILS_PKGNAME=	PyODE
 
 OPTIONSFILE=	${PORT_DBDIR}/py-${PORTNAME}/options
 
-OPTIONS=	TRIMESH	"Trimesh support (sync with OPCODE opt of devel/ode)"	on
+OPTIONS_DEFINE=	TRIMESH
+OPTIONS_DEFAULT=TRIMESH
+TRIMESH_DESC=	Trimesh support (sync with OPCODE opt of devel/ode)
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/setup.py
-.if defined(WITHOUT_TRIMESH)
+.if ! ${PORT_OPTIONS:MTRIMESH}
 	@${REINPLACE_CMD} -e '/TRIMESH_ENABLE/ s|True|False|' ${WRKSRC}/setup.py
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


More information about the svn-ports-all mailing list