diff options
author | Tim Biermann <tbier@posteo.de> | 2021-01-02 19:28:24 +0000 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2021-01-02 19:28:24 +0000 |
commit | 32792c43511d6a3742268739c6ecd7610343ac22 (patch) | |
tree | 6a847827ea13ad5e5eabb1b3fe1c048d03bb8557 /box2d | |
parent | b521929dc0354803ba840071e2f1b9b7c7061e86 (diff) | |
download | contrib-32792c43511d6a3742268739c6ecd7610343ac22.tar.gz contrib-32792c43511d6a3742268739c6ecd7610343ac22.tar.xz |
box2d: initial commit, version 2.4.1
Diffstat (limited to 'box2d')
-rw-r--r-- | box2d/.footprint | 52 | ||||
-rw-r--r-- | box2d/.signature | 5 | ||||
-rw-r--r-- | box2d/Pkgfile | 24 |
3 files changed, 81 insertions, 0 deletions
diff --git a/box2d/.footprint b/box2d/.footprint new file mode 100644 index 000000000..e77f70fd0 --- /dev/null +++ b/box2d/.footprint @@ -0,0 +1,52 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/box2d/ +-rw-r--r-- root/root usr/include/box2d/b2_api.h +-rw-r--r-- root/root usr/include/box2d/b2_block_allocator.h +-rw-r--r-- root/root usr/include/box2d/b2_body.h +-rw-r--r-- root/root usr/include/box2d/b2_broad_phase.h +-rw-r--r-- root/root usr/include/box2d/b2_chain_shape.h +-rw-r--r-- root/root usr/include/box2d/b2_circle_shape.h +-rw-r--r-- root/root usr/include/box2d/b2_collision.h +-rw-r--r-- root/root usr/include/box2d/b2_common.h +-rw-r--r-- root/root usr/include/box2d/b2_contact.h +-rw-r--r-- root/root usr/include/box2d/b2_contact_manager.h +-rw-r--r-- root/root usr/include/box2d/b2_distance.h +-rw-r--r-- root/root usr/include/box2d/b2_distance_joint.h +-rw-r--r-- root/root usr/include/box2d/b2_draw.h +-rw-r--r-- root/root usr/include/box2d/b2_dynamic_tree.h +-rw-r--r-- root/root usr/include/box2d/b2_edge_shape.h +-rw-r--r-- root/root usr/include/box2d/b2_fixture.h +-rw-r--r-- root/root usr/include/box2d/b2_friction_joint.h +-rw-r--r-- root/root usr/include/box2d/b2_gear_joint.h +-rw-r--r-- root/root usr/include/box2d/b2_growable_stack.h +-rw-r--r-- root/root usr/include/box2d/b2_joint.h +-rw-r--r-- root/root usr/include/box2d/b2_math.h +-rw-r--r-- root/root usr/include/box2d/b2_motor_joint.h +-rw-r--r-- root/root usr/include/box2d/b2_mouse_joint.h +-rw-r--r-- root/root usr/include/box2d/b2_polygon_shape.h +-rw-r--r-- root/root usr/include/box2d/b2_prismatic_joint.h +-rw-r--r-- root/root usr/include/box2d/b2_pulley_joint.h +-rw-r--r-- root/root usr/include/box2d/b2_revolute_joint.h +-rw-r--r-- root/root usr/include/box2d/b2_rope.h +-rw-r--r-- root/root usr/include/box2d/b2_settings.h +-rw-r--r-- root/root usr/include/box2d/b2_shape.h +-rw-r--r-- root/root usr/include/box2d/b2_stack_allocator.h +-rw-r--r-- root/root usr/include/box2d/b2_time_of_impact.h +-rw-r--r-- root/root usr/include/box2d/b2_time_step.h +-rw-r--r-- root/root usr/include/box2d/b2_timer.h +-rw-r--r-- root/root usr/include/box2d/b2_types.h +-rw-r--r-- root/root usr/include/box2d/b2_weld_joint.h +-rw-r--r-- root/root usr/include/box2d/b2_wheel_joint.h +-rw-r--r-- root/root usr/include/box2d/b2_world.h +-rw-r--r-- root/root usr/include/box2d/b2_world_callbacks.h +-rw-r--r-- root/root usr/include/box2d/box2d.h +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/cmake/ +drwxr-xr-x root/root usr/lib/cmake/box2d/ +-rw-r--r-- root/root usr/lib/cmake/box2d/box2dConfig-release.cmake +-rw-r--r-- root/root usr/lib/cmake/box2d/box2dConfig.cmake +-rw-r--r-- root/root usr/lib/cmake/box2d/box2dConfigVersion.cmake +lrwxrwxrwx root/root usr/lib/libbox2d.so -> libbox2d.so.2 +lrwxrwxrwx root/root usr/lib/libbox2d.so.2 -> libbox2d.so.2.4.1 +-rwxr-xr-x root/root usr/lib/libbox2d.so.2.4.1 diff --git a/box2d/.signature b/box2d/.signature new file mode 100644 index 000000000..02aa8d3b6 --- /dev/null +++ b/box2d/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF37hoecm0DNccjaFHng1tIZx61StzqPap2O8kN+2JOqlc3wcU+hrWKiMEYGbN6Nfp8NOD40FPY+JK7/qRVxMDrQw= +SHA256 (Pkgfile) = 8c8995b6e7ef600f39b4e7663d0e1fdcc5538ced96513ee3adb7bf6c5d2d5d89 +SHA256 (.footprint) = 97a73b6449d2d99b502318b34b1ed27d992c3fee818ddc55f67d2548e9c8799f +SHA256 (box2d-2.4.1.tar.gz) = d6b4650ff897ee1ead27cf77a5933ea197cbeef6705638dd181adc2e816b23c2 diff --git a/box2d/Pkgfile b/box2d/Pkgfile new file mode 100644 index 000000000..aa9d01a5c --- /dev/null +++ b/box2d/Pkgfile @@ -0,0 +1,24 @@ +# Description: A 2D Physics Engine for Games +# URL: https://box2d.org/ +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: cmake xorg-libxinerama xorg-libxcursor + +name=box2d +version=2.4.1 +release=1 +source=(https://github.com/erincatto/box2d/archive/v$version/$name-$version.tar.gz) + +build() { + [[ -e /usr/bin/ninja ]] && PKGMK_BOX2D+=' -G Ninja' + cmake -S $name-$version -B build $PKGMK_BOX2D \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D CMAKE_INSTALL_LIBDIR=lib \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -fPIC" \ + -D CMAKE_C_FLAGS_RELEASE="$CFLAGS -fPIC" \ + -D BUILD_SHARED_LIBS=ON \ + -D BOX2D_BUILD_TESTBED=OFF \ + -Wno-dev + cmake --build build + DESTDIR=$PKG cmake --install build +} |