0
0
Fork 0
haikuports/dev-games/ode/ode-0.12.recipe

68 lines
1.6 KiB
Bash

SUMMARY="Library for simulating rigid body dynamics"
DESCRIPTION="ODE is an open source, high performance library for simulating \
rigid body dynamics. It is fully featured, stable, mature and platform \
independent with an easy to use C/C++ API. It has advanced joint types and \
integrated collision detection with friction. ODE is useful for simulating \
vehicles, objects in virtual reality environments and virtual creatures."
HOMEPAGE="http://www.ode.org/"
COPYRIGHT="2001-2004 Russell L. Smith"
LICENSE="GNU LGPL v3
BSD (3-clause)"
REVISION="1"
SOURCE_URI="http://downloads.sourceforge.net/project/opende/ODE/0.12/ode-0.12.tar.bz2"
CHECKSUM_SHA256="65c5315a42c725d2da01ea2c1b045583d54e0d1a95e3f7c062e5ba3769f5c350"
PATCHES="ode-0.12.patch"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
ode$secondaryArchSuffix = $portVersion
lib:libode$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
ode${secondaryArchSuffix}_devel = $portVersion
cmd:ode_config$secondaryArchSuffix = $portVersion
devel:libode$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
haiku$secondaryArchSuffix
ode$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:mkdepend
"
BUILD()
{
runConfigure ./configure --enable-shared
make $jobArgs
}
INSTALL()
{
fixDevelopLibDirReferences ode-config
make install
prepareInstalledDevelLib libode
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$binDir # ode_config binary here
}