ChangeLog

# ChangeLog for dev-games/newton
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-games/newton/ChangeLog,v 1.3 2007/07/24 00:22:44 nyhm Exp $

24 Jul 2007; Tristan Heaven
+files/newton-1.53-glut.patch, newton-1.53.ebuild:
Compile fix by Michael Schreckenbauer, bug #178204

22 Jul 2007; Hans de Graaff newton-1.53.ebuild:
Drop virtual/x11 references.

*newton-1.53 (06 Sep 2006)

06 Sep 2006; Chris Gianelloni +metadata.xml,
+newton-1.53.ebuild:
Initial import. Original ebuild by Christoph Brill and edited
by me. Closing bug #100889.

Manifest

AUX newton-1.53-glut.patch 385 RMD160 3522e9885a902076b75c20729d2eb153e9a50f8b SHA1 c130c4a3696656de0331f2f07ee3b7462b286f6d SHA256 c746ce4bd2d22ca76e41198ab7333b6e5e4d6cc142a16fe7fe9c5c96692a4122
DIST newtonLinux-1.53.tar.gz 16271012 RMD160 7dfabdd9b4823dfbf0103ec3334bf4c42901d8b0 SHA1 2f833f7152702d46edcf4b5ba179a941effb73ce SHA256 5f7616a4d8fcdc8339f2c799caf1ee98d6e167046d2a05299082d5cc5e130bf6
EBUILD newton-1.53.ebuild 1839 RMD160 b3c47b3bd5bc0fd25ab973baa185bb2e5385c117 SHA1 83432511842495c6647f56d86fe261d431ac948e SHA256 2194df5c1ad69120628cd44b31168721e063f0e096c3a1b71457d08d65c1d0a0
MISC ChangeLog 690 RMD160 aa264aeb7d6b2175dee4ccac34da580a9cf81610 SHA1 4b4a3945779d32a9ce48ae9c6fd9002d6b805a4b SHA256 9cd9529dad67d05a5b11799ba522709a68031c231896a43dc6275b23d0cfbe0d
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3

files

metadata.xml




games

newton-1.53.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-games/newton/newton-1.53.ebuild,v 1.3 2007/07/24 00:22:44 nyhm Exp $

inherit eutils

DESCRIPTION="an integrated solution for real time simulation of physics environments"
HOMEPAGE="http://www.physicsengine.com/"
SRC_URI="http://www.physicsengine.com/downloads/${PN}Linux-${PV}.tar.gz
http://www.newtondynamics.com/downloads/${PN}Linux-${PV}.tar.gz"

LICENSE="newton"
SLOT="0"
KEYWORDS="~x86"
IUSE="doc"

DEPEND="doc? (
virtual/opengl
virtual/glu
virtual/glut
)"

S=${WORKDIR}/newtonSDK

src_unpack() {
unpack ${A}
cd "${S}"
if use doc; then
cd samples
rm -rf gl
sed -i \
-e "s:-I ../gl:-I /usr/include/GL:" \
tutorial_05_UsingJoints/makefile \
tutorial_09_SimpleVehicle/makefile \
tutorial_04_IntroductionToMaterials/makefile \
tutorial_10_CustomJoints/makefile \
tutorial_01_GettingStarted/makefile \
tutorial_02_UsingCallbacks/makefile \
tutorial_08_HeightFieldCollision/makefile \
tutorial_07_CharaterController/makefile \
tutorial_06_UtilityFuntionality/makefile \
tutorial_03_UsingCollisionTree/makefile \
|| die "failed fixing sample makefiles"
sed -i \
-e "/^FLAGS =/s:-g -O0:${CFLAGS}:" \
makefile \
|| die "sed makefile failed"
epatch "${FILESDIR}"/${P}-glut.patch
fi
}

src_compile() {
if use doc; then
cd samples
emake || die "emake samples failed"
rm -f */*.elf */*.o
fi
}

src_install() {
dolib.a sdk/libNewton.a || die "dolib.a failed"
insinto /usr/include
doins sdk/Newton.h || die "doins failed"

if use doc; then
insinto /usr/share/${PN}
doins -r samples/* || die "doins samples failed"

exeinto /usr/share/${PN}/bin
doexe samples/bin/tutorial_* || die "doexe failed"
fi

dodoc doc/*
}