pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/graphics/box2d
Module Name: pkgsrc
Committed By: ryoon
Date: Tue Sep 22 07:55:31 UTC 2026
Modified Files:
pkgsrc/graphics/box2d: Makefile PLIST buildlink3.mk distinfo
Log Message:
graphics/box2d: Update to 3.1.1
Changelog:
3.1.1:
What's Changed
Warning as error off by default by @erincatto in #914
functions to get and set surface material by @erincatto in #921
Fixed another shape distance assert by @erincatto in #926
Revolute and prismatic targets by @erincatto in #929
Cast initial overlap by @erincatto in #933
Tunable joint stiffness by @erincatto in #934
_aligned_free for mingw by @erincatto in #939
Removed MSVC static library setting by @erincatto in #940
# v3.1 Release Notes
## API Changes
- 64-bit filter categories and masks
- 64-bit dynamic tree user data
- Renamed `b2SmoothSegment` to `b2ChainSegment`
- Cast and overlap functions modified for argument consistency
- Contact begin events now provide the manifold
- More consistent functions to make polygons
- Contact events are now disabled by default
- Replaced `b2Timer` with `uint64_t`
- Shape material properties now use `b2SurfaceMaterial`
## New Features
- New character mover features and sample
- Revised sensor system is now independent of body type and sleep
- Rolling resistance and tangent speed
- Friction and restitution mixing callbacks
- World explosions
- World access to the maximum linear speed
- More control over body mass updates
- Filter joint to disable collision between specific bodies
- Bodies can now have names for debugging
- Added `b2Body_SetTargetTransform` for kinematic bodies
## Improvements
- Cross-platform determinism
- Custom SSE2 and Neon for significantly improved performance
- SSE2 is the default instead of AVX2
- Removed SIMDE library dependency
- Faster ray and shape casts
- Faster continuous collision
- Each segment of a chain shape may have a different surface material
- Reduced overhead of restitution when not used
- Implemented atomic platform wrappers eliminating the `experimental:c11atomics` flag
## Bugs Fixes
- Many bug fixes based on user testing
- Fixed missing hit events
- Capsule and polygon manifold fixes
- Fixed missing contact end events
- PreSolve is now called in continuous collision
- Reduced clipping into chain shapes by fast bodies
- Friction and restitution are now remixed in the contact solver every time step
- Body move events are now correctly adjusted for time of impact
## Infrastructure
- Unit test for API coverage
- macOS and Windows samples built in GitHub actions
- CMake install
- imgui and glfw versions are now pinned in FetchContent
- Initial Emscripten support
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/graphics/box2d/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/graphics/box2d/PLIST
cvs rdiff -u -r1.1 -r1.2 pkgsrc/graphics/box2d/buildlink3.mk
cvs rdiff -u -r1.4 -r1.5 pkgsrc/graphics/box2d/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/graphics/box2d/Makefile
diff -u pkgsrc/graphics/box2d/Makefile:1.5 pkgsrc/graphics/box2d/Makefile:1.6
--- pkgsrc/graphics/box2d/Makefile:1.5 Sun Aug 25 06:18:49 2024
+++ pkgsrc/graphics/box2d/Makefile Tue Sep 22 07:55:31 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2024/08/25 06:18:49 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2026/09/22 07:55:31 ryoon Exp $
-DISTNAME= box2d-2.4.2
+DISTNAME= box2d-3.1.1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_GITHUB:=erincatto/}
GITHUB_TAG= v${PKGVERSION_NOREV}
@@ -13,7 +13,7 @@ LICENSE= mit
USE_LANGUAGES= c c++
CMAKE_CONFIGURE_ARGS+= -DBOX2D_BUILD_UNIT_TESTS=OFF
-CMAKE_CONFIGURE_ARGS+= -DBOX2D_BUILD_TESTBED=OFF
+CMAKE_CONFIGURE_ARGS+= -DBOX2D_SAMPLES=OFF
CMAKE_CONFIGURE_ARGS+= -DBUILD_SHARED_LIBS=ON
.include "../../devel/cmake/build.mk"
Index: pkgsrc/graphics/box2d/PLIST
diff -u pkgsrc/graphics/box2d/PLIST:1.2 pkgsrc/graphics/box2d/PLIST:1.3
--- pkgsrc/graphics/box2d/PLIST:1.2 Sun Aug 11 06:39:04 2024
+++ pkgsrc/graphics/box2d/PLIST Tue Sep 22 07:55:31 2026
@@ -1,47 +1,13 @@
-@comment $NetBSD: PLIST,v 1.2 2024/08/11 06:39:04 wiz Exp $
-include/box2d/b2_api.h
-include/box2d/b2_block_allocator.h
-include/box2d/b2_body.h
-include/box2d/b2_broad_phase.h
-include/box2d/b2_chain_shape.h
-include/box2d/b2_circle_shape.h
-include/box2d/b2_collision.h
-include/box2d/b2_common.h
-include/box2d/b2_contact.h
-include/box2d/b2_contact_manager.h
-include/box2d/b2_distance.h
-include/box2d/b2_distance_joint.h
-include/box2d/b2_draw.h
-include/box2d/b2_dynamic_tree.h
-include/box2d/b2_edge_shape.h
-include/box2d/b2_fixture.h
-include/box2d/b2_friction_joint.h
-include/box2d/b2_gear_joint.h
-include/box2d/b2_growable_stack.h
-include/box2d/b2_joint.h
-include/box2d/b2_math.h
-include/box2d/b2_motor_joint.h
-include/box2d/b2_mouse_joint.h
-include/box2d/b2_polygon_shape.h
-include/box2d/b2_prismatic_joint.h
-include/box2d/b2_pulley_joint.h
-include/box2d/b2_revolute_joint.h
-include/box2d/b2_rope.h
-include/box2d/b2_settings.h
-include/box2d/b2_shape.h
-include/box2d/b2_stack_allocator.h
-include/box2d/b2_time_of_impact.h
-include/box2d/b2_time_step.h
-include/box2d/b2_timer.h
-include/box2d/b2_types.h
-include/box2d/b2_weld_joint.h
-include/box2d/b2_wheel_joint.h
-include/box2d/b2_world.h
-include/box2d/b2_world_callbacks.h
+@comment $NetBSD: PLIST,v 1.3 2026/09/22 07:55:31 ryoon Exp $
+include/box2d/base.h
include/box2d/box2d.h
+include/box2d/collision.h
+include/box2d/id.h
+include/box2d/math_functions.h
+include/box2d/types.h
lib/cmake/box2d/box2dConfig-noconfig.cmake
lib/cmake/box2d/box2dConfig.cmake
lib/cmake/box2d/box2dConfigVersion.cmake
lib/libbox2d.so
-lib/libbox2d.so.2
-lib/libbox2d.so.2.4.1
+lib/libbox2d.so.3
+lib/libbox2d.so.${PKGVERSION}
Index: pkgsrc/graphics/box2d/buildlink3.mk
diff -u pkgsrc/graphics/box2d/buildlink3.mk:1.1 pkgsrc/graphics/box2d/buildlink3.mk:1.2
--- pkgsrc/graphics/box2d/buildlink3.mk:1.1 Sat Feb 6 06:41:33 2021
+++ pkgsrc/graphics/box2d/buildlink3.mk Tue Sep 22 07:55:31 2026
@@ -1,13 +1,28 @@
-# $NetBSD: buildlink3.mk,v 1.1 2021/02/06 06:41:33 ryoon Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2026/09/22 07:55:31 ryoon Exp $
BUILDLINK_TREE+= box2d
.if !defined(BOX2D_BUILDLINK3_MK)
BOX2D_BUILDLINK3_MK:=
-BUILDLINK_API_DEPENDS.box2d+= box2d>=2.4.1
+BUILDLINK_API_DEPENDS.box2d+= box2d>=3.1.1
BUILDLINK_PKGSRCDIR.box2d?= ../../graphics/box2d
+BUILDLINK_TARGETS+= box2d-fake-pc
+
+.PHONY: box2d-fake-pc
+box2d-fake-pc:
+ ${RUN} \
+ ${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig; \
+ { ${ECHO} "Name: box2d"; \
+ ${ECHO} "Description: 2D physics engine for games"; \
+ ${ECHO} "Version: 3.1.1"; \
+ ${ECHO} "Cflags: -I${BUILDLINK_PREFIX.box2d}/include"; \
+ ${ECHO} "Libs: -L${BUILDLINK_PREFIX.box2d}/lib" \
+ "${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.box2d}/lib" \
+ "-lbox2d"; \
+ } > ${BUILDLINK_DIR}/lib/pkgconfig/box2d.pc; \
+
.endif # BOX2D_BUILDLINK3_MK
BUILDLINK_TREE+= -box2d
Index: pkgsrc/graphics/box2d/distinfo
diff -u pkgsrc/graphics/box2d/distinfo:1.4 pkgsrc/graphics/box2d/distinfo:1.5
--- pkgsrc/graphics/box2d/distinfo:1.4 Sun Aug 11 06:39:04 2024
+++ pkgsrc/graphics/box2d/distinfo Tue Sep 22 07:55:31 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.4 2024/08/11 06:39:04 wiz Exp $
+$NetBSD: distinfo,v 1.5 2026/09/22 07:55:31 ryoon Exp $
-BLAKE2s (box2d-2.4.2.tar.gz) = 3e5bae1384aa63fd1b6baad04da8a03b7a19c70ea162d30df1bc3899cd66f565
-SHA512 (box2d-2.4.2.tar.gz) = e769bcfa11028ea2e842bf96da4bef71a58f1b08cd144139adc724acfe3ca5911f84d0be41d9412b302d9e7c17b7741cf56da60df7bd7379c6e11b3eea100153
-Size (box2d-2.4.2.tar.gz) = 1236569 bytes
+BLAKE2s (box2d-3.1.1.tar.gz) = ed7b5f74ba923d6999c1c545c11eadb45023d990a4233edebf603b8321fd9dfd
+SHA512 (box2d-3.1.1.tar.gz) = 7367640e7f2ff395b8ca48766c71f57c96e08c298627c996eba76899a149ee28b0e3ecacfa4a224fdb5d160c7e25c6069bb8414fd1575787727d796097aa347b
+Size (box2d-3.1.1.tar.gz) = 780115 bytes
Home |
Main Index |
Thread Index |
Old Index