Bump buildroot to 2019.02
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
From 231c1fb97785290aaac89ed74d7cb24eaa74b363 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sun, 2 Sep 2018 12:05:22 +0200
|
||||
Subject: [PATCH] Fix build failure on musl
|
||||
|
||||
Build fails on:
|
||||
/home/test/autobuild/run/instance-0/output/build/chipmunk-7.0.2/src/cpHastySpace.c:11:24: fatal error: sys/sysctl.h: No such file or directory
|
||||
|
||||
Indeed, sys/sysctl.h is not available on musl so include this header
|
||||
only if __APPLE__ is defined as sysctlbyname is only used in this case.
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/e5be2f8eb9315a9054e1c8d854dec37cbb28eed7
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: https://github.com/slembcke/Chipmunk2D/pull/171]
|
||||
---
|
||||
src/cpHastySpace.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/cpHastySpace.c b/src/cpHastySpace.c
|
||||
index 8dca425..e087df8 100644
|
||||
--- a/src/cpHastySpace.c
|
||||
+++ b/src/cpHastySpace.c
|
||||
@@ -8,7 +8,9 @@
|
||||
|
||||
//#include <sys/param.h >
|
||||
#ifndef _WIN32
|
||||
+#ifdef __APPLE__
|
||||
#include <sys/sysctl.h>
|
||||
+#endif
|
||||
#include <pthread.h>
|
||||
#else
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
--
|
||||
2.17.1
|
||||
|
||||
12
bsp/buildroot/package/chipmunk/Config.in
Normal file
12
bsp/buildroot/package/chipmunk/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
comment "chipmunk needs an OpenGL backend"
|
||||
depends on !BR2_PACKAGE_HAS_LIBGL
|
||||
|
||||
config BR2_PACKAGE_CHIPMUNK
|
||||
bool "chipmunk"
|
||||
depends on BR2_PACKAGE_HAS_LIBGL
|
||||
help
|
||||
Chipmunk2D is a simple, lightweight, fast and portable 2D
|
||||
rigid body physics library written in C.
|
||||
|
||||
http://chipmunk-physics.net/
|
||||
5
bsp/buildroot/package/chipmunk/chipmunk.hash
Normal file
5
bsp/buildroot/package/chipmunk/chipmunk.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# Locally calculated
|
||||
sha256 6b6d8d5d910c4442fb9c8c4c46a178126d8c21d075cdb3ce439a7f8d8757b0ca Chipmunk-7.0.2.tar.gz
|
||||
|
||||
# Hash for license file:
|
||||
sha256 109cedb0301cba4e05fa99241f162bdad015c9541ae84b420b0148ac1ea588e2 LICENSE.txt
|
||||
28
bsp/buildroot/package/chipmunk/chipmunk.mk
Normal file
28
bsp/buildroot/package/chipmunk/chipmunk.mk
Normal file
@@ -0,0 +1,28 @@
|
||||
################################################################################
|
||||
#
|
||||
# chipmunk
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CHIPMUNK_VERSION = 7.0.2
|
||||
CHIPMUNK_SITE = https://github.com/slembcke/Chipmunk2D/archive
|
||||
CHIPMUNK_SOURCE = Chipmunk-$(CHIPMUNK_VERSION).tar.gz
|
||||
CHIPMUNK_INSTALL_STAGING = YES
|
||||
CHIPMUNK_LICENSE = MIT
|
||||
CHIPMUNK_LICENSE_FILES = LICENSE.txt
|
||||
CHIPMUNK_DEPENDENCIES = libgl
|
||||
CHIPMUNK_CONF_OPTS = -DBUILD_DEMOS=OFF
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
|
||||
CHIPMUNK_CONF_OPTS += -DBUILD_STATIC=ON -DINSTALL_STATIC=ON
|
||||
else
|
||||
CHIPMUNK_CONF_OPTS += -DBUILD_STATIC=OFF -DINSTALL_STATIC=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
|
||||
CHIPMUNK_CONF_OPTS += -DBUILD_SHARED=ON
|
||||
else
|
||||
CHIPMUNK_CONF_OPTS += -DBUILD_SHARED=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user