2017-08-13 03:24:00 +02:00
|
|
|
from pythonforandroid.recipe import CompiledComponentsPythonRecipe
|
|
|
|
|
|
|
|
|
|
|
|
class PymunkRecipe(CompiledComponentsPythonRecipe):
|
|
|
|
name = "pymunk"
|
2022-12-02 21:15:34 +01:00
|
|
|
version = "6.0.0"
|
|
|
|
url = "https://pypi.python.org/packages/source/p/pymunk/pymunk-{version}.zip"
|
|
|
|
depends = ["cffi", "setuptools"]
|
2017-08-13 03:24:00 +02:00
|
|
|
call_hostpython_via_targetpython = False
|
|
|
|
|
|
|
|
def get_recipe_env(self, arch):
|
2022-12-02 21:15:34 +01:00
|
|
|
env = super().get_recipe_env(arch)
|
|
|
|
env["LDFLAGS"] += " -llog" # Used by Chipmunk cpMessage
|
|
|
|
env["LDFLAGS"] += " -lm" # For older versions of Android
|
2017-08-13 03:24:00 +02:00
|
|
|
return env
|
|
|
|
|
2019-03-30 21:58:45 +01:00
|
|
|
|
2017-08-13 03:24:00 +02:00
|
|
|
recipe = PymunkRecipe()
|