View | Details | Raw Unified | Return to bug 255111 | Differences between
and this patch

Collapse All | Expand All

(-)b/devel/ode/Makefile (-26 / +14 lines)
Lines 1-11 Link Here
1
# Created by: David Yeske <dyeske@yahoo.com>
1
# Created by: David Yeske <dyeske@yahoo.com>
2
2
3
PORTNAME=	ode
3
PORTNAME=	ode
4
PORTVERSION=	0.13
4
DISTVERSION=	0.16.2
5
PORTREVISION=	4
6
PORTEPOCH=	1
5
PORTEPOCH=	1
7
CATEGORIES=	devel
6
CATEGORIES=	devel
8
MASTER_SITES=	SF/opende/ODE/${PORTVERSION}
7
MASTER_SITES=	https://bitbucket.org/odedevs/ode/downloads/
9
8
10
MAINTAINER=	acm@FreeBSD.org
9
MAINTAINER=	acm@FreeBSD.org
11
COMMENT=	Articulated rigid body dynamics library
10
COMMENT=	Articulated rigid body dynamics library
Lines 13-23 COMMENT= Articulated rigid body dynamics library Link Here
13
LICENSE=	LGPL21 BSD3CLAUSE
12
LICENSE=	LGPL21 BSD3CLAUSE
14
LICENSE_COMB=	dual
13
LICENSE_COMB=	dual
15
14
16
USES=		gl tar:bzip2 libtool pathfix
15
USES=		cmake:insource # https://bitbucket.org/odedevs/ode/issues/73/0162-fails-with-out-of-source-build
17
USE_GL=		yes
16
18
GNU_CONFIGURE=	yes
17
CMAKE_ON=	ODE_WITH_LIBCCD # ODE_WITH_LIBCCD_SYSTEM fails: https://bitbucket.org/odedevs/ode/issues/75/0162-fails-when-both-ode_with_libccd
19
CONFIGURE_ARGS=	--enable-shared
18
CMAKE_OFF=	ODE_WITH_DEMOS ODE_WITH_TESTS
20
TEST_TARGET=	check
21
19
22
OPTIONS_DEFINE=		GIMPACT DOUBLE OU
20
OPTIONS_DEFINE=		GIMPACT DOUBLE OU
23
21
Lines 25-34 GIMPACT_DESC= Enable gimpact instead of opcode support Link Here
25
DOUBLE_DESC=		Enable double precision (BROKEN with GIMPACT)
23
DOUBLE_DESC=		Enable double precision (BROKEN with GIMPACT)
26
OU_DESC=		Enable Thread-local storage (Experimental)
24
OU_DESC=		Enable Thread-local storage (Experimental)
27
25
28
GIMPACT_CONFIGURE_ON=	--with-trimesh=gimpact
26
GIMPACT_CMAKE_BOOL=	ODE_WITH_GIMPACT
29
GIMPACT_CONFIGURE_OFF=	--with-trimesh=opcode
27
DOUBLE_CMAKE_BOOL=	ODE_DOUBLE_PRECISION
30
DOUBLE_CONFIGURE_ENABLE=	double-precision
28
OU_CMAKE_BOOL=		ODE_WITH_OU
31
OU_CONFIGURE_ENABLE=		ou
32
29
33
.include <bsd.port.options.mk>
30
.include <bsd.port.options.mk>
34
31
Lines 36-54 OU_CONFIGURE_ENABLE= ou Link Here
36
IGNORE=		currently double precision is not supported by gimpact
33
IGNORE=		currently double precision is not supported by gimpact
37
.endif
34
.endif
38
35
39
post-patch:
36
do-test: # tests fail to build: https://bitbucket.org/odedevs/ode/issues/76/tests-fail-to-build-cannot-open-output
40
	@${REINPLACE_CMD} -e '/if test/ s|==|=|' -e 's|^\( *CFLAGS=\)|#\1|;' \
37
	@cd ${BUILD_WRKSRC} && \
41
		-e 's|^\( *CPPFLAGS=\)|#\1|' -e 's|^\( *CXXFLAGS=\)|#\1|' \
38
		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DODE_WITH_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \
42
		-e 's|CPPFLAGS+=" |CPPFLAGS="$$CPPFLAGS |' \
39
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
43
		${WRKSRC}/configure
40
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
44
	@${FIND} ${WRKSRC} -type f -name Makefile.in -print0 | ${XARGS} -0 ${REINPLACE_CMD} \
45
		-e '/^DEFAULT_INCLUDES/ s|$$| -I$$(top_builddir)/include|' \
46
		-e '/CFLAGS/ s|-O[12]||'
47
	@${REINPLACE_CMD} 's|<malloc.h>|<stdlib.h>|g' \
48
		${WRKSRC}/build/config-default.h ${WRKSRC}/ou/src/ou/malloc.cpp
49
50
post-install:
51
	${SED} -e '/PACKAGE/ s|^|//|; /VERSION/ s|^|//|' ${WRKSRC}/ode/src/config.h \
52
		> ${STAGEDIR}${PREFIX}/include/ode/config.h
53
41
54
.include <bsd.port.mk>
42
.include <bsd.port.mk>
(-)b/devel/ode/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (ode-0.13.tar.bz2) = 34ce3e236e313bf109a0cb5546d2fca462aed99f29a42e62bc1463b803c31ef9
1
TIMESTAMP = 1618563350
2
SIZE (ode-0.13.tar.bz2) = 2008288
2
SHA256 (ode-0.16.2.tar.gz) = b26aebdcb015e2d89720ef48e0cb2e8a3ca77915f89d853893e7cc861f810f22
3
SIZE (ode-0.16.2.tar.gz) = 2627992
(-)b/devel/ode/pkg-descr (-1 / +1 lines)
Lines 4-7 and moving objects in VR environments. It is fast, flexible, robust Link Here
4
and platform independent, with advanced joints, contact with friction,
4
and platform independent, with advanced joints, contact with friction,
5
and built-in collision detection.
5
and built-in collision detection.
6
6
7
WWW: http://www.ode.org/
7
WWW: https://www.ode.org/
(-)b/devel/ode/pkg-plist (-4 / +8 lines)
Lines 4-15 include/ode/collision_space.h Link Here
4
include/ode/collision_trimesh.h
4
include/ode/collision_trimesh.h
5
include/ode/common.h
5
include/ode/common.h
6
include/ode/compatibility.h
6
include/ode/compatibility.h
7
include/ode/config.h
8
include/ode/contact.h
7
include/ode/contact.h
8
include/ode/cooperative.h
9
include/ode/error.h
9
include/ode/error.h
10
include/ode/export-dif.h
10
include/ode/export-dif.h
11
include/ode/mass.h
11
include/ode/mass.h
12
include/ode/matrix.h
12
include/ode/matrix.h
13
include/ode/matrix_coop.h
13
include/ode/memory.h
14
include/ode/memory.h
14
include/ode/misc.h
15
include/ode/misc.h
15
include/ode/objects.h
16
include/ode/objects.h
Lines 25-32 include/ode/rotation.h Link Here
25
include/ode/threading.h
26
include/ode/threading.h
26
include/ode/threading_impl.h
27
include/ode/threading_impl.h
27
include/ode/timer.h
28
include/ode/timer.h
28
lib/libode.a
29
include/ode/version.h
30
lib/cmake/ode-0.16.2/ode-config-version.cmake
31
lib/cmake/ode-0.16.2/ode-config.cmake
32
lib/cmake/ode-0.16.2/ode-export-%%CMAKE_BUILD_TYPE%%.cmake
33
lib/cmake/ode-0.16.2/ode-export.cmake
29
lib/libode.so
34
lib/libode.so
30
lib/libode.so.3
35
lib/libode.so.0.16.2
31
lib/libode.so.3.1.0
32
libdata/pkgconfig/ode.pc
36
libdata/pkgconfig/ode.pc
(-)b/devel/ode/files/patch-config.h.cmake.in (+11 lines)
Added Link Here
1
--- config.h.cmake.in.orig	2021-04-16 09:01:20 UTC
2
+++ config.h.cmake.in
3
@@ -67,7 +67,7 @@
4
 #define ODE_PLATFORM_PS3
5
 #elif defined(_MSC_VER) || defined(__CYGWIN32__) || defined(__MINGW32__)
6
 #define ODE_PLATFORM_WINDOWS
7
-#elif defined(__linux__)
8
+#elif defined(__linux__) || defined(__FreeBSD__)
9
 #define ODE_PLATFORM_LINUX
10
 #elif defined(__APPLE__) && defined(__MACH__)
11
 #define ODE_PLATFORM_OSX

Return to bug 255111