aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ode-devel/Makefile
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-05-31 15:39:54 +0800
committerpav <pav@FreeBSD.org>2005-05-31 15:39:54 +0800
commit6578b51794de9ad2fa6e4088297f2992d0a18c63 (patch)
tree3b9090d660dfae60e9b262c725f757741e79f6b9 /devel/ode-devel/Makefile
parenteabe3ba61e1c3ba34597267858392d41855e9c4d (diff)
downloadfreebsd-ports-gnome-6578b51794de9ad2fa6e4088297f2992d0a18c63.tar.gz
freebsd-ports-gnome-6578b51794de9ad2fa6e4088297f2992d0a18c63.tar.zst
freebsd-ports-gnome-6578b51794de9ad2fa6e4088297f2992d0a18c63.zip
- enable an "OPCODE" library that is required to support triangle mesh objects.
- changes the header include order so as not to pick up installed includes before local ones - suppresses the unneeded use of values.h - works around an inlining limitation in g++ PR: ports/81610 Submitted by: Jonathan Hanna <jhanna@shaw.ca> Approved by: David Yeske <dyeske@yahoo.com> (maintainer)
Diffstat (limited to 'devel/ode-devel/Makefile')
-rw-r--r--devel/ode-devel/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/devel/ode-devel/Makefile b/devel/ode-devel/Makefile
index 70cb8f5238dd..68d54a7e3e62 100644
--- a/devel/ode-devel/Makefile
+++ b/devel/ode-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ode
PORTVERSION= 0.5
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
@@ -21,6 +22,8 @@ USE_GL= yes
USE_GMAKE= yes
USE_REINPLACE= yes
+OPTIONS= OPCODE "Enable code required by TriList (trimesh) class" on
+
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
@@ -42,6 +45,15 @@ post-patch:
s|-fno-rtti||; \
s|-ffast-math|${CXXFLAGS} -I${X11BASE}/include|' \
${WRKSRC}/config/makefile.unix-gcc
+.if !defined(WITHOUT_OPCODE)
+ @${REINPLACE_CMD} -e \
+ 's/^#OPCODE_DIRECTORY/OPCODE_DIRECTORY/' \
+ ${WRKSRC}/config/user-settings
+.endif
+
+do-configure:
+ cd ${WRKSRC} ; ${GMAKE} configure
+ @${REINPLACE_CMD} -e '/include.*values.h/d' ${WRKSRC}/include/ode/config.h
do-install:
@${INSTALL_DATA} ${WRKSRC}/lib/libode.a ${PREFIX}/lib