Lines 1-9
Link Here
|
1 |
PORTNAME= ode |
1 |
PORTNAME= ode |
2 |
PORTVERSION= 0.13 |
2 |
DISTVERSION= 0.16.2 |
3 |
PORTREVISION= 4 |
|
|
4 |
PORTEPOCH= 1 |
3 |
PORTEPOCH= 1 |
5 |
CATEGORIES= devel |
4 |
CATEGORIES= devel |
6 |
MASTER_SITES= SF/opende/ODE/${PORTVERSION} |
5 |
MASTER_SITES= https://bitbucket.org/odedevs/${PORTNAME}/downloads/ |
7 |
|
6 |
|
8 |
MAINTAINER= acm@FreeBSD.org |
7 |
MAINTAINER= acm@FreeBSD.org |
9 |
COMMENT= Articulated rigid body dynamics library |
8 |
COMMENT= Articulated rigid body dynamics library |
Lines 12-52
WWW= https://www.ode.org/
Link Here
|
12 |
LICENSE= LGPL21 BSD3CLAUSE |
11 |
LICENSE= LGPL21 BSD3CLAUSE |
13 |
LICENSE_COMB= dual |
12 |
LICENSE_COMB= dual |
14 |
|
13 |
|
15 |
USES= tar:bzip2 libtool pathfix |
14 |
USES= cmake:testing |
16 |
GNU_CONFIGURE= yes |
|
|
17 |
CONFIGURE_ARGS= --enable-shared |
18 |
TEST_TARGET= check |
19 |
USE_CXXSTD= c++03 |
20 |
|
15 |
|
21 |
OPTIONS_DEFINE= GIMPACT DOUBLE OU DEMOS |
16 |
CMAKE_OFF= ODE_WITH_TESTS |
|
|
17 |
CMAKE_TESTING_ON= ODE_WITH_TESTS |
22 |
|
18 |
|
23 |
GIMPACT_DESC= Enable gimpact instead of opcode support |
19 |
CXXFLAGS+= -Wno-c++11-narrowing |
24 |
DOUBLE_DESC= Enable double precision (BROKEN with GIMPACT) |
|
|
25 |
OU_DESC= Enable Thread-local storage (Experimental) |
26 |
DEMOS_DESC= Build demos (not installed) |
27 |
|
20 |
|
28 |
GIMPACT_PREVENTS= DOUBLE |
21 |
OPTIONS_DEFINE= DEMOS GIMPACT LIBCCD OU TRIMESH # it looks like TRIMESH isn't defined but is needed because ODE_NO_TRIMESH is never defined otherwise |
29 |
GIMPACT_CONFIGURE_ON= --with-trimesh=gimpact |
22 |
OPTIONS_DEFAULT= LIBCCD TRIMESH |
30 |
GIMPACT_CONFIGURE_OFF= --with-trimesh=opcode |
23 |
|
31 |
DOUBLE_CONFIGURE_ENABLE=double-precision |
24 |
DEMOS_DESC= Build demos (not installed) |
32 |
OU_CONFIGURE_ENABLE= ou |
25 |
DEMOS_CMAKE_BOOL= ODE_WITH_DEMOS |
33 |
DEMOS_CONFIGURE_ENABLE= demos |
|
|
34 |
DEMOS_USES= gl localbase pkgconfig |
26 |
DEMOS_USES= gl localbase pkgconfig |
35 |
DEMOS_USE= GL=gl,glu |
27 |
DEMOS_USE= GL=gl,glu |
36 |
|
28 |
|
37 |
post-patch: |
29 |
GIMPACT_DESC= Enable gimpact instead of opcode support |
38 |
@${REINPLACE_CMD} -e '/if test/ s|==|=|' -e 's|^\( *CFLAGS=\)|#\1|;' \ |
30 |
GIMPACT_CMAKE_BOOL= ODE_WITH_GIMPACT |
39 |
-e 's|^\( *CPPFLAGS=\)|#\1|' -e 's|^\( *CXXFLAGS=\)|#\1|' \ |
31 |
GIMPACT_PREVENTS= TRIMESH |
40 |
-e 's|CPPFLAGS+=" |CPPFLAGS="$$CPPFLAGS |' \ |
32 |
|
41 |
${WRKSRC}/configure |
33 |
LIBCCD_DESC= Use libccd for handling some collision tests absent in ODE |
42 |
@${FIND} ${WRKSRC} -type f -name Makefile.in -print0 | ${XARGS} -0 ${REINPLACE_CMD} \ |
34 |
LIBCCD_CMAKE_BOOL= ODE_WITH_LIBCCD ODE_WITH_LIBCCD_SYSTEM |
43 |
-e '/^DEFAULT_INCLUDES/ s|$$| -I$$(top_builddir)/include|' \ |
35 |
LIBCCD_CXXFLAGS= -I${WRKSRC}/libccd/src/custom |
44 |
-e '/CFLAGS/ s|-O[12]||' |
36 |
LIBCCD_LIB_DEPENDS= libccd.so:math/libccd |
45 |
@${REINPLACE_CMD} 's|<malloc.h>|<stdlib.h>|g' \ |
37 |
|
46 |
${WRKSRC}/build/config-default.h ${WRKSRC}/ou/src/ou/malloc.cpp |
38 |
OU_DESC= Enable Thread-local storage (Experimental) |
47 |
|
39 |
OU_CMAKE_BOOL= ODE_WITH_OU |
48 |
post-install: |
40 |
|
49 |
${SED} -e '/PACKAGE/ s|^|//|; /VERSION/ s|^|//|' ${WRKSRC}/ode/src/config.h \ |
41 |
TRIMESH_DESC= Build with trimesh |
50 |
> ${STAGEDIR}${PREFIX}/include/ode/config.h |
42 |
TRIMESH_CMAKE_OFF= -DODE_NO_TRIMESH=ON |
51 |
|
43 |
|
52 |
.include <bsd.port.mk> |
44 |
.include <bsd.port.mk> |