View | Details | Raw Unified | Return to bug 193086
Collapse All | Expand All

(-)devel/ode/Makefile (-14 / +6 lines)
Lines 2-9 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	ode
4
PORTNAME=	ode
5
PORTVERSION=	0.11.1
5
PORTVERSION=	0.13
6
PORTREVISION=	1
7
PORTEPOCH=	1
6
PORTEPOCH=	1
8
CATEGORIES=	devel
7
CATEGORIES=	devel
9
MASTER_SITES=	SF/opende/ODE/${PORTVERSION}
8
MASTER_SITES=	SF/opende/ODE/${PORTVERSION}
Lines 18-34 Link Here
18
USE_GL=		yes
17
USE_GL=		yes
19
GNU_CONFIGURE=	yes
18
GNU_CONFIGURE=	yes
20
19
21
OPTIONS_DEFINE=		GIMPACT GYROSCOPIC DOUBLE OU
20
OPTIONS_DEFINE=		GIMPACT DOUBLE OU
22
OPTIONS_DEFAULT=	GYROSCOPIC
23
21
24
GIMPACT_DESC=		Enable gimpact instead of opcode support
22
GIMPACT_DESC=		Enable gimpact instead of opcode support
25
GYROSCOPIC_DESC=	Configure ODE to work with gyroscopic term
26
DOUBLE_DESC=		Enable double precision (BROKEN with GIMPACT)
23
DOUBLE_DESC=		Enable double precision (BROKEN with GIMPACT)
27
OU_DESC=		Enable Thread-local storage (Experimental)
24
OU_DESC=		Enable Thread-local storage (Experimental)
28
25
29
GIMPACT_CONFIGURE_ON=	--with-trimesh=gimpact
26
GIMPACT_CONFIGURE_ON=	--with-trimesh=gimpact
30
GIMPACT_CONFIGURE_OFF=	--with-trimesh=opcode
27
GIMPACT_CONFIGURE_OFF=	--with-trimesh=opcode
31
GYROSCOPIC_CONFIGURE_ENABLE=	gyroscopic
32
DOUBLE_CONFIGURE_ENABLE=	double-precision
28
DOUBLE_CONFIGURE_ENABLE=	double-precision
33
OU_CONFIGURE_ENABLE=		ou
29
OU_CONFIGURE_ENABLE=		ou
34
30
Lines 36-45 Link Here
36
32
37
.include <bsd.port.pre.mk>
33
.include <bsd.port.pre.mk>
38
34
39
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
40
CFLAGS+=	-fPIC -DPIC
41
.endif
42
43
.if ${PORT_OPTIONS:MGIMPACT} && ${PORT_OPTIONS:MDOUBLE}
35
.if ${PORT_OPTIONS:MGIMPACT} && ${PORT_OPTIONS:MDOUBLE}
44
IGNORE=		currently double precision is not supported by gimpact
36
IGNORE=		currently double precision is not supported by gimpact
45
.endif
37
.endif
Lines 49-65 Link Here
49
		-e 's|^\( *CPPFLAGS=\)|#\1|' -e 's|^\( *CXXFLAGS=\)|#\1|' \
41
		-e 's|^\( *CPPFLAGS=\)|#\1|' -e 's|^\( *CXXFLAGS=\)|#\1|' \
50
		-e 's|CPPFLAGS+=" |CPPFLAGS="$$CPPFLAGS |' \
42
		-e 's|CPPFLAGS+=" |CPPFLAGS="$$CPPFLAGS |' \
51
		${WRKSRC}/configure
43
		${WRKSRC}/configure
52
	@${REINPLACE_CMD} -e 's|__isnanf||g; s|__isnan||g' \
53
		${WRKSRC}/configure
54
	@${REINPLACE_CMD} -e '/^traplib_PROGRAMS / d' ${WRKSRC}/ode/src/Makefile.in
55
	@${FIND} ${WRKSRC} -type f -name Makefile.in -print0 | ${XARGS} -0 ${REINPLACE_CMD} \
44
	@${FIND} ${WRKSRC} -type f -name Makefile.in -print0 | ${XARGS} -0 ${REINPLACE_CMD} \
56
		-e '/^DEFAULT_INCLUDES/ s|$$| -I$$(top_builddir)/include|' \
45
		-e '/^DEFAULT_INCLUDES/ s|$$| -I$$(top_builddir)/include|' \
57
		-e '/CFLAGS/ s|-O[12]||'
46
		-e '/CFLAGS/ s|-O[12]||'
58
	@${FIND} ${WRKSRC} -type f -print0 | ${XARGS} -0 ${REINPLACE_CMD} \
47
	@${FIND} ${WRKSRC} -type f -print0 | ${XARGS} -0 ${REINPLACE_CMD} \
59
		-i "" -e 's|malloc.h|stdlib.h|g'
48
		-i "" -e 's|<malloc.h>|<stdlib.h>|g'
60
49
61
post-install:
50
post-install:
62
	${SED} -e '/PACKAGE/ s|^|//|; /VERSION/ s|^|//|' ${WRKSRC}/ode/src/config.h \
51
	${SED} -e '/PACKAGE/ s|^|//|; /VERSION/ s|^|//|' ${WRKSRC}/ode/src/config.h \
63
		> ${STAGEDIR}${PREFIX}/include/ode/config.h
52
		> ${STAGEDIR}${PREFIX}/include/ode/config.h
64
53
54
regression-test: build
55
	@(cd ${WRKSRC} && ${MAKE} check)
56
65
.include <bsd.port.post.mk>
57
.include <bsd.port.post.mk>
(-)devel/ode/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (ode-0.11.1.tar.bz2) = 877884a86a3d53f3c5f2e35fbd8a3dc23c20249f0636c76f6ef41f6bf57a03a1
1
SHA256 (ode-0.13.tar.bz2) = 34ce3e236e313bf109a0cb5546d2fca462aed99f29a42e62bc1463b803c31ef9
2
SIZE (ode-0.11.1.tar.bz2) = 1720088
2
SIZE (ode-0.13.tar.bz2) = 2008288
(-)devel/ode/pkg-plist (+4 lines)
Lines 19-25 Link Here
19
include/ode/odecpp_collision.h
19
include/ode/odecpp_collision.h
20
include/ode/odeinit.h
20
include/ode/odeinit.h
21
include/ode/odemath.h
21
include/ode/odemath.h
22
include/ode/odemath_legacy.h
23
include/ode/precision.h
22
include/ode/rotation.h
24
include/ode/rotation.h
25
include/ode/threading.h
26
include/ode/threading_impl.h
23
include/ode/timer.h
27
include/ode/timer.h
24
lib/libode.a
28
lib/libode.a
25
libdata/pkgconfig/ode.pc
29
libdata/pkgconfig/ode.pc

Return to bug 193086