chipmunk 5.3.4.3-x86-mingw32 → 5.3.4.4-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +43 -36
- data/Rakefile +20 -20
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/chipmunk.c → chipmunk.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/chipmunk.h → chipmunk.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/chipmunk_ffi.h → chipmunk_ffi.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/chipmunk_private.h → chipmunk_private.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/chipmunk_types.h → chipmunk_types.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/chipmunk_unsafe.h → chipmunk_unsafe.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints → constraints}/cpConstraint.h +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints → constraints}/cpGearJoint.h +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints → constraints}/cpGrooveJoint.h +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints → constraints}/cpPinJoint.h +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints → constraints}/cpPivotJoint.h +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints → constraints}/cpRatchetJoint.h +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints → constraints}/cpRotaryLimitJoint.h +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints → constraints}/cpSlideJoint.h +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints → constraints}/util.h +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/cpArbiter.c → cpArbiter.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/cpArbiter.h → cpArbiter.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/cpArray.c → cpArray.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/cpArray.h → cpArray.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/cpBB.c → cpBB.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/cpBB.h → cpBB.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/cpBody.c → cpBody.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/cpBody.h → cpBody.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/cpCollision.c → cpCollision.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/cpCollision.h → cpCollision.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/constraints/cpConstraint.c → cpConstraint.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/constraints/cpDampedRotarySpring.c → cpDampedRotarySpring.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints/cpDampedRotarySpring.h → cpDampedRotarySpring.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/constraints/cpDampedSpring.c → cpDampedSpring.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints/cpDampedSpring.h → cpDampedSpring.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/constraints/cpGearJoint.c → cpGearJoint.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/constraints/cpGrooveJoint.c → cpGrooveJoint.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/cpHashSet.c → cpHashSet.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/cpHashSet.h → cpHashSet.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/constraints/cpPinJoint.c → cpPinJoint.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/constraints/cpPivotJoint.c → cpPivotJoint.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/cpPolyShape.c → cpPolyShape.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/cpPolyShape.h → cpPolyShape.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/constraints/cpRatchetJoint.c → cpRatchetJoint.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/constraints/cpRotaryLimitJoint.c → cpRotaryLimitJoint.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/cpShape.c → cpShape.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/cpShape.h → cpShape.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/constraints/cpSimpleMotor.c → cpSimpleMotor.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints/cpSimpleMotor.h → cpSimpleMotor.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/constraints/cpSlideJoint.c → cpSlideJoint.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/cpSpace.c → cpSpace.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/cpSpace.h → cpSpace.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/cpSpaceComponent.c → cpSpaceComponent.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/cpSpaceHash.c → cpSpaceHash.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/cpSpaceHash.h → cpSpaceHash.h} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/cpSpaceQuery.c → cpSpaceQuery.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/cpSpaceStep.c → cpSpaceStep.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/cpVect.c → cpVect.c} +0 -0
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/cpVect.h → cpVect.h} +0 -0
- data/ext/chipmunk/extconf.rb +15 -43
- data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/prime.h → prime.h} +0 -0
- data/lib/1.9/chipmunk.so +0 -0
- metadata +57 -57
data/README
CHANGED
@@ -3,11 +3,11 @@ Ruby Bindings to Chipmunk Physics Version 5.3.4
|
|
3
3
|
(C) Scott Lembcke, Beoran and John Mair (banisterfiend)
|
4
4
|
|
5
5
|
IMPORTANT NOTICE:
|
6
|
-
This is version 5.3.4.
|
6
|
+
This is version 5.3.4.3 of the bindings for MRI Ruby 1.8.x and 1.9.x to
|
7
7
|
Chipmunk version 5.3.4.
|
8
8
|
|
9
9
|
(1) 1/10/09 Cross-Platform Gem built by John Mair (banisterfiend)
|
10
|
-
* Just go: gem install chipmunk
|
10
|
+
* Just go: gem install chipmunk
|
11
11
|
|
12
12
|
FORUM:
|
13
13
|
http://www.slembcke.net/forums
|
@@ -17,61 +17,68 @@ CONTACT:
|
|
17
17
|
beoran@rubyforge.org for these bindings to Ruby.
|
18
18
|
|
19
19
|
ABOUT CHIPMUNK:
|
20
|
-
Chipmunk is a simple, lightweight and fast 2D rigid body physics library
|
21
|
-
written in C by Slembcke. It's licensed under the unrestrictive, OSI approved
|
22
|
-
MIT license.
|
23
|
-
|
24
|
-
ABOUT THESE RUBY BINDINGS:
|
25
|
-
Although chipmunk comes with ruby bindings, they are not always up to date
|
20
|
+
Chipmunk is a simple, lightweight and fast 2D rigid body physics library
|
21
|
+
written in C by Slembcke. It's licensed under the unrestrictive, OSI approved
|
22
|
+
MIT license.
|
23
|
+
|
24
|
+
ABOUT THESE RUBY BINDINGS:
|
25
|
+
Although chipmunk comes with ruby bindings, they are not always up to date
|
26
26
|
with regards to the functionality of the C library, and historically, they
|
27
|
-
have been incompatible with recent versions of Ruby.
|
28
|
-
|
29
|
-
Therefore, these bindings are intended to as an enhanced version with more
|
30
|
-
features and better compatibility with recent versions of Ruby. They are also
|
31
|
-
intended to be an alternative to the chipmunk-ffi bindings when performance
|
32
|
-
is of the utmost importance, as it may be for games.
|
33
|
-
|
27
|
+
have been incompatible with recent versions of Ruby.
|
28
|
+
|
29
|
+
Therefore, these bindings are intended to as an enhanced version with more
|
30
|
+
features and better compatibility with recent versions of Ruby. They are also
|
31
|
+
intended to be an alternative to the chipmunk-ffi bindings when performance
|
32
|
+
is of the utmost importance, as it may be for games.
|
33
|
+
|
34
34
|
The intent is for these bindings to be mostly source code compatible with the
|
35
35
|
FFI bindings. Main exceptions are when it did not support the functionality I
|
36
36
|
added yet. All this is documented by specs and by the html documentation.
|
37
|
-
|
37
|
+
|
38
38
|
If you have any problems with these bindings, please contact the maintainer at
|
39
|
-
beoran@rubyforge.org, or report the issue on the issue tracker:
|
39
|
+
beoran@rubyforge.org, or report the issue on the issue tracker:
|
40
40
|
https://github.com/beoran/chipmunk/issues
|
41
|
-
|
41
|
+
|
42
42
|
INSTALLATION
|
43
|
-
Clone this repository, go into the ext directory and do
|
43
|
+
Clone this repository, go into the ext directory and do:
|
44
|
+
|
44
45
|
ruby extconf.rb ; make ; make install
|
45
|
-
|
46
|
-
There is a gem available
|
47
|
-
|
48
|
-
|
46
|
+
|
47
|
+
There is also a gem available for Linux and OS/X, and a binary gem for Windows,
|
48
|
+
which you can try to install with:
|
49
|
+
|
50
|
+
gem install chipmunk
|
51
|
+
|
52
|
+
However, due to incompatilties in the latest versions of
|
53
|
+
Rake, Rake-Compiler and rubygems, the gem method of installation may fail for
|
54
|
+
you. This will be solved when these incompatibilities are solved by these
|
49
55
|
upstream tools.
|
50
56
|
|
51
|
-
These bindings vendor Chipmunk 5.3.4 with a few extra patches, so
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
make ; make install
|
56
|
-
|
57
|
+
These bindings vendor Chipmunk 5.3.4 with a few extra patches, so you don't
|
58
|
+
need to have it installed. Optionally, the C chipmunk library may be installed
|
59
|
+
separately. To compile without vendoring, go to the ext/chipmunk directory and
|
60
|
+
compile with:
|
61
|
+
ruby extconf.rb --disable-vendor ; make ; make install
|
62
|
+
|
63
|
+
|
57
64
|
DOCUMENTATION:
|
58
65
|
Full handcrafted documentation based on the C documentation is available at:
|
59
66
|
http://beoran.github.com/chipmunk/
|
60
|
-
|
67
|
+
|
61
68
|
CHANGES:
|
62
69
|
* Since 5.3.4.1: Vendored chipmunk again, cleanly. Several bugfixes.
|
63
|
-
* Since 5.1.0 : Much more of Chipmunk's functionality is wrapped. Unvendored
|
70
|
+
* Since 5.1.0 : Much more of Chipmunk's functionality is wrapped. Unvendored
|
64
71
|
chipmunk. More specs and documentation.
|
65
|
-
|
72
|
+
|
66
73
|
KNOWN BUGS:
|
67
74
|
* There are no bindings to SpaceHash since I think they are not so useful
|
68
75
|
anymore since Chipmunk supports BB queries.
|
69
76
|
* Some methods may crash with a segentation violation in case they are not
|
70
77
|
used correctly, according to the underlying requirements of the C library.
|
71
|
-
|
78
|
+
|
72
79
|
CONTRACTING:
|
73
|
-
Howling Moon Software (Slembke's company) is available for contracting if you
|
74
|
-
want to make the physics in your game really stand out. Feel free to contact
|
80
|
+
Howling Moon Software (Slembke's company) is available for contracting if you
|
81
|
+
want to make the physics in your game really stand out. Feel free to contact
|
75
82
|
them through their webpage: http://howlingmoonsoftware.com/contracting.php
|
76
83
|
|
77
84
|
TODO:
|
@@ -85,7 +92,7 @@ TODO:
|
|
85
92
|
INFO FOR MAINTAINERS:
|
86
93
|
|
87
94
|
(1) 1/10/09 Cross-Platform Gem built by John Mair (banisterfiend)
|
88
|
-
* Just go: gem install chipmunk
|
95
|
+
* Just go: gem install chipmunk
|
89
96
|
|
90
97
|
(2) Patched for 1.9.1 by Beoran (beoran@rubyforge.org)
|
91
98
|
|
data/Rakefile
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Rakefile added by John Mair (banisterfiend)
|
2
|
-
|
2
|
+
|
3
3
|
# require 'psych'
|
4
4
|
require 'rake'
|
5
5
|
require 'rake/clean'
|
@@ -7,7 +7,7 @@ require 'rubygems'
|
|
7
7
|
require 'rubygems/package_task'
|
8
8
|
|
9
9
|
|
10
|
-
|
10
|
+
|
11
11
|
begin
|
12
12
|
require 'rake/extensiontask'
|
13
13
|
rescue LoadError
|
@@ -16,21 +16,21 @@ rescue LoadError
|
|
16
16
|
# require 'rake/extensiontask'
|
17
17
|
# puts "...done!"
|
18
18
|
end
|
19
|
-
|
20
|
-
CHIPMUNK_VERSION = "5.3.4.
|
19
|
+
|
20
|
+
CHIPMUNK_VERSION = "5.3.4.4"
|
21
21
|
VENDORED_CHIPMUNK = 'chipmunk-5.3.4'
|
22
22
|
VENDORED_SRC_DIR = File.join('vendor', VENDORED_CHIPMUNK, 'src')
|
23
23
|
VENDORED_SRC_DIR2 = File.join('vendor', VENDORED_CHIPMUNK, 'src', 'constraints')
|
24
24
|
VENDORED_INCLUDE_DIR = File.join('vendor', VENDORED_CHIPMUNK, 'include', 'chipmunk')
|
25
25
|
|
26
26
|
|
27
|
-
|
27
|
+
|
28
28
|
dlext = Config::CONFIG['DLEXT']
|
29
|
-
|
29
|
+
|
30
30
|
CLEAN.include("ext/**/*.#{dlext}", "ext/**/.log", "ext/**/.o", "ext/**/*~", "ext/**/*#*", "ext/**/.obj", "ext/**/.def", "ext/**/.pdb")
|
31
31
|
CLOBBER.include("**/*.#{dlext}", "**/*~", "**/*#*", "**/*.log", "**/*.o", "doc/**")
|
32
32
|
|
33
|
-
|
33
|
+
|
34
34
|
def apply_spec_defaults(s)
|
35
35
|
s.name = "chipmunk"
|
36
36
|
s.summary = "Enhanced ruby bindings for the chipmunk 5.3.4 game physics engine."
|
@@ -42,40 +42,40 @@ def apply_spec_defaults(s)
|
|
42
42
|
s.require_path = 'lib'
|
43
43
|
s.homepage = "https://github.com/beoran/chipmunk"
|
44
44
|
end
|
45
|
-
|
46
|
-
|
45
|
+
|
46
|
+
|
47
47
|
# common tasks
|
48
48
|
task :compile => :clean
|
49
|
-
|
49
|
+
|
50
50
|
# platform dependent tasks
|
51
51
|
if RUBY_PLATFORM =~ /darwin/
|
52
|
-
|
52
|
+
|
53
53
|
spec = Gem::Specification.new do |s|
|
54
|
-
apply_spec_defaults(s)
|
54
|
+
apply_spec_defaults(s)
|
55
55
|
s.platform = Gem::Platform::CURRENT
|
56
56
|
s.files = ["Rakefile", "README", "LICENSE", "lib/chipmunk.rb", "lib/1.8/chipmunk.#{dlext}", "lib/1.9/chipmunk.#{dlext}"] +
|
57
57
|
FileList["ext/**/extconf.rb", "ext/**/*.h", "ext/**/*.c"].to_a
|
58
58
|
end
|
59
|
-
|
59
|
+
|
60
60
|
Rake::ExtensionTask.new('chipmunk') do |ext|
|
61
61
|
ext.ext_dir = "ext"
|
62
62
|
ext.lib_dir = "lib/#{RUBY_VERSION[0..2]}"
|
63
63
|
ext.config_script = 'extconf.rb'
|
64
64
|
ext.config_options << '--enable-macosx'
|
65
65
|
end
|
66
|
-
|
66
|
+
|
67
67
|
task :compile_multi => :clean do
|
68
68
|
`/bin/bash -l -c "rvm 1.8.6,1.9.2 rake compile"`
|
69
69
|
end
|
70
|
-
|
70
|
+
|
71
71
|
task :gem => :compile_multi
|
72
72
|
Gem::PackageTask.new(spec) do |pkg|
|
73
73
|
pkg.need_zip = false
|
74
74
|
pkg.need_tar = false
|
75
75
|
end
|
76
|
-
|
76
|
+
|
77
77
|
else
|
78
|
-
|
78
|
+
|
79
79
|
spec = Gem::Specification.new do |s|
|
80
80
|
apply_spec_defaults(s)
|
81
81
|
s.platform = Gem::Platform::RUBY
|
@@ -83,18 +83,18 @@ else
|
|
83
83
|
s.files = ["Rakefile", "README", "LICENSE", "lib/chipmunk.rb"] +
|
84
84
|
FileList["ext/**/extconf.rb", "ext/**/*.h", "ext/**/*.c"].to_a
|
85
85
|
end
|
86
|
-
|
86
|
+
|
87
87
|
# add your default gem packing task
|
88
88
|
Gem::PackageTask.new(spec) do |pkg|
|
89
89
|
pkg.need_zip = false
|
90
90
|
pkg.need_tar = false
|
91
91
|
end
|
92
|
-
|
92
|
+
|
93
93
|
Rake::ExtensionTask.new('chipmunk', spec) do |ext|
|
94
94
|
ext.config_script = 'extconf.rb'
|
95
95
|
ext.cross_compile = true
|
96
96
|
ext.cross_platform = 'i586-mingw32'
|
97
97
|
# ext.cross_platform = 'i386-mswin32'
|
98
98
|
end
|
99
|
-
|
99
|
+
|
100
100
|
end
|
File without changes
|
File without changes
|
File without changes
|
data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/chipmunk_private.h → chipmunk_private.h}
RENAMED
File without changes
|
data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/chipmunk_types.h → chipmunk_types.h}
RENAMED
File without changes
|
data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/chipmunk_unsafe.h → chipmunk_unsafe.h}
RENAMED
File without changes
|
data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints → constraints}/cpConstraint.h
RENAMED
File without changes
|
data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints → constraints}/cpGearJoint.h
RENAMED
File without changes
|
data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints → constraints}/cpGrooveJoint.h
RENAMED
File without changes
|
data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints → constraints}/cpPinJoint.h
RENAMED
File without changes
|
data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints → constraints}/cpPivotJoint.h
RENAMED
File without changes
|
File without changes
|
File without changes
|
data/ext/chipmunk/{vendor/chipmunk-5.3.4/include/chipmunk/constraints → constraints}/cpSlideJoint.h
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/constraints/cpDampedSpring.c → cpDampedSpring.c}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/ext/chipmunk/{vendor/chipmunk-5.3.4/src/constraints/cpRatchetJoint.c → cpRatchetJoint.c}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/ext/chipmunk/extconf.rb
CHANGED
@@ -2,11 +2,11 @@ require 'mkmf'
|
|
2
2
|
|
3
3
|
RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
|
4
4
|
|
5
|
-
if ARGV.member?('--help') || ARGV.member?('-?')
|
5
|
+
if ARGV.member?('--help') || ARGV.member?('-?')
|
6
6
|
puts "ruby extconf.rb:"
|
7
7
|
puts "Options for the Ruby bindings to Chipmunk: "
|
8
|
-
puts "--disable-vendor Disables vendoring Chipmunk."
|
9
|
-
puts "--enable-vendor Enables vendoring Chipmunk."
|
8
|
+
# puts "--disable-vendor Disables vendoring Chipmunk."
|
9
|
+
# puts "--enable-vendor Enables vendoring Chipmunk."
|
10
10
|
puts "--enable-macosx Enables compiling for OS-X."
|
11
11
|
puts "--enable-64 Enables compiling to 64 bits targets."
|
12
12
|
puts
|
@@ -17,61 +17,33 @@ p "pwd", Dir.pwd
|
|
17
17
|
|
18
18
|
dir_config('chipmunk')
|
19
19
|
|
20
|
-
VENDORED_CHIPMUNK = 'chipmunk-5.3.4'
|
21
|
-
VENDORED_SRC_DIR = File.join($srcdir, 'vendor', VENDORED_CHIPMUNK, 'src')
|
22
|
-
VENDORED_SRC_DIR2 = File.join($srcdir, 'vendor', VENDORED_CHIPMUNK, 'src',
|
23
|
-
'constraints')
|
24
|
-
VENDORED_INCLUDE_DIR = File.join($srcdir, 'vendor', VENDORED_CHIPMUNK, 'include'
|
25
|
-
|
26
|
-
|
20
|
+
# VENDORED_CHIPMUNK = 'chipmunk-5.3.4'
|
21
|
+
# VENDORED_SRC_DIR = File.join($srcdir, 'vendor', VENDORED_CHIPMUNK, 'src')
|
22
|
+
# VENDORED_SRC_DIR2 = File.join($srcdir, 'vendor', VENDORED_CHIPMUNK, 'src',
|
23
|
+
# 'constraints')
|
24
|
+
# VENDORED_INCLUDE_DIR = File.join($srcdir, 'vendor', VENDORED_CHIPMUNK, 'include'
|
25
|
+
# 'chipmunk')
|
27
26
|
|
28
27
|
MINGW = '/usr/i586-mingw32msvc'
|
29
28
|
CHIPMUNK_HEADER = 'chipmunk.h'
|
30
29
|
CHIPMUNK_NAME = 'chipmunk'
|
31
30
|
CHIPMUNK_FUNCTION = 'cpMomentForPoly'
|
32
|
-
CHIPMUNK_INCLUDE = [ '/usr/include',
|
31
|
+
CHIPMUNK_INCLUDE = [ '/usr/include',
|
33
32
|
File.join(MINGW, 'include'),
|
34
33
|
File.join(MINGW, 'include', 'chipmunk'),
|
35
|
-
'/usr/local/include',
|
34
|
+
'/usr/local/include',
|
36
35
|
'/usr/include/chipmunk',
|
37
36
|
'/usr/local/include/chipmunk'
|
38
37
|
]
|
39
38
|
CHIPMUNK_LIBDIR = ['/usr/lib', File.join(MINGW, 'lib'), '/usr/local/lib']
|
40
39
|
|
41
40
|
# This is a bit of a trick to cleanly vendor the chipmunk C library.
|
42
|
-
sources = Dir.glob(File.join($srcdir, 'rb_*.c')).to_a
|
41
|
+
# sources = Dir.glob(File.join($srcdir, 'rb_*.c')).to_a
|
43
42
|
# normally, we need the rb_xxx files...
|
44
43
|
|
44
|
+
have_header('chipmunk.h')
|
45
45
|
|
46
|
-
if enable_config("
|
47
|
-
unless find_header(CHIPMUNK_HEADER, VENDORED_INCLUDE_DIR)
|
48
|
-
raise "Vendored chipmunk #{VENDORED_INCLUDE_DIR} not found!"
|
49
|
-
end
|
50
|
-
CHIPMUNK_INCLUDE .unshift(VENDORED_INCLUDE_DIR)
|
51
|
-
sources += Dir.glob(File.join(VENDORED_SRC_DIR, '*.c'))
|
52
|
-
sources += Dir.glob(File.join(VENDORED_SRC_DIR2, '*.c'))
|
53
|
-
# when vendoring, also include the needed c files files...
|
54
|
-
|
55
|
-
|
56
|
-
else
|
57
|
-
unless find_header(CHIPMUNK_HEADER, *CHIPMUNK_INCLUDE)
|
58
|
-
raise "Could not find Chipmunk headers!"
|
59
|
-
end
|
60
|
-
|
61
|
-
unless find_library(CHIPMUNK_NAME, CHIPMUNK_FUNCTION, *CHIPMUNK_LIBDIR)
|
62
|
-
raise "Could not link to Chipmunk library!"
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# this is the core of the trick, it overrides create_makefile's looking for
|
67
|
-
# based on the c files
|
68
|
-
$objs = sources.map { |s| s.gsub(/.c\Z/,'.o') }
|
69
|
-
|
70
|
-
|
71
|
-
=begin
|
72
|
-
have_header('chipmunk.h', include_dirs)
|
73
|
-
=end
|
74
|
-
if enable_config("macosx", false)
|
46
|
+
if enable_config("macosx", false)
|
75
47
|
$CFLAGS += ' -arch ppc -arch i386 -arch x86_64'
|
76
48
|
$LDFLAGS += ' -arch x86_64 -arch i386 -arch ppc'
|
77
49
|
end
|
@@ -79,7 +51,7 @@ end
|
|
79
51
|
if enable_config("64", false)
|
80
52
|
$CFLAGS += ' -m64'
|
81
53
|
end
|
82
|
-
|
54
|
+
|
83
55
|
$CFLAGS += ' -std=gnu99 -ffast-math -DNDEBUG '
|
84
56
|
create_makefile('chipmunk')
|
85
57
|
|
File without changes
|
data/lib/1.9/chipmunk.so
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chipmunk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.3.4.
|
4
|
+
version: 5.3.4.4
|
5
5
|
prerelease:
|
6
6
|
platform: x86-mingw32
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-05-
|
12
|
+
date: 2011-05-24 00:00:00.000000000 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
description: ! 'Enhanced ruby bindings for the chipmunk 5.3.4 game physics engine. '
|
@@ -23,70 +23,70 @@ files:
|
|
23
23
|
- LICENSE
|
24
24
|
- lib/chipmunk.rb
|
25
25
|
- ext/chipmunk/extconf.rb
|
26
|
-
- ext/chipmunk/
|
27
|
-
- ext/chipmunk/
|
28
|
-
- ext/chipmunk/
|
29
|
-
- ext/chipmunk/
|
30
|
-
- ext/chipmunk/
|
31
|
-
- ext/chipmunk/
|
32
|
-
- ext/chipmunk/
|
33
|
-
- ext/chipmunk/
|
34
|
-
- ext/chipmunk/
|
35
|
-
- ext/chipmunk/
|
36
|
-
- ext/chipmunk/
|
37
|
-
- ext/chipmunk/
|
38
|
-
- ext/chipmunk/
|
39
|
-
- ext/chipmunk/
|
40
|
-
- ext/chipmunk/
|
41
|
-
- ext/chipmunk/
|
42
|
-
- ext/chipmunk/
|
43
|
-
- ext/chipmunk/
|
44
|
-
- ext/chipmunk/
|
45
|
-
- ext/chipmunk/
|
46
|
-
- ext/chipmunk/
|
47
|
-
- ext/chipmunk/
|
48
|
-
- ext/chipmunk/
|
49
|
-
- ext/chipmunk/
|
50
|
-
- ext/chipmunk/
|
51
|
-
- ext/chipmunk/
|
52
|
-
- ext/chipmunk/vendor/chipmunk-5.3.4/include/chipmunk/chipmunk.h
|
53
|
-
- ext/chipmunk/vendor/chipmunk-5.3.4/include/chipmunk/cpPolyShape.h
|
54
|
-
- ext/chipmunk/vendor/chipmunk-5.3.4/src/prime.h
|
26
|
+
- ext/chipmunk/cpSimpleMotor.h
|
27
|
+
- ext/chipmunk/cpHashSet.h
|
28
|
+
- ext/chipmunk/cpDampedRotarySpring.h
|
29
|
+
- ext/chipmunk/chipmunk_private.h
|
30
|
+
- ext/chipmunk/chipmunk_types.h
|
31
|
+
- ext/chipmunk/prime.h
|
32
|
+
- ext/chipmunk/chipmunk_unsafe.h
|
33
|
+
- ext/chipmunk/cpDampedSpring.h
|
34
|
+
- ext/chipmunk/cpSpace.h
|
35
|
+
- ext/chipmunk/cpArbiter.h
|
36
|
+
- ext/chipmunk/chipmunk_ffi.h
|
37
|
+
- ext/chipmunk/cpBody.h
|
38
|
+
- ext/chipmunk/cpVect.h
|
39
|
+
- ext/chipmunk/cpSpaceHash.h
|
40
|
+
- ext/chipmunk/constraints/cpRotaryLimitJoint.h
|
41
|
+
- ext/chipmunk/constraints/cpGrooveJoint.h
|
42
|
+
- ext/chipmunk/constraints/cpPivotJoint.h
|
43
|
+
- ext/chipmunk/constraints/cpPinJoint.h
|
44
|
+
- ext/chipmunk/constraints/util.h
|
45
|
+
- ext/chipmunk/constraints/cpSlideJoint.h
|
46
|
+
- ext/chipmunk/constraints/cpConstraint.h
|
47
|
+
- ext/chipmunk/constraints/cpRatchetJoint.h
|
48
|
+
- ext/chipmunk/constraints/cpGearJoint.h
|
49
|
+
- ext/chipmunk/cpCollision.h
|
50
|
+
- ext/chipmunk/cpShape.h
|
51
|
+
- ext/chipmunk/cpBB.h
|
55
52
|
- ext/chipmunk/rb_chipmunk.h
|
53
|
+
- ext/chipmunk/cpArray.h
|
54
|
+
- ext/chipmunk/chipmunk.h
|
55
|
+
- ext/chipmunk/cpPolyShape.h
|
56
56
|
- ext/chipmunk/rb_chipmunk.c
|
57
|
+
- ext/chipmunk/cpRotaryLimitJoint.c
|
58
|
+
- ext/chipmunk/cpShape.c
|
57
59
|
- ext/chipmunk/rb_cpBody.c
|
60
|
+
- ext/chipmunk/cpPinJoint.c
|
61
|
+
- ext/chipmunk/cpSimpleMotor.c
|
58
62
|
- ext/chipmunk/rb_cpBB.c
|
63
|
+
- ext/chipmunk/cpVect.c
|
64
|
+
- ext/chipmunk/cpPivotJoint.c
|
59
65
|
- ext/chipmunk/rb_cpShape.c
|
66
|
+
- ext/chipmunk/cpRatchetJoint.c
|
67
|
+
- ext/chipmunk/cpArbiter.c
|
68
|
+
- ext/chipmunk/cpSlideJoint.c
|
60
69
|
- ext/chipmunk/rb_cpConstraint.c
|
61
70
|
- ext/chipmunk/rb_cpVect.c
|
62
71
|
- ext/chipmunk/rb_cpArbiter.c
|
72
|
+
- ext/chipmunk/cpArray.c
|
73
|
+
- ext/chipmunk/cpSpaceHash.c
|
74
|
+
- ext/chipmunk/cpSpaceStep.c
|
63
75
|
- ext/chipmunk/rb_cpSpace.c
|
64
|
-
- ext/chipmunk/
|
65
|
-
- ext/chipmunk/
|
66
|
-
- ext/chipmunk/
|
67
|
-
- ext/chipmunk/
|
68
|
-
- ext/chipmunk/
|
69
|
-
- ext/chipmunk/
|
70
|
-
- ext/chipmunk/
|
71
|
-
- ext/chipmunk/
|
72
|
-
- ext/chipmunk/
|
73
|
-
- ext/chipmunk/
|
74
|
-
- ext/chipmunk/
|
75
|
-
- ext/chipmunk/
|
76
|
-
- ext/chipmunk/
|
77
|
-
- ext/chipmunk/
|
78
|
-
- ext/chipmunk/vendor/chipmunk-5.3.4/src/constraints/cpConstraint.c
|
79
|
-
- ext/chipmunk/vendor/chipmunk-5.3.4/src/constraints/cpDampedSpring.c
|
80
|
-
- ext/chipmunk/vendor/chipmunk-5.3.4/src/constraints/cpGrooveJoint.c
|
81
|
-
- ext/chipmunk/vendor/chipmunk-5.3.4/src/constraints/cpGearJoint.c
|
82
|
-
- ext/chipmunk/vendor/chipmunk-5.3.4/src/cpHashSet.c
|
83
|
-
- ext/chipmunk/vendor/chipmunk-5.3.4/src/cpCollision.c
|
84
|
-
- ext/chipmunk/vendor/chipmunk-5.3.4/src/cpBody.c
|
85
|
-
- ext/chipmunk/vendor/chipmunk-5.3.4/src/chipmunk.c
|
86
|
-
- ext/chipmunk/vendor/chipmunk-5.3.4/src/cpSpaceComponent.c
|
87
|
-
- ext/chipmunk/vendor/chipmunk-5.3.4/src/cpBB.c
|
88
|
-
- ext/chipmunk/vendor/chipmunk-5.3.4/src/cpSpaceQuery.c
|
89
|
-
- ext/chipmunk/vendor/chipmunk-5.3.4/src/cpPolyShape.c
|
76
|
+
- ext/chipmunk/cpSpace.c
|
77
|
+
- ext/chipmunk/cpDampedRotarySpring.c
|
78
|
+
- ext/chipmunk/cpHashSet.c
|
79
|
+
- ext/chipmunk/cpCollision.c
|
80
|
+
- ext/chipmunk/cpBody.c
|
81
|
+
- ext/chipmunk/cpConstraint.c
|
82
|
+
- ext/chipmunk/cpDampedSpring.c
|
83
|
+
- ext/chipmunk/chipmunk.c
|
84
|
+
- ext/chipmunk/cpGrooveJoint.c
|
85
|
+
- ext/chipmunk/cpSpaceComponent.c
|
86
|
+
- ext/chipmunk/cpBB.c
|
87
|
+
- ext/chipmunk/cpSpaceQuery.c
|
88
|
+
- ext/chipmunk/cpPolyShape.c
|
89
|
+
- ext/chipmunk/cpGearJoint.c
|
90
90
|
- lib/1.9/chipmunk.so
|
91
91
|
has_rdoc: true
|
92
92
|
homepage: https://github.com/beoran/chipmunk
|