Install this version:
emerge -a =games-engines/box2d-3.1.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =games-engines/box2d-3.1.1
Or alternatively:
emerge --autounmask-write -a =games-engines/box2d-3.1.1
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="C++ engine for simulating rigid bodies in 2D games"
HOMEPAGE="https://box2d.org/"
SRC_URI="https://github.com/erincatto/box2d/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
IUSE="doc"
BDEPEND="doc? ( app-text/doxygen media-gfx/graphviz )"
src_configure() {
local mycmakeargs=(
# would fetch dougbinks/enkiTS from the network in the sandbox, and
# unit tests need a static build anyway (they poke internal symbols)
-DBOX2D_SAMPLES=OFF
-DBOX2D_BENCHMARKS=OFF
-DBOX2D_UNIT_TESTS=OFF
-DBOX2D_DOCS=$(usex doc)
)
cmake_src_configure
}
Manage flags for this package:
euse -i <flag> -p games-engines/box2d |
euse -E <flag> -p games-engines/box2d |
euse -D <flag> -p games-engines/box2d
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | box2d-3.1.1.tar.gz | 780115 bytes | https://github.com/erincatto/box2d/archive/v3.1.1.tar.gz |