Lines 6-61
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= ode |
8 |
PORTNAME= ode |
9 |
PORTVERSION= 0.5 |
9 |
PORTVERSION= 0.6 |
10 |
PORTREVISION= 1 |
|
|
11 |
PORTEPOCH= 1 |
10 |
PORTEPOCH= 1 |
12 |
CATEGORIES= devel |
11 |
CATEGORIES= devel |
13 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
14 |
MASTER_SITE_SUBDIR= opende |
13 |
MASTER_SITE_SUBDIR= opende |
15 |
EXTRACT_SUFX= .tgz |
14 |
DISTNAME= ${PORTNAME}-src-${PORTVERSION} |
16 |
|
15 |
|
17 |
MAINTAINER= dyeske@yahoo.com |
16 |
MAINTAINER= dyeske@yahoo.com |
18 |
COMMENT= Articulated rigid body dynamics library |
17 |
COMMENT= Articulated rigid body dynamics library |
19 |
|
18 |
|
20 |
CONFLICTS= ode-devel-[0-9].* |
19 |
CONFLICTS= ode-devel-[0-9].* |
21 |
|
20 |
|
|
|
21 |
USE_ZIP= yes |
22 |
USE_X_PREFIX= yes |
22 |
USE_X_PREFIX= yes |
23 |
USE_GL= yes |
23 |
USE_GL= yes |
24 |
USE_GMAKE= yes |
24 |
USE_GMAKE= yes |
|
|
25 |
GNU_CONFIGURE= yes |
25 |
|
26 |
|
26 |
OPTIONS= OPCODE "Enable code required by TriList (trimesh) class" on |
27 |
CONFIGURE_ARGS= --program-prefix= |
|
|
28 |
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \ |
29 |
LIBS="-L${X11BASE}/lib" |
30 |
|
31 |
OPTIONS= OPCODE "Enable code required by TriList (trimesh) class" on \ |
32 |
GYROSCOPIC "Configure ODE to work with gyroscopic term" on \ |
33 |
DOUBLE "Enable double precision" off |
34 |
|
35 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
27 |
|
36 |
|
28 |
.include <bsd.port.pre.mk> |
37 |
.include <bsd.port.pre.mk> |
29 |
|
38 |
|
30 |
post-patch: |
39 |
.if defined(WITHOUT_OPCODE) |
31 |
@${REINPLACE_CMD} -e \ |
40 |
CONFIGURE_ARGS+= --disable-opcode |
32 |
's|malloc.h|stdlib.h|g' \ |
41 |
.endif |
33 |
${WRKSRC}/configurator.c |
42 |
|
34 |
|
43 |
.if defined(WITHOUT_GYROSCOPIC) |
35 |
@${REINPLACE_CMD} -e \ |
44 |
CONFIGURE_ARGS+= --disable-gyroscopic |
36 |
's|g++|${CXX}|; \ |
45 |
.endif |
37 |
s|-Wall||g; \ |
46 |
|
38 |
s|-L/usr/X11/lib|-lXext|; \ |
47 |
.if defined(WITH_DOUBLE) |
39 |
s|-L/usr/lib/X11R6||; \ |
48 |
CONFIGURE_ARGS+= --enable-double-precision |
40 |
s|-L/usr/lib/X11||; \ |
|
|
41 |
s|-L/usr/X11R6/lib|-L${X11BASE}/lib|; \ |
42 |
s|-fno-rtti||; \ |
43 |
s|-ffast-math|${CXXFLAGS} -I${X11BASE}/include|' \ |
44 |
${WRKSRC}/config/makefile.unix-gcc |
45 |
.if !defined(WITHOUT_OPCODE) |
46 |
@${REINPLACE_CMD} -e \ |
47 |
's/^#OPCODE_DIRECTORY/OPCODE_DIRECTORY/' \ |
48 |
${WRKSRC}/config/user-settings |
49 |
.endif |
49 |
.endif |
50 |
|
50 |
|
51 |
do-configure: |
51 |
post-patch: |
52 |
cd ${WRKSRC} ; ${GMAKE} configure |
52 |
@${REINPLACE_CMD} -e '/if test/ s|==|=|' -e 's|^\( *CFLAGS=\)|#\1|;' \ |
53 |
@${REINPLACE_CMD} -e '/include.*values.h/d' ${WRKSRC}/include/ode/config.h |
53 |
-e 's|^\( *CPPFLAGS=\)|#\1|' -e 's|^\( *CXXFLAGS=\)|#\1|' \ |
54 |
|
54 |
-e 's|__isnanf||g; s|__isnan||g' -e 's|-lpthread|-pthread|g' \ |
55 |
do-install: |
55 |
${WRKSRC}/configure |
56 |
@${INSTALL_DATA} ${WRKSRC}/lib/libode.a ${PREFIX}/lib |
56 |
@${REINPLACE_CMD} -e '/^traplib_PROGRAMS / d' ${WRKSRC}/ode/src/Makefile.in |
57 |
@${INSTALL_DATA} ${WRKSRC}/lib/libdrawstuff.a ${PREFIX}/lib |
57 |
@${FIND} ${WRKSRC} -type f -name Makefile.in -print0 | xargs -0 ${REINPLACE_CMD} \ |
58 |
@${MKDIR} ${PREFIX}/include/ode |
58 |
-e '/^DEFAULT_INCLUDES/ s|$$| -I$$(top_builddir)/include|' \ |
59 |
@${INSTALL_DATA} ${WRKSRC}/include/ode/*.h ${PREFIX}/include/ode |
59 |
-e '/CFLAGS/ s|-O[12]||' |
60 |
|
60 |
|
61 |
.include <bsd.port.post.mk> |
61 |
.include <bsd.port.post.mk> |