diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-07-19 04:47:51 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-07-19 04:47:51 +0000 |
commit | 0a80d0b45825e156a8688503e0d4e506cfc5a55d (patch) | |
tree | 515c42b4011511b377023999ba209ffac32be03c /dev-games | |
parent | dev-games/ode:double-precision (diff) | |
download | historical-0a80d0b45825e156a8688503e0d4e506cfc5a55d.tar.gz historical-0a80d0b45825e156a8688503e0d4e506cfc5a55d.tar.bz2 historical-0a80d0b45825e156a8688503e0d4e506cfc5a55d.zip |
add support for USE=double-precision #94043
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'dev-games')
-rw-r--r-- | dev-games/ode/Manifest | 14 | ||||
-rw-r--r-- | dev-games/ode/ode-0.5-r2.ebuild | 20 |
2 files changed, 24 insertions, 10 deletions
diff --git a/dev-games/ode/Manifest b/dev-games/ode/Manifest index 5a34d40a642c..6cb148157254 100644 --- a/dev-games/ode/Manifest +++ b/dev-games/ode/Manifest @@ -1,5 +1,15 @@ -MD5 865fc6ade7fa6aa03562b596ff76b693 ChangeLog 2623 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + MD5 897a7d200c1e7b0159d465d3220c9eff metadata.xml 509 -MD5 2b2b1fa23951f2eb618766509784ad2f ode-0.5-r2.ebuild 1750 +MD5 64111f61cb0f0926cc02c3aa27a8209c ode-0.5-r2.ebuild 1844 +MD5 865fc6ade7fa6aa03562b596ff76b693 ChangeLog 2623 MD5 05d1eafa8377f72052f3e5c7eb6fe88c files/0.5-PIC.patch 516 MD5 24a10f16623003a6f4c8df5d8a0c11f5 files/digest-ode-0.5-r2 57 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.1 (GNU/Linux) + +iD8DBQFC3IYPgIKl8Uu19MoRAkLkAJ4leKERCy7txc7poxE2D3TyS8qvGQCfY+J1 +mc7H6/y5vN8wqKk6slyQEiQ= +=DmJi +-----END PGP SIGNATURE----- diff --git a/dev-games/ode/ode-0.5-r2.ebuild b/dev-games/ode/ode-0.5-r2.ebuild index eec3472c28ba..1d4bab3ea368 100644 --- a/dev-games/ode/ode-0.5-r2.ebuild +++ b/dev-games/ode/ode-0.5-r2.ebuild @@ -1,6 +1,6 @@ # 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.4 2005/04/03 16:40:41 chrb Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-games/ode/ode-0.5-r2.ebuild,v 1.5 2005/07/19 04:47:51 vapier Exp $ inherit eutils @@ -11,24 +11,28 @@ SRC_URI="mirror://sourceforge/opende/${P}.tgz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="amd64 ppc x86" -IUSE="doc debug" +IUSE="doc debug double-precision" -DEPEND="virtual/libc - virtual/x11 +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}"/${PV}-PIC.patch - sed -i -e "s/#OPCODE_DIRECTORY/OPCODE_DIRECTORY/" config/user-settings sed -i -e "s/..\/..\/drawstuff\/textures/\/usr\/share\/${P}\/examples/" ode/test/*.c* sed -i -e "s/fn.path_to_textures = 0/fn.path_to_textures = \"\/usr\/share\/${P}\/examples\"/" drawstuff/dstest/dstest.cpp - if use debug; then - sed -e "s/#BUILD=d/BUILD=d/" -e "s/BUILD=r/#BUILD=r/" -i ${S}/config/user-settings - fi + 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):" \ + "${S}"/config/user-settings } src_compile() { |