From b43cee2a4c4acd4a7359232b26dda12e0ea03a3d Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Mon, 7 Jun 2021 16:39:49 +0200 Subject: [PATCH] box2d: bump version keep the old library for binary compatibility. --- dev-games/box2d/box2d-2.4.1.recipe | 66 +++++++++++++++++++ ...ox2d-2.3.1.recipe => box2d23-2.3.1.recipe} | 30 +-------- 2 files changed, 69 insertions(+), 27 deletions(-) create mode 100644 dev-games/box2d/box2d-2.4.1.recipe rename dev-games/box2d/{box2d-2.3.1.recipe => box2d23-2.3.1.recipe} (70%) diff --git a/dev-games/box2d/box2d-2.4.1.recipe b/dev-games/box2d/box2d-2.4.1.recipe new file mode 100644 index 000000000..5cb79ea6d --- /dev/null +++ b/dev-games/box2d/box2d-2.4.1.recipe @@ -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 +} diff --git a/dev-games/box2d/box2d-2.3.1.recipe b/dev-games/box2d/box2d23-2.3.1.recipe similarity index 70% rename from dev-games/box2d/box2d-2.3.1.recipe rename to dev-games/box2d/box2d23-2.3.1.recipe index 7efba03e1..c09b767dd 100644 --- a/dev-games/box2d/box2d-2.3.1.recipe +++ b/dev-games/box2d/box2d23-2.3.1.recipe @@ -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 }