blob: d29c7de97e4fb962485b061902975b4373e0886e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := box2d
$(PKG)_WEBSITE := http://www.box2d.org/
$(PKG)_DESCR := Box2D
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.3.1
$(PKG)_CHECKSUM := 75d62738b13d2836cd56647581b6e574d4005a6e077ddefa5d727d445d649752
$(PKG)_SUBDIR := Box2D-$($(PKG)_VERSION)/Box2D
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://github.com/erincatto/Box2D/archive/v$($(PKG)_VERSION).tar.gz
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(call MXE_GET_GITHUB_TAGS, erincatto/Box2D) | \
$(SED) 's,^v,,g'
endef
define $(PKG)_BUILD
mkdir '$(1).build'
cd '$(1).build' && '$(TARGET)-cmake' . \
-DBOX2D_INSTALL=ON \
-DBOX2D_BUILD_EXAMPLES=OFF \
-DBOX2D_BUILD_STATIC=$(CMAKE_STATIC_BOOL) \
-DBOX2D_BUILD_SHARED=$(CMAKE_SHARED_BOOL) \
'$(1)'
$(MAKE) -C '$(1).build' -j '$(JOBS)' install VERBOSE=1
endef
|