diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2007-10-19 17:07:19 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2007-10-19 17:07:19 +0000 |
commit | b1d77ab77024d7e63b79e24cc87594af448937ca (patch) | |
tree | f660c628b02c266ac5c64657c5a5ab49f9bafa21 /dev-games/ode | |
parent | Remove 'doc' use flag. (diff) | |
download | gentoo-2-b1d77ab77024d7e63b79e24cc87594af448937ca.tar.gz gentoo-2-b1d77ab77024d7e63b79e24cc87594af448937ca.tar.bz2 gentoo-2-b1d77ab77024d7e63b79e24cc87594af448937ca.zip |
version bump
(Portage version: 2.1.3.9)
Diffstat (limited to 'dev-games/ode')
-rw-r--r-- | dev-games/ode/ChangeLog | 8 | ||||
-rw-r--r-- | dev-games/ode/files/digest-ode-0.9 | 3 | ||||
-rw-r--r-- | dev-games/ode/files/ode-0.9-flags.patch | 45 | ||||
-rw-r--r-- | dev-games/ode/ode-0.9.ebuild | 92 |
4 files changed, 147 insertions, 1 deletions
diff --git a/dev-games/ode/ChangeLog b/dev-games/ode/ChangeLog index 28701518b580..036789cae821 100644 --- a/dev-games/ode/ChangeLog +++ b/dev-games/ode/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-games/ode # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-games/ode/ChangeLog,v 1.44 2007/09/06 07:30:39 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-games/ode/ChangeLog,v 1.45 2007/10/19 17:07:18 mr_bones_ Exp $ + +*ode-0.9 (19 Oct 2007) + + 19 Oct 2007; Michael Sterrett <mr_bones_@gentoo.org> + +files/ode-0.9-flags.patch, +ode-0.9.ebuild: + version bump 06 Sep 2007; Christian Faulhammer <opfer@gentoo.org> ode-0.8.ebuild: stable x86, bug 187093 diff --git a/dev-games/ode/files/digest-ode-0.9 b/dev-games/ode/files/digest-ode-0.9 new file mode 100644 index 000000000000..dd23d8c3211c --- /dev/null +++ b/dev-games/ode/files/digest-ode-0.9 @@ -0,0 +1,3 @@ +MD5 4c03759b76a0649a6d5108c8e172e1e4 ode-src-0.9.zip 2052825 +RMD160 e999fef770d664a57ffb2f71bf5351fbd84d5b17 ode-src-0.9.zip 2052825 +SHA256 460d0851b743b1f144ef2a8259004d6774504c95d08e9357a96a296111496feb ode-src-0.9.zip 2052825 diff --git a/dev-games/ode/files/ode-0.9-flags.patch b/dev-games/ode/files/ode-0.9-flags.patch new file mode 100644 index 000000000000..b7ac873188d3 --- /dev/null +++ b/dev-games/ode/files/ode-0.9-flags.patch @@ -0,0 +1,45 @@ +--- configure.in.orig 2007-10-19 13:00:54.000000000 -0400 ++++ configure.in 2007-10-19 13:01:14.000000000 -0400 +@@ -14,9 +14,6 @@ + + AM_INIT_AUTOMAKE(ODE,[$ODE_RELEASE]) + AM_CONFIG_HEADER(include/ode/config.h) +-dnl Set CFLAGS to zero, so that we avoid getting the gratis -g -O2 +-CFLAGS= +-CXXFLAGS= + AC_C_BIGENDIAN + AC_PATH_X + AC_PATH_XTRA +@@ -299,9 +296,6 @@ + release=$enableval,release=no) + if test "x$release" == xyes + then +- CFLAGS="$CFLAGS -fomit-frame-pointer -ffast-math" +- CPPFLAGS="$CPPFLAGS -fomit-frame-pointer -ffast-math" +- CXXFLAGS="$CXXFLAGS -fomit-frame-pointer -ffast-math" + AC_DEFINE(dNODEBUG,,[Disable debug output]) + fi + AC_MSG_RESULT($release) +@@ -310,12 +304,6 @@ + AC_ARG_ENABLE(debug,AC_HELP_STRING([--enable-debug], + [Add debug symbols to the library with -g]), + debug=$enableval,debug=yes) +-if test "x$debug" == xyes +-then +- CFLAGS="$CFLAGS -g" +- CPPFLAGS="$CPPFLAGS -g" +- CXXFLAGS="$CXXFLAGS -g" +-fi + AC_MSG_RESULT($debug) + + +@@ -431,9 +419,6 @@ + gprof=$enableval,gprof=no) + if test "$gprof" != no + then +- CFLAGS="-pg $CFLAGS" +- CPPFLAGS="-pg $CPPFLAGS" +- CXXFLAGS="-pg $CXXFLAGS" + AC_CHECK_LIB(gmon, main,[LIBS="$LIBS -lgmon"]) + AC_MSG_RESULT(enabled) + else diff --git a/dev-games/ode/ode-0.9.ebuild b/dev-games/ode/ode-0.9.ebuild new file mode 100644 index 000000000000..be133c5ecb04 --- /dev/null +++ b/dev-games/ode/ode-0.9.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-games/ode/ode-0.9.ebuild,v 1.1 2007/10/19 17:07:18 mr_bones_ Exp $ + +inherit eutils autotools + +DESCRIPTION="Open Dynamics Engine SDK" +HOMEPAGE="http://ode.org/" +SRC_URI="mirror://sourceforge/opende/${PN}-src-${PV}.zip" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="double-precision examples nogyroscopic noopcode" + +RDEPEND="examples? ( + virtual/opengl + virtual/glu + x11-libs/libXmu + x11-libs/libXi + )" +DEPEND="app-arch/unzip + virtual/opengl + virtual/glu + x11-libs/libXmu + x11-libs/libXi" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-flags.patch + eautoreconf + + sed -i \ + -e "s:../../drawstuff/textures:/usr/share/${PF}/examples:" \ + ode/demo/*.c* \ + || die "sed failed" + sed -i \ + -e "s/fn.path_to_textures = 0/fn.path_to_textures = \"\/usr\/share\/${PF}\/examples\"/" \ + drawstuff/dstest/dstest.cpp \ + || die "sed failed" + sed -i \ + -e "s/inline_[\t]*void[\t*]ResetCountDown/void ResetCountDown/" \ + OPCODE/OPC_TreeCollider.h \ + || die "sed failed" + sed -i \ + -e '/USE_SONAME_TRUE/s:\(\$(libdir)\):$(DESTDIR)\1:' \ + -e '/USE_SONAME_TRUE.*ldconfig/d' \ + -e '/USE_SONAME_TRUE.*ln -s/s:\$(DESTDIR)::' \ + Makefile.in \ + || die "sed failed" +} + +src_compile() { + econf \ + --disable-dependency-tracking \ + $(use_enable double-precision) \ + $(use_enable !noopcode opcode) \ + $(use_enable !nogyroscopic gyroscopic) \ + --enable-soname \ + --enable-release \ + || die + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "Install failed!" + dodoc CHANGELOG.txt README.txt + # Install API docs + dohtml docs/* + + if use examples; then + # install examples + exeinto /usr/share/${PF}/examples + cd ode/demo + doexe demo_I demo_basket demo_boxstack demo_buggy \ + demo_chain1 demo_chain2 demo_collision demo_convex_cd \ + demo_crash demo_cyl demo_cylvssphere demo_feedback \ + demo_friction demo_heightfield demo_hinge demo_jointPR \ + demo_joints demo_motor demo_moving_trimesh demo_ode \ + demo_plane2d demo_slider demo_space demo_space_stress \ + demo_step demo_trimesh + cd ../.. + doexe drawstuff/dstest/dstest + insinto /usr/share/${PF}/examples + doins ode/demo/*.{c,cpp,h} \ + drawstuff/textures/*.ppm \ + drawstuff/dstest/dstest.cpp \ + drawstuff/src/{drawstuff.cpp,internal.h,x11.cpp} + fi +} |