From 638f2e2b16dbc14324db59d6daf3251542d9627d Mon Sep 17 00:00:00 2001 From: Emerson MX Date: Sat, 3 Aug 2024 20:07:23 -0300 Subject: [PATCH] Add moderngl recipe --- pythonforandroid/recipes/moderngl/__init__.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pythonforandroid/recipes/moderngl/__init__.py diff --git a/pythonforandroid/recipes/moderngl/__init__.py b/pythonforandroid/recipes/moderngl/__init__.py new file mode 100644 index 0000000000..38564eb7ce --- /dev/null +++ b/pythonforandroid/recipes/moderngl/__init__.py @@ -0,0 +1,17 @@ +from pythonforandroid.recipe import CppCompiledComponentsPythonRecipe + + +class ModernGLRecipe(CppCompiledComponentsPythonRecipe): + version = '5.10.0' + url = 'https://github.com/moderngl/moderngl/archive/refs/tags/{version}.tar.gz' + + site_packages_name = 'moderngl' + name = 'moderngl' + + def get_recipe_env(self, arch): + env = super().get_recipe_env(arch) + env['LDFLAGS'] += ' -lstdc++' + return env + + +recipe = ModernGLRecipe()