summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Julian Ospald <hasufell@posteo.de> 2016-07-02 14:00:20 +0200
committerAvatar Heiko Becker <heirecka@exherbo.org> 2016-07-07 18:42:40 +0200
commit424e7b1184d27cc741bd5669041037540d2a6bed (patch)
tree28fe276395872b14a4acf7e2caa57154d845d05d
parent03e9a015939141d7f90b4044ec2d41d4253e4f8f (diff)
downloadgames-424e7b1184d27cc741bd5669041037540d2a6bed.tar.gz
games-424e7b1184d27cc741bd5669041037540d2a6bed.tar.xz
dev-libs/Box2D: bump to 2.3.1 and fix build
Change-Id: I64113cec294cf04fc1f6ea766d66b09c53e5aa62 Reviewed-on: https://galileo.mailstation.de/gerrit/6595 Reviewed-by: Heiko Becker <heirecka@exherbo.org>
-rw-r--r--packages/dev-libs/Box2D/Box2D-2.3.1.exheres-0 (renamed from packages/dev-libs/Box2D/Box2D-2.2.1.exheres-0)18
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/dev-libs/Box2D/Box2D-2.2.1.exheres-0 b/packages/dev-libs/Box2D/Box2D-2.3.1.exheres-0
index e4fcea1..f7ad727 100644
--- a/packages/dev-libs/Box2D/Box2D-2.2.1.exheres-0
+++ b/packages/dev-libs/Box2D/Box2D-2.3.1.exheres-0
@@ -1,13 +1,13 @@
# Copyright 2011 Kim Højgaard-Hansen <kimrhh@gmail.com>
# Distributed under the terms of the GNU General Public License v2
-require googlecode [ pnv=${PN}_v${PV} project=box2d suffix=zip ] cmake
+require cmake [ api=2 ]
+require github [ user='erincatto' tag="v${PV}" ]
SUMMARY="A 2D Physics Engine for Games"
DESCRIPTION="
Box2D is an open source C++ engine for simulating rigid bodies in 2D.
"
-HOMEPAGE="http://code.google.com/p/box2d/"
LICENCES="ZLIB"
SLOT="0"
@@ -19,13 +19,13 @@ DEPENDENCIES="
x11-dri/mesa
"
-BUGS_TO="kimrhh@exherbo.org"
+CMAKE_SOURCE="${WORK}/${PN}"
-WORK="${WORKBASE}/${PN}_v${PV}"
-CMAKE_SRC_CONFIGURE_PARAMS+=( '-DBOX2D_INSTALL=ON -DBOX2D_BUILD_SHARED=ON' )
+BUGS_TO="kimrhh@exherbo.org"
-src_prepare() {
- # https://code.google.com/p/box2d/source/detail?r=239
- edo sed -i -e 's/DESTINATION lib/DESTINATION ${LIB_INSTALL_DIR}/g' Box2D/CMakeLists.txt
-}
+CMAKE_SRC_CONFIGURE_PARAMS+=(
+ '-DBOX2D_BUILD_EXAMPLES=OFF'
+ '-DBOX2D_BUILD_SHARED=ON'
+ '-DBOX2D_INSTALL=ON'
+)