mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Update to 0.6 [1]
- Take over of maintaership due to more than 9 months of maintainer inactivity and two maintainer timeout - Take maintainership - Remove obsolete patch files PR: 100636 Submitted by: Dmitry Marakasov <amdmi3_(at)_mail.ru> [1] Approved by: garga (mentor), maintainer timeout
This commit is contained in:
parent
1a532da4b7
commit
dbe2cd64e1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=171323
6 changed files with 37 additions and 106 deletions
|
@ -6,56 +6,56 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= ode
|
PORTNAME= ode
|
||||||
PORTVERSION= 0.5
|
PORTVERSION= 0.6
|
||||||
PORTREVISION= 1
|
|
||||||
PORTEPOCH= 1
|
PORTEPOCH= 1
|
||||||
CATEGORIES= devel
|
CATEGORIES= devel
|
||||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||||
MASTER_SITE_SUBDIR= opende
|
MASTER_SITE_SUBDIR= opende
|
||||||
EXTRACT_SUFX= .tgz
|
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
|
||||||
|
|
||||||
MAINTAINER= dyeske@yahoo.com
|
MAINTAINER= acm@FreeBSD.org
|
||||||
COMMENT= Articulated rigid body dynamics library
|
COMMENT= Articulated rigid body dynamics library
|
||||||
|
|
||||||
CONFLICTS= ode-devel-[0-9].*
|
CONFLICTS= ode-devel-[0-9].*
|
||||||
|
|
||||||
|
USE_ZIP= yes
|
||||||
USE_X_PREFIX= yes
|
USE_X_PREFIX= yes
|
||||||
USE_GL= yes
|
USE_GL= yes
|
||||||
USE_GMAKE= yes
|
USE_GMAKE= yes
|
||||||
|
GNU_CONFIGURE= yes
|
||||||
|
|
||||||
OPTIONS= OPCODE "Enable code required by TriList (trimesh) class" on
|
CONFIGURE_ARGS= --program-prefix=${PREFIX}
|
||||||
|
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
|
||||||
|
LIBS="-L${X11BASE}/lib"
|
||||||
|
|
||||||
|
OPTIONS= OPCODE "Enable code required by TriList (trimesh) class" on \
|
||||||
|
GYROSCOPIC "Configure ODE to work with gyroscopic term" on \
|
||||||
|
DOUBLE "Enable double precision" off
|
||||||
|
|
||||||
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
post-patch:
|
.if defined(WITHOUT_OPCODE)
|
||||||
@${REINPLACE_CMD} -e \
|
CONFIGURE_ARGS+= --disable-opcode
|
||||||
's|malloc.h|stdlib.h|g' \
|
|
||||||
${WRKSRC}/configurator.c
|
|
||||||
|
|
||||||
@${REINPLACE_CMD} -e \
|
|
||||||
's|g++|${CXX}|; \
|
|
||||||
s|-Wall||g; \
|
|
||||||
s|-L/usr/X11/lib|-lXext|; \
|
|
||||||
s|-L/usr/lib/X11R6||; \
|
|
||||||
s|-L/usr/lib/X11||; \
|
|
||||||
s|-L/usr/X11R6/lib|-L${X11BASE}/lib|; \
|
|
||||||
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
|
.endif
|
||||||
|
|
||||||
do-configure:
|
.if defined(WITHOUT_GYROSCOPIC)
|
||||||
cd ${WRKSRC} ; ${GMAKE} configure
|
CONFIGURE_ARGS+= --disable-gyroscopic
|
||||||
@${REINPLACE_CMD} -e '/include.*values.h/d' ${WRKSRC}/include/ode/config.h
|
.endif
|
||||||
|
|
||||||
do-install:
|
.if defined(WITH_DOUBLE)
|
||||||
@${INSTALL_DATA} ${WRKSRC}/lib/libode.a ${PREFIX}/lib
|
CONFIGURE_ARGS+= --enable-double-precision
|
||||||
@${INSTALL_DATA} ${WRKSRC}/lib/libdrawstuff.a ${PREFIX}/lib
|
.endif
|
||||||
@${MKDIR} ${PREFIX}/include/ode
|
|
||||||
@${INSTALL_DATA} ${WRKSRC}/include/ode/*.h ${PREFIX}/include/ode
|
post-patch:
|
||||||
|
@${REINPLACE_CMD} -e '/if test/ s|==|=|' -e 's|^\( *CFLAGS=\)|#\1|;' \
|
||||||
|
-e 's|^\( *CPPFLAGS=\)|#\1|' -e 's|^\( *CXXFLAGS=\)|#\1|' \
|
||||||
|
-e 's|__isnanf||g; s|__isnan||g' -e 's|-lpthread|-pthread|g' \
|
||||||
|
${WRKSRC}/configure
|
||||||
|
@${REINPLACE_CMD} -e '/^traplib_PROGRAMS / d' ${WRKSRC}/ode/src/Makefile.in
|
||||||
|
@${FIND} ${WRKSRC} -type f -name Makefile.in -print0 | xargs -0 ${REINPLACE_CMD} \
|
||||||
|
-e '/^DEFAULT_INCLUDES/ s|$$| -I$$(top_builddir)/include|' \
|
||||||
|
-e '/CFLAGS/ s|-O[12]||'
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
MD5 (ode-0.5.tgz) = b33b21e04ee9661f27802b6b6c8eefd2
|
MD5 (ode-src-0.6.zip) = 7afdb1d434a1e2cc2d701fdf8d1f2fad
|
||||||
SHA256 (ode-0.5.tgz) = 5388c4cd4666f270f18216c90ab6526229c53fdc7e82f93ddb0824e69521df1c
|
SHA256 (ode-src-0.6.zip) = 5bc01923bd68b122368f15d4e969bff4d53acbd69af521712b33181d47b36b88
|
||||||
SIZE (ode-0.5.tgz) = 1710720
|
SIZE (ode-src-0.6.zip) = 1808849
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
--- Makefile.orig Wed Jun 9 16:12:12 2004
|
|
||||||
+++ Makefile Wed Jun 9 16:13:39 2004
|
|
||||||
@@ -329,13 +329,13 @@
|
|
||||||
-$(DEL_CMD) OPCODE/*.obj OPCODE/*.o OPCODE/Ice/*.obj OPCODE/Ice/*.o
|
|
||||||
|
|
||||||
%$(OBJ): %.c
|
|
||||||
- $(CC) $(C_FLAGS) $(C_INC)$(INCPATH) $(DEFINES) $(C_OPT)1 $(C_OUT)$@ $<
|
|
||||||
+ $(CC) $(C_INC)$(INCPATH) $(C_FLAGS) $(DEFINES) $(C_OUT)$@ $<
|
|
||||||
|
|
||||||
%$(OBJ): %.cpp
|
|
||||||
- $(CC) $(C_FLAGS) $(C_INC)$(INCPATH) $(INC_OPCODE) $(DEFINES) $(C_OPT)$(OPT) $(C_OUT)$@ $<
|
|
||||||
+ $(CC) $(C_INC)$(INCPATH) $(C_FLAGS) $(INC_OPCODE) $(DEFINES) $(C_OUT)$@ $<
|
|
||||||
|
|
||||||
%.exe: %$(OBJ)
|
|
||||||
- $(CC) $(C_EXEOUT)$@ $< $(ODE_LIB) $(DRAWSTUFF_LIB) $(RESOURCE_FILE) $(LINK_OPENGL) $(LINK_MATH)
|
|
||||||
+ $(CC) $(C_EXEOUT)$@ $< $(ODE_LIB) $(DRAWSTUFF_LIB) $(RESOURCE_FILE) $(LINK_OPENGL) $(LINK_MATH) ${LDFLAGS}
|
|
||||||
|
|
||||||
|
|
||||||
# windows specific rules
|
|
||||||
@@ -357,7 +357,7 @@
|
|
||||||
|
|
||||||
# unix-gcc specific dependency making
|
|
||||||
|
|
||||||
-DEP_RULE=gcc -M $(C_INC)$(INCPATH) $(DEFINES)
|
|
||||||
+DEP_RULE=${CC} -M $(C_INC)$(INCPATH) $(DEFINES)
|
|
||||||
depend:
|
|
||||||
$(DEP_RULE) $(ODE_SRC) $(ODE_PREGEN_SRC) | tools/process_deps ode/src/ > Makefile.deps
|
|
||||||
$(DEP_RULE) $(DRAWSTUFF_SRC) | tools/process_deps drawstuff/src/ >> Makefile.deps
|
|
|
@ -1,30 +0,0 @@
|
||||||
--- OPCODE/OPC_TreeCollider.h.orig Mon May 23 20:11:48 2005
|
|
||||||
+++ OPCODE/OPC_TreeCollider.h Mon May 23 20:16:16 2005
|
|
||||||
@@ -28,6 +28,13 @@
|
|
||||||
//! even entering the recursive collision code.
|
|
||||||
struct OPCODE_API BVTCache : Pair
|
|
||||||
{
|
|
||||||
+ inline_ void ResetCountDown()
|
|
||||||
+ {
|
|
||||||
+#ifdef __MESHMERIZER_H__ // Collision hulls only supported within ICE !
|
|
||||||
+ CountDown = 50;
|
|
||||||
+#endif // __MESHMERIZER_H__
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
//! Constructor
|
|
||||||
inline_ BVTCache()
|
|
||||||
{
|
|
||||||
@@ -46,13 +53,6 @@
|
|
||||||
SepVector.pid = 0;
|
|
||||||
SepVector.qid = 0;
|
|
||||||
SepVector.SV = Point(1.0f, 0.0f, 0.0f);
|
|
||||||
-#endif // __MESHMERIZER_H__
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- inline_ void ResetCountDown()
|
|
||||||
- {
|
|
||||||
-#ifdef __MESHMERIZER_H__ // Collision hulls only supported within ICE !
|
|
||||||
- CountDown = 50;
|
|
||||||
#endif // __MESHMERIZER_H__
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
--- configurator.c.orig Sat May 29 21:46:03 2004
|
|
||||||
+++ configurator.c Tue Dec 6 03:48:15 2005
|
|
||||||
@@ -222,7 +222,7 @@
|
|
||||||
write_header_comment (file,"is this a pentium on a gcc-based platform?");
|
|
||||||
write_to_file ("ctest.cpp",
|
|
||||||
"int main() {\n"
|
|
||||||
- " asm (\"mov $0,%%eax\\n cpuid\\n\" : : : \"%eax\");\n"
|
|
||||||
+ " asm (\"mov $0,%%eax\\n mov %%eax,(%%esi)\\n cpuid\\n\" : : : \"%eax\");\n"
|
|
||||||
" return 0;\n"
|
|
||||||
"}\n");
|
|
||||||
delete_file ("ctest.exe");
|
|
|
@ -1,5 +1,4 @@
|
||||||
lib/libdrawstuff.a
|
bin/ode-config
|
||||||
lib/libode.a
|
|
||||||
include/ode/collision.h
|
include/ode/collision.h
|
||||||
include/ode/collision_space.h
|
include/ode/collision_space.h
|
||||||
include/ode/collision_trimesh.h
|
include/ode/collision_trimesh.h
|
||||||
|
@ -21,4 +20,5 @@ include/ode/odecpp_old.h
|
||||||
include/ode/odemath.h
|
include/ode/odemath.h
|
||||||
include/ode/rotation.h
|
include/ode/rotation.h
|
||||||
include/ode/timer.h
|
include/ode/timer.h
|
||||||
|
lib/libode.a
|
||||||
@dirrm include/ode
|
@dirrm include/ode
|
||||||
|
|
Loading…
Add table
Reference in a new issue