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 | 2d4eb0d2ab3e77012f7003722a803768c41b75aa (patch) | |
tree | 331b65b6493abe5d69923c841560f3a57068aa94 /dev-games | |
parent | dev-games/ode:double-precision (diff) | |
download | gentoo-2-2d4eb0d2ab3e77012f7003722a803768c41b75aa.tar.gz gentoo-2-2d4eb0d2ab3e77012f7003722a803768c41b75aa.tar.bz2 gentoo-2-2d4eb0d2ab3e77012f7003722a803768c41b75aa.zip |
add support for USE=double-precision #94043
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'dev-games')
-rw-r--r-- | dev-games/ode/ode-0.5-r2.ebuild | 20 |
1 files changed, 12 insertions, 8 deletions
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() { |