summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Bainbridge <chrb@gentoo.org>2005-11-12 20:12:02 +0000
committerChris Bainbridge <chrb@gentoo.org>2005-11-12 20:12:02 +0000
commit1851602fe9fca4a17d8826a16e55ac723e2314c9 (patch)
tree24093a2f6156afda75359b2557e6601390262846 /dev-games/ode
parentNew Package. Thanks to all people involved on bug #60542. Added two patches m... (diff)
downloadhistorical-1851602fe9fca4a17d8826a16e55ac723e2314c9.tar.gz
historical-1851602fe9fca4a17d8826a16e55ac723e2314c9.tar.bz2
historical-1851602fe9fca4a17d8826a16e55ac723e2314c9.zip
Added drawstuff headers to go with lib, request by Ulrich Hertlein.
Package-Manager: portage-2.0.51.22-r3
Diffstat (limited to 'dev-games/ode')
-rw-r--r--dev-games/ode/ChangeLog7
-rw-r--r--dev-games/ode/Manifest4
-rw-r--r--dev-games/ode/files/digest-ode-0.5-r41
-rw-r--r--dev-games/ode/ode-0.5-r4.ebuild72
4 files changed, 82 insertions, 2 deletions
diff --git a/dev-games/ode/ChangeLog b/dev-games/ode/ChangeLog
index a7074deed396..bb954cc6951c 100644
--- a/dev-games/ode/ChangeLog
+++ b/dev-games/ode/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-games/ode
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-games/ode/ChangeLog,v 1.16 2005/11/05 12:32:13 chrb Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-games/ode/ChangeLog,v 1.17 2005/11/12 20:12:02 chrb Exp $
+
+*ode-0.5-r4 (12 Nov 2005)
+
+ 12 Nov 2005; <chrb@gentoo.org> +ode-0.5-r4.ebuild:
+ Added drawstuff headers to go with lib, request by Ulrich Hertlein.
05 Nov 2005; <chrb@gentoo.org> ode-0.5-r3.ebuild:
fix for gcc-3.4
diff --git a/dev-games/ode/Manifest b/dev-games/ode/Manifest
index dd3629410359..f68cc3282b53 100644
--- a/dev-games/ode/Manifest
+++ b/dev-games/ode/Manifest
@@ -1,5 +1,7 @@
-MD5 be7ff2b9eea81e3241df591d0ec2c1e4 ChangeLog 3010
+MD5 ccc047470789fac31b88a6de3ab6e412 ChangeLog 3161
MD5 897a7d200c1e7b0159d465d3220c9eff metadata.xml 509
MD5 b72807f220ba74c2b6478a51c71605d5 ode-0.5-r3.ebuild 2029
+MD5 7ca369c91cc623ac439ab907b76295bf ode-0.5-r4.ebuild 2112
MD5 24a10f16623003a6f4c8df5d8a0c11f5 files/digest-ode-0.5-r3 57
+MD5 24a10f16623003a6f4c8df5d8a0c11f5 files/digest-ode-0.5-r4 57
MD5 396acb81503d05b97e7dffe8d6c0003e files/ode-0.5-PIC.patch 446
diff --git a/dev-games/ode/files/digest-ode-0.5-r4 b/dev-games/ode/files/digest-ode-0.5-r4
new file mode 100644
index 000000000000..017c61381927
--- /dev/null
+++ b/dev-games/ode/files/digest-ode-0.5-r4
@@ -0,0 +1 @@
+MD5 b33b21e04ee9661f27802b6b6c8eefd2 ode-0.5.tgz 1710720
diff --git a/dev-games/ode/ode-0.5-r4.ebuild b/dev-games/ode/ode-0.5-r4.ebuild
new file mode 100644
index 000000000000..5941136685c1
--- /dev/null
+++ b/dev-games/ode/ode-0.5-r4.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-games/ode/ode-0.5-r4.ebuild,v 1.1 2005/11/12 20:12:02 chrb Exp $
+
+inherit eutils
+
+DESCRIPTION="Open Dynamics Engine SDK"
+HOMEPAGE="http://ode.org/"
+SRC_URI="mirror://sourceforge/opende/${P}.tgz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="doc debug double-precision"
+
+DEPEND="virtual/x11
+ virtual/glu
+ virtual/opengl"
+
+config_use() {
+ use $1 && echo $2 || echo $3
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ echo 'C_FLAGS+=$(E_CFLAGS) -fPIC' >> config/makefile.unix-gcc
+ epatch "${FILESDIR}"/${P}-PIC.patch
+ sed -i -e "s/..\/..\/drawstuff\/textures/\/usr\/share\/${PF}\/examples/" ode/test/*.c*
+ sed -i -e "s/fn.path_to_textures = 0/fn.path_to_textures = \"\/usr\/share\/${PF}\/examples\"/" drawstuff/dstest/dstest.cpp
+ sed -i \
+ -e "s/#OPCODE_DIRECTORY/OPCODE_DIRECTORY/" \
+ -e "/^BUILD=/s:=.*:=$(config_use debug debug release):" \
+ -e "/^PRECISION=/s:=.*:=$(config_use double-precision DOUBLE SINGLE):" \
+ config/user-settings
+ sed -i -e "s/inline_[\t]*void[\t*]ResetCountDown/void ResetCountDown/" OPCODE/OPC_TreeCollider.h
+}
+
+src_compile() {
+ emake \
+ -j1 \
+ E_CFLAGS="${CFLAGS}" \
+ PLATFORM=unix-gcc \
+ || die "emake failed"
+}
+
+src_install() {
+ insinto /usr/include/ode
+ doins include/ode/*.h || die "doins failed"
+ insinto /usr/include/drawstuff
+ doins include/drawstuff/*.h || die "doins failed"
+ dolib lib/libode.a lib/libdrawstuff.a || die "dolib failed"
+ dodir /usr/share/${P}/config
+ insinto /usr/share/${P}/config
+ doins config/user-settings
+ if use doc; then
+ dodoc README CHANGELOG ode/doc/ode.pdf
+ dohtml ode/doc/ode.html
+ dodir /usr/share/doc/${PF}/html/pix/
+ insinto /usr/share/doc/${PF}/html/pix/
+ doins ode/doc/pix/*.jpg
+ # install examples
+ dodir /usr/share/${PF}/examples
+ exeinto /usr/share/${PF}/examples
+ doexe ode/test/*.exe
+ doexe drawstuff/dstest/dstest.exe
+ insinto /usr/share/${PF}/examples
+ doins ode/test/*.c ode/test/*.cpp
+ doins drawstuff/textures/*.ppm
+ doins drawstuff/dstest/dstest.cpp
+ fi
+}