* [Buildroot] [V2] chipmunk: new package
@ 2018-04-11 10:01 Francois Perrad
2018-04-28 16:35 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Francois Perrad @ 2018-04-11 10:01 UTC (permalink / raw)
To: buildroot
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
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
diff --git a/DEVELOPERS b/DEVELOPERS
index 41e1b54d9..c978a5601 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -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/
diff --git a/package/Config.in b/package/Config.in
index 9cd5d9c08..94347edbb 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/chipmunk/Config.in b/package/chipmunk/Config.in
new file mode 100644
index 000000000..7275d684a
--- /dev/null
+++ b/package/chipmunk/Config.in
@@ -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/
diff --git a/package/chipmunk/chipmunk.hash b/package/chipmunk/chipmunk.hash
new file mode 100644
index 000000000..7bd9b1569
--- /dev/null
+++ b/package/chipmunk/chipmunk.hash
@@ -0,0 +1,5 @@
+# Locally calculated
+sha256 6b6d8d5d910c4442fb9c8c4c46a178126d8c21d075cdb3ce439a7f8d8757b0ca Chipmunk-7.0.2.tar.gz
+
+# Hash for license file:
+sha256 109cedb0301cba4e05fa99241f162bdad015c9541ae84b420b0148ac1ea588e2 LICENSE.txt
diff --git a/package/chipmunk/chipmunk.mk b/package/chipmunk/chipmunk.mk
new file mode 100644
index 000000000..61b7a2e7b
--- /dev/null
+++ b/package/chipmunk/chipmunk.mk
@@ -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))
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [V2] chipmunk: new package
2018-04-11 10:01 [Buildroot] [V2] chipmunk: new package Francois Perrad
@ 2018-04-28 16:35 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-04-28 16:35 UTC (permalink / raw)
To: buildroot
Hello,
On Wed, 11 Apr 2018 12:01:46 +0200, Francois Perrad wrote:
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
> ---
> 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
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-28 16:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-11 10:01 [Buildroot] [V2] chipmunk: new package Francois Perrad
2018-04-28 16:35 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox