From aa88fcbc8a3844bedb1cead1d8f00a98aed9f0ac Mon Sep 17 00:00:00 2001 From: jasper Date: Mon, 3 Aug 2009 14:14:10 +0000 Subject: [PATCH] import ode 0.11.1 ODE is an open source, high performance library for simulating rigid body dynamics. It is fully featured, stable, mature and platform independent with an easy to use C/C++ API. It has advanced joint types and integrated collision detection with friction. ODE is useful for simulating vehicles, objects in virtual reality environments and virtual creatures. It is currently used in many computer games, 3D authoring tools and simulation tools. original port by jonathan armani, with tweaks by me --- devel/ode/Makefile | 33 +++++++++++++++++++++++++++++++ devel/ode/distinfo | 5 +++++ devel/ode/patches/patch-configure | 32 ++++++++++++++++++++++++++++++ devel/ode/pkg/DESCR | 7 +++++++ devel/ode/pkg/PFRAG.shared | 2 ++ devel/ode/pkg/PLIST | 32 ++++++++++++++++++++++++++++++ 6 files changed, 111 insertions(+) create mode 100644 devel/ode/Makefile create mode 100644 devel/ode/distinfo create mode 100644 devel/ode/patches/patch-configure create mode 100644 devel/ode/pkg/DESCR create mode 100644 devel/ode/pkg/PFRAG.shared create mode 100644 devel/ode/pkg/PLIST diff --git a/devel/ode/Makefile b/devel/ode/Makefile new file mode 100644 index 00000000000..ddcee334ad5 --- /dev/null +++ b/devel/ode/Makefile @@ -0,0 +1,33 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/08/03 14:14:10 jasper Exp $ + +COMMENT = high performance library for simulating rigid body dynamics +SHARED_LIBS += ode 0.0 # .2.1 +DISTNAME = ode-0.11.1 +CATEGORIES = devel + +MAINTAINER = Jonathan Armani +HOMEPAGE = http://www.ode.org/ + +MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=opende/} + +# LGPLv2.1 +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM =Yes +PERMIT_DISTFILES_FTP = Yes + +WANTLIB = m pthread + +USE_LIBTOOL= Yes + +CONFIGURE_STYLE = gnu +CONFIGURE_ARGS = --enable-shared +CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include" \ + LDFLAGS="-L${X11BASE}/lib" + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ode + ${INSTALL_DATA} ${WRKSRC}/LICENSE.TXT ${PREFIX}/share/doc/ode/LICENSE + ${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/doc/ode/README + +.include diff --git a/devel/ode/distinfo b/devel/ode/distinfo new file mode 100644 index 00000000000..5710e9f0757 --- /dev/null +++ b/devel/ode/distinfo @@ -0,0 +1,5 @@ +MD5 (ode-0.11.1.tar.gz) = X3lii3sQp6WQknWaWvd3dQ== +RMD160 (ode-0.11.1.tar.gz) = 1SvYA72MdXAP64S3iyQHCSuI0aU= +SHA1 (ode-0.11.1.tar.gz) = 1zBxApAaEs2P/4/WAb+2PrIBUTM= +SHA256 (ode-0.11.1.tar.gz) = TCJbdtV6WoCUZT+6SPMWmsGpliLzzpjyvlX71aG3ZRk= +SIZE (ode-0.11.1.tar.gz) = 1904165 diff --git a/devel/ode/patches/patch-configure b/devel/ode/patches/patch-configure new file mode 100644 index 00000000000..5e86f596456 --- /dev/null +++ b/devel/ode/patches/patch-configure @@ -0,0 +1,32 @@ +$OpenBSD: patch-configure,v 1.1.1.1 2009/08/03 14:14:10 jasper Exp $ + +s/-lpthread/-pthread/ + +--- configure.orig Mon Jul 27 12:51:52 2009 ++++ configure Mon Jul 27 12:52:20 2009 +@@ -19074,13 +19074,13 @@ else + fi + + +-{ $as_echo "$as_me:$LINENO: checking for main in -lpthread" >&5 +-$as_echo_n "checking for main in -lpthread... " >&6; } ++{ $as_echo "$as_me:$LINENO: checking for main in -pthread" >&5 ++$as_echo_n "checking for main in -pthread... " >&6; } + if test "${ac_cv_lib_pthread_main+set}" = set; then + $as_echo_n "(cached) " >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lpthread $LIBS" ++LIBS="-pthread $LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF +@@ -19134,7 +19134,7 @@ fi + { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 + $as_echo "$ac_cv_lib_pthread_main" >&6; } + if test "x$ac_cv_lib_pthread_main" = x""yes; then +- LIBS="$LIBS -lpthread" ++ LIBS="$LIBS -pthread" + fi + + diff --git a/devel/ode/pkg/DESCR b/devel/ode/pkg/DESCR new file mode 100644 index 00000000000..815a235d7f3 --- /dev/null +++ b/devel/ode/pkg/DESCR @@ -0,0 +1,7 @@ +ODE is an open source, high performance library for simulating rigid +body dynamics. It is fully featured, stable, mature and platform +independent with an easy to use C/C++ API. It has advanced joint types +and integrated collision detection with friction. ODE is useful for +simulating vehicles, objects in virtual reality environments and virtual +creatures. It is currently used in many computer games, 3D authoring +tools and simulation tools. diff --git a/devel/ode/pkg/PFRAG.shared b/devel/ode/pkg/PFRAG.shared new file mode 100644 index 00000000000..47dcdc0b757 --- /dev/null +++ b/devel/ode/pkg/PFRAG.shared @@ -0,0 +1,2 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2009/08/03 14:14:10 jasper Exp $ +@lib lib/libode.so.${LIBode_VERSION} diff --git a/devel/ode/pkg/PLIST b/devel/ode/pkg/PLIST new file mode 100644 index 00000000000..363d0e5a08a --- /dev/null +++ b/devel/ode/pkg/PLIST @@ -0,0 +1,32 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2009/08/03 14:14:10 jasper Exp $ +bin/ode-config +include/ode/ +include/ode/collision.h +include/ode/collision_space.h +include/ode/collision_trimesh.h +include/ode/common.h +include/ode/compatibility.h +include/ode/contact.h +include/ode/error.h +include/ode/export-dif.h +include/ode/mass.h +include/ode/matrix.h +include/ode/memory.h +include/ode/misc.h +include/ode/objects.h +include/ode/ode.h +include/ode/odeconfig.h +include/ode/odecpp.h +include/ode/odecpp_collision.h +include/ode/odeinit.h +include/ode/odemath.h +include/ode/rotation.h +include/ode/timer.h +lib/libode.a +lib/libode.la +%%SHARED%% +lib/pkgconfig/ +lib/pkgconfig/ode.pc +share/doc/ode/ +share/doc/ode/LICENSE +share/doc/ode/README