1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
5 pkgdesc="2D rigid body simulation library for games (mingw32)"
6 url="http://www.box2d.org/"
9 depends=('mingw32-gcc')
11 options=(!strip !buildflags)
12 source=(http://box2d.googlecode.com/files/Box2D_v${pkgver}.zip
13 cmake-toolchain.cmake)
14 md5sums=('220f1d604444d00844cc91933c07ecd8'
15 'dd2b2db48187dff84050fe191d309d81')
18 cd ${srcdir}/Box2D_v${pkgver}/Box2D/
20 sed -i s/Windows\.h/windows.h/g Box2D/Common/b2Timer.cpp
23 [[ -d build ]] && rm -r build
24 mkdir build && cd build
26 unset LDFLAGS CFLAGS CXXFLAGS
28 -DCMAKE_INSTALL_PREFIX=/usr/i486-mingw32 \
29 -DCMAKE_TOOLCHAIN_FILE=${srcdir}/cmake-toolchain.cmake \
31 -DBOX2D_BUILD_EXAMPLES=OFF \
32 -DBOX2D_BUILD_SHARED=OFF || return 1
34 make DESTDIR=${pkgdir} install || return 1