Skip to contentSkip to conversation

chipmunk: new package

PATCH New Francois Perrad 2 participants 2 messages Apr 11, 2018 – Apr 28, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 chipmunk: new package

---
 DEVELOPERS                     |  1 +
 package/Config.in              |  1 +
 package/chipmunk/Config.in     | 12 ++++++++++++
 package/chipmunk/chipmunk.hash |  5 +++++
 package/chipmunk/chipmunk.mk   | 16 ++++++++++++++++
 5 files changed, 35 insertions(+)
 create mode 100644 package/chipmunk/Config.in
 create mode 100644 package/chipmunk/chipmunk.hash
 create mode 100644 package/chipmunk/chipmunk.mk
DEVELOPERS +1 -0
index 41e1b54d9..c978a5601 100644
@@ -657,6 +657,7 @@ F:	board/olimex/a20_olinuxino
 F:	configs/olimex_a20_olinuxino_*
 F:	package/4th/
 F:	package/botan/
+F:	pacakge/chipmunk/
 F:	package/dado/
 F:	package/ficl/
 F:	package/gdbm/
package/Config.in +1 -0
index 9cd5d9c08..94347edbb 100644
@@ -1097,6 +1097,7 @@ menu "Graphics"
 	source "package/bullet/Config.in"
 	source "package/cairo/Config.in"
 	source "package/cairomm/Config.in"
+	source "package/chipmunk/Config.in"
 	source "package/exiv2/Config.in"
 	source "package/fltk/Config.in"
 	source "package/fontconfig/Config.in"
package/chipmunk/Config.in new file +12 -0
new file mode 100644
index 000000000..7275d684a
@@ -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/
package/chipmunk/chipmunk.hash new file +5 -0
new file mode 100644
index 000000000..7bd9b1569
@@ -0,0 +1,5 @@
+# Locally calculated
+sha256	6b6d8d5d910c4442fb9c8c4c46a178126d8c21d075cdb3ce439a7f8d8757b0ca  Chipmunk-7.0.2.tar.gz
+
+# Hash for license file:
+sha256	109cedb0301cba4e05fa99241f162bdad015c9541ae84b420b0148ac1ea588e2  LICENSE.txt
package/chipmunk/chipmunk.mk new file +16 -0
new file mode 100644
index 000000000..61b7a2e7b
@@ -0,0 +1,16 @@
+################################################################################
+#
+# 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
+
+$(eval $(cmake-package))
Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 1/1 chipmunk: new package

Hello,

Quoted 11 lines · Francois Perrad
---
 DEVELOPERS                     |  1 +
 package/Config.in              |  1 +
 package/chipmunk/Config.in     | 12 ++++++++++++
 package/chipmunk/chipmunk.hash |  5 +++++
 package/chipmunk/chipmunk.mk   | 16 ++++++++++++++++
 5 files changed, 35 insertions(+)
 create mode 100644 package/chipmunk/Config.in
 create mode 100644 package/chipmunk/chipmunk.hash
 create mode 100644 package/chipmunk/chipmunk.mk

I've applied, after adding some logic to make use of the BUILD_STATIC, BUILD_SHARED and INSTALL_STATIC options.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com