From 9faae638ff6ebafa73513cd77de5bf6be104e677 Mon Sep 17 00:00:00 2001 From: acm Date: Thu, 16 Aug 2007 21:08:29 +0000 Subject: - Update to 0.8 - Add GIMPACT option - See ChangeLog at: http://sourceforge.net/project/shownotes.php?release_id=480493&group_id=24884 --- devel/ode/Makefile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'devel/ode/Makefile') diff --git a/devel/ode/Makefile b/devel/ode/Makefile index 7a32b87b64ad..3b33bfd93b3a 100644 --- a/devel/ode/Makefile +++ b/devel/ode/Makefile @@ -6,8 +6,7 @@ # PORTNAME= ode -PORTVERSION= 0.7 -PORTREVISION= 1 +PORTVERSION= 0.8 PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} @@ -30,16 +29,22 @@ CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \ LIBS="-L${X11BASE}/lib" -OPTIONS= OPCODE "Enable code required by TriList (trimesh) class" on \ +OPTIONS= GIMPACT "Enable gimpact instead of opcode support" off \ GYROSCOPIC "Configure ODE to work with gyroscopic term" on \ - DOUBLE "Enable double precision" off + DOUBLE "Enable double precision (BROKEN with GIMPACT)" off WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} .include -.if defined(WITHOUT_OPCODE) -CONFIGURE_ARGS+= --disable-opcode +.if defined(WITH_GIMPACT) && defined(WITH_DOUBLE) +IGNORE= currently double precision is not supported by gimpact +.endif + +.if !defined(WITH_GIMPACT) +CONFIGURE_ARGS+= --with-trimesh=opcode +.else +CONFIGURE_ARGS+= --with-trimesh=gimpact .endif .if defined(WITHOUT_GYROSCOPIC) @@ -60,7 +65,7 @@ post-patch: -e '/^DEFAULT_INCLUDES/ s|$$| -I$$(top_builddir)/include|' \ -e '/CFLAGS/ s|-O[12]||' @${FIND} ${WRKSRC} -type f -print0 | ${XARGS} -0 ${REINPLACE_CMD} \ - -i "" -e 's|||g' + -i "" -e 's|malloc.h|stdlib.h|g' post-install: ${SED} -e '/PACKAGE/ s|^|//|; /VERSION/ s|^|//|' ${WRKSRC}/include/ode/config.h \ -- cgit