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

(-)Makefile (-29 / +15 lines)
Lines 10-34 Link Here
10
MAINTAINER=	acm@FreeBSD.org
10
MAINTAINER=	acm@FreeBSD.org
11
COMMENT=	Articulated rigid body dynamics library
11
COMMENT=	Articulated rigid body dynamics library
12
12
13
LICENSE=	LGPL21 BSD3CLAUSE
14
LICENSE_COMB=	dual
15
13
CONFLICTS=	ode-devel-[0-9].*
16
CONFLICTS=	ode-devel-[0-9].*
14
17
15
USE_BZIP2=	yes
18
USES=		tar:bzip2 gmake libtool
16
USE_GL=		yes
19
USE_GL=		yes
17
USE_GMAKE=	yes
18
GNU_CONFIGURE=	yes
20
GNU_CONFIGURE=	yes
19
21
20
CONFIGURE_ENV=	LIBS="-L${LOCALBASE}/lib"
22
OPTIONS_DEFINE=		GIMPACT GYROSCOPIC DOUBLE OU
23
OPTIONS_DEFAULT=	GYROSCOPIC
21
24
22
OPTIONS_DEFINE=	GIMPACT GYROSCOPIC DOUBLE OU
23
OPTIONS_DEFAULT=	GYROSCOPIC
24
GIMPACT_DESC=		Enable gimpact instead of opcode support
25
GIMPACT_DESC=		Enable gimpact instead of opcode support
25
GYROSCOPIC_DESC=	Configure ODE to work with gyroscopic term
26
GYROSCOPIC_DESC=	Configure ODE to work with gyroscopic term
26
DOUBLE_DESC=		Enable double precision (BROKEN with GIMPACT)
27
DOUBLE_DESC=		Enable double precision (BROKEN with GIMPACT)
27
OU_DESC=		Enable Thread-local storage (Experimental)
28
OU_DESC=		Enable Thread-local storage (Experimental)
28
29
30
GIMPACT_CONFIGURE_ON=	--with-trimesh=gimpact
31
GIMPACT_CONFIGURE_OFF=	--with-trimesh=opcode
32
GYROSCOPIC_CONFIGURE_ENABLE=	gyroscopic
33
DOUBLE_CONFIGURE_ENABLE=	double-precision
34
OU_CONFIGURE_ENABLE=		ou
35
29
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
36
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
30
37
31
NO_STAGE=	yes
32
.include <bsd.port.pre.mk>
38
.include <bsd.port.pre.mk>
33
39
34
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
40
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
Lines 35-64 Link Here
35
CFLAGS+=	-fPIC -DPIC
41
CFLAGS+=	-fPIC -DPIC
36
.endif
42
.endif
37
43
38
.if ${PORT_OPTIONS:MGIMPACT} && defined(WITH_DOUBLE)
44
.if ${PORT_OPTIONS:MGIMPACT} && ${PORT_OPTIONS:MDOUBLE}
39
IGNORE=	currently double precision is not supported by gimpact
45
IGNORE=		currently double precision is not supported by gimpact
40
.endif
46
.endif
41
47
42
.if ! ${PORT_OPTIONS:MGIMPACT}
43
CONFIGURE_ARGS+=	--with-trimesh=opcode
44
.else
45
CONFIGURE_ARGS+=	--with-trimesh=gimpact
46
.endif
47
48
.if ! ${PORT_OPTIONS:MGYROSCOPIC}
49
CONFIGURE_ARGS+=	--disable-gyroscopic
50
.endif
51
52
.if ${PORT_OPTIONS:MDOUBLE}
53
CONFIGURE_ARGS+=	--enable-double-precision
54
.endif
55
56
.if ${PORT_OPTIONS:MOU}
57
CONFIGURE_ARGS+=	--enable-ou
58
.else
59
CONFIGURE_ARGS+=	--disable-ou
60
.endif
61
62
post-patch:
48
post-patch:
63
	@${REINPLACE_CMD} -e '/if test/ s|==|=|' -e 's|^\( *CFLAGS=\)|#\1|;' \
49
	@${REINPLACE_CMD} -e '/if test/ s|==|=|' -e 's|^\( *CFLAGS=\)|#\1|;' \
64
		-e 's|^\( *CPPFLAGS=\)|#\1|' -e 's|^\( *CXXFLAGS=\)|#\1|' \
50
		-e 's|^\( *CPPFLAGS=\)|#\1|' -e 's|^\( *CXXFLAGS=\)|#\1|' \
Lines 75-80 Link Here
75
61
76
post-install:
62
post-install:
77
	${SED} -e '/PACKAGE/ s|^|//|; /VERSION/ s|^|//|' ${WRKSRC}/ode/src/config.h \
63
	${SED} -e '/PACKAGE/ s|^|//|; /VERSION/ s|^|//|' ${WRKSRC}/ode/src/config.h \
78
		> ${PREFIX}/include/ode/config.h
64
		> ${STAGEDIR}${PREFIX}/include/ode/config.h
79
65
80
.include <bsd.port.post.mk>
66
.include <bsd.port.post.mk>
(-)pkg-plist (-1 lines)
Lines 22-27 Link Here
22
include/ode/rotation.h
22
include/ode/rotation.h
23
include/ode/timer.h
23
include/ode/timer.h
24
lib/libode.a
24
lib/libode.a
25
lib/libode.la
26
libdata/pkgconfig/ode.pc
25
libdata/pkgconfig/ode.pc
27
@dirrm include/ode
26
@dirrm include/ode

Return to bug 189438