|
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> |