From 31d5001a943cad56581c8a83251d96e84027bcf4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 7 Jan 2005 19:30:03 +0000 Subject: Since ode only produces a static library atm, force it to be built with -fPIC #77004 by Rick. --- dev-games/ode/ChangeLog | 9 +++++- dev-games/ode/Manifest | 12 +++---- dev-games/ode/files/digest-ode-0.5-r1 | 1 - dev-games/ode/files/digest-ode-0.5-r2 | 1 + dev-games/ode/ode-0.5-r1.ebuild | 60 ---------------------------------- dev-games/ode/ode-0.5-r2.ebuild | 61 +++++++++++++++++++++++++++++++++++ 6 files changed, 76 insertions(+), 68 deletions(-) delete mode 100644 dev-games/ode/files/digest-ode-0.5-r1 create mode 100644 dev-games/ode/files/digest-ode-0.5-r2 delete mode 100644 dev-games/ode/ode-0.5-r1.ebuild create mode 100644 dev-games/ode/ode-0.5-r2.ebuild (limited to 'dev-games/ode') diff --git a/dev-games/ode/ChangeLog b/dev-games/ode/ChangeLog index 6bb5654be704..36b117154f0c 100644 --- a/dev-games/ode/ChangeLog +++ b/dev-games/ode/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-games/ode # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-games/ode/ChangeLog,v 1.10 2005/01/01 18:02:23 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-games/ode/ChangeLog,v 1.11 2005/01/07 19:30:03 vapier Exp $ + +*ode-0.5-r2 (07 Jan 2005) + + 07 Jan 2005; Mike Frysinger -ode-0.5-r1.ebuild, + +ode-0.5-r2.ebuild: + Since ode only produces a static library atm, force it to be built with + -fPIC #77004 by Rick. 12 Nov 2004; Simon Stelling : added ~amd64 diff --git a/dev-games/ode/Manifest b/dev-games/ode/Manifest index 226f1b07cc52..f2ce456b789b 100644 --- a/dev-games/ode/Manifest +++ b/dev-games/ode/Manifest @@ -1,14 +1,14 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 ca153da159bc2aeb3ebf5e9f78247f77 ChangeLog 2111 +MD5 0a1efa9cb7ea7a8804c6c19a6e4aa33e ChangeLog 2325 MD5 897a7d200c1e7b0159d465d3220c9eff metadata.xml 509 -MD5 a8071813e7d4d4e5a572e3a8050ca3c4 ode-0.5-r1.ebuild 1665 -MD5 24a10f16623003a6f4c8df5d8a0c11f5 files/digest-ode-0.5-r1 57 +MD5 b4709bc0bef23c162eb71bb15ee30bd4 ode-0.5-r2.ebuild 1675 +MD5 24a10f16623003a6f4c8df5d8a0c11f5 files/digest-ode-0.5-r2 57 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.9.14 (GNU/Linux) -iD8DBQFB3uJHroRuSHgZdywRArfFAJ4+ejV8bNER2i6Wbsxc1xVFNXVUlACfXxq1 -cCTNhYhFDpLjnZYHOtkIadY= -=tJ1C +iD8DBQFB3uNJroRuSHgZdywRAmv6AJ9sPcT9/1EK8vRhWxFI6liv2NrR7gCfchR6 +kPIjqwpWMPF3ugt9Z4iPT90= +=WgFu -----END PGP SIGNATURE----- diff --git a/dev-games/ode/files/digest-ode-0.5-r1 b/dev-games/ode/files/digest-ode-0.5-r1 deleted file mode 100644 index 017c61381927..000000000000 --- a/dev-games/ode/files/digest-ode-0.5-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 b33b21e04ee9661f27802b6b6c8eefd2 ode-0.5.tgz 1710720 diff --git a/dev-games/ode/files/digest-ode-0.5-r2 b/dev-games/ode/files/digest-ode-0.5-r2 new file mode 100644 index 000000000000..017c61381927 --- /dev/null +++ b/dev-games/ode/files/digest-ode-0.5-r2 @@ -0,0 +1 @@ +MD5 b33b21e04ee9661f27802b6b6c8eefd2 ode-0.5.tgz 1710720 diff --git a/dev-games/ode/ode-0.5-r1.ebuild b/dev-games/ode/ode-0.5-r1.ebuild deleted file mode 100644 index b55400500527..000000000000 --- a/dev-games/ode/ode-0.5-r1.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# 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-r1.ebuild,v 1.5 2005/01/01 18:02:23 eradicator Exp $ - -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="debug doc" - -DEPEND="virtual/libc - virtual/x11 - virtual/glu - virtual/opengl" - -src_unpack() { - unpack ${A} - echo 'C_FLAGS+=$(E_CFLAGS)' >> "${S}/config/makefile.unix-gcc" - if use debug; then - sed -e "s/#BUILD=d/BUILD=d/" \ - -e "s/BUILD=r/#BUILD=r/" \ - -i ${S}/config/user-settings - fi - sed -e "s/#OPCODE_DIRECTORY/OPCODE_DIRECTORY/" -i ${S}/config/user-settings - sed -e 's/..\/..\/drawstuff\/textures/.\//' -i ${S}/ode/test/*.c* - sed -e 's/fn.path_to_textures = 0/fn.path_to_textures = ".\/"/' -i ${S}/drawstuff/dstest/dstest.cpp -} - -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" - dolib lib/libode.a lib/libdrawstuff.a || die "dolib failed" - if use doc; then - dodoc README CHANGELOG ode/doc/ode.pdf - dohtml ode/doc/ode.html - dodir /usr/share/doc/${P}/html/pix/ - insinto /usr/share/doc/${P}/html/pix/ - doins ode/doc/pix/*.jpg - # install examples - dodir /usr/share/${P}/examples - exeinto /usr/share/${P}/examples - doexe ode/test/*.exe - doexe drawstuff/dstest/dstest.exe - insinto /usr/share/${P}/examples - doins ode/test/*.c ode/test/*.cpp - doins drawstuff/textures/*.ppm - doins drawstuff/dstest/dstest.cpp - fi -} diff --git a/dev-games/ode/ode-0.5-r2.ebuild b/dev-games/ode/ode-0.5-r2.ebuild new file mode 100644 index 000000000000..c62a739a2f27 --- /dev/null +++ b/dev-games/ode/ode-0.5-r2.ebuild @@ -0,0 +1,61 @@ +# 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-r2.ebuild,v 1.1 2005/01/07 19:30:03 vapier Exp $ + +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="debug doc" + +DEPEND="virtual/libc + virtual/x11 + virtual/glu + virtual/opengl" + +src_unpack() { + unpack ${A} + echo 'C_FLAGS+=$(E_CFLAGS) -fPIC' >> "${S}"/config/makefile.unix-gcc + if use debug ; then + sed -i \ + -e "s/#BUILD=d/BUILD=d/" \ + -e "s/BUILD=r/#BUILD=r/" \ + "${S}"/config/user-settings + fi + sed -i -e "s/#OPCODE_DIRECTORY/OPCODE_DIRECTORY/" ${S}/config/user-settings + sed -i -e 's/..\/..\/drawstuff\/textures/.\//' ${S}/ode/test/*.c* + sed -i -e 's/fn.path_to_textures = 0/fn.path_to_textures = ".\/"/' ${S}/drawstuff/dstest/dstest.cpp +} + +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" + dolib lib/libode.a lib/libdrawstuff.a || die "dolib failed" + if use doc; then + dodoc README CHANGELOG ode/doc/ode.pdf + dohtml ode/doc/ode.html + dodir /usr/share/doc/${P}/html/pix/ + insinto /usr/share/doc/${P}/html/pix/ + doins ode/doc/pix/*.jpg + # install examples + dodir /usr/share/${P}/examples + exeinto /usr/share/${P}/examples + doexe ode/test/*.exe + doexe drawstuff/dstest/dstest.exe + insinto /usr/share/${P}/examples + doins ode/test/*.c ode/test/*.cpp + doins drawstuff/textures/*.ppm + doins drawstuff/dstest/dstest.cpp + fi +} -- cgit v1.2.3-65-gdbad