mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
box2d: bump version
keep the old library for binary compatibility.
This commit is contained in:
66
dev-games/box2d/box2d-2.4.1.recipe
Normal file
66
dev-games/box2d/box2d-2.4.1.recipe
Normal file
@@ -0,0 +1,66 @@
|
||||
SUMMARY="A 2D Physics Engine for Games"
|
||||
DESCRIPTION="Box2D is a feature rich 2D rigid body physics engine, written in C++. \
|
||||
It has been used in many games, including Crayon Physics Deluxe, \
|
||||
winner of the 2008 Independant Game Festival Grand Prize"
|
||||
HOMEPAGE="http://www.box2d.org"
|
||||
COPYRIGHT="2007-2015 Erin Catto"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/erincatto/Box2D/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="d6b4650ff897ee1ead27cf77a5933ea197cbeef6705638dd181adc2e816b23c2"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 !x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
box2d$secondaryArchSuffix = $portVersion
|
||||
lib:libBox2D$secondaryArchSuffix = 2.4.0
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
box2d${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libBox2D$secondaryArchSuffix = 2.4.0
|
||||
"
|
||||
REQUIRES_devel="
|
||||
box2d$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libGL$secondaryArchSuffix
|
||||
devel:libGLU$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:doxygen
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ninja
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -GNinja . \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$prefix \
|
||||
-DBOX2D_BUILD_TESTBED=OFF \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DBOX2D_BUILD_DOCS=ON \
|
||||
$cmakeDirArgs
|
||||
|
||||
ninja -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
ninja -C build install
|
||||
|
||||
prepareInstalledDevelLib libbox2d
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$documentationDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
@@ -5,7 +5,7 @@ winner of the 2008 Independant Game Festival Grand Prize"
|
||||
HOMEPAGE="http://www.box2d.org"
|
||||
COPYRIGHT="2007-2015 Erin Catto"
|
||||
LICENSE="MIT"
|
||||
REVISION="7"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/erincatto/Box2D/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="58ffc8475a8650aadc351345aef696937747b40501ab78d72c197c5ff5b3035c"
|
||||
SOURCE_DIR="box2d-$portVersion"
|
||||
@@ -15,21 +15,13 @@ ARCHITECTURES="x86_gcc2 !x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
box2d$secondaryArchSuffix = $portVersion
|
||||
box2d23$secondaryArchSuffix = $portVersion
|
||||
lib:libBox2D$secondaryArchSuffix = 2.3.0
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
box2d${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libBox2D$secondaryArchSuffix = 2.3.0
|
||||
"
|
||||
REQUIRES_devel="
|
||||
box2d$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libGL$secondaryArchSuffix
|
||||
@@ -64,21 +56,5 @@ INSTALL()
|
||||
|
||||
prepareInstalledDevelLib libBox2D
|
||||
|
||||
mkdir -p $developLibDir/pkgconfig
|
||||
cat > $developLibDir/pkgconfig/box2d.pc << EOF
|
||||
prefix=${prefix}
|
||||
exec_prefix=${prefix}
|
||||
libdir=${libDir}
|
||||
includedir=${includeDir}
|
||||
|
||||
Name: box2d
|
||||
Description: $SUMMARY
|
||||
Version: $portVersion
|
||||
Libs: -L${developLibDir} -lBox2D
|
||||
Cflags: -I${includeDir}
|
||||
EOF
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
rm -rf $developDir $libDir/cmake $documentationDir $libDir/Box2D
|
||||
}
|
||||
Reference in New Issue
Block a user