Skip to content

Commit 180db28

Browse files
committed
Added preliminary recipes for mpl
1 parent 97e9706 commit 180db28

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
from pythonforandroid.toolchain import NDKRecipe
4+
5+
6+
class Freetype(NDKRecipe):
7+
version = 'master'
8+
url = 'https://github.com/inclement/p4a-freetype_ndk/archive/{version}.zip'
9+
dir_name = 'freetype'
10+
11+
patches = []
12+
13+
14+
recipe = Freetype()
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
from pythonforandroid.toolchain import CompiledComponentsPythonRecipe, warning
3+
4+
5+
class MatplotlibRecipe(CompiledComponentsPythonRecipe):
6+
7+
version = '1.5.0'
8+
url = 'https://github.com/matplotlib/matplotlib/archive/v{version}.zip'
9+
10+
depends = ['python2', 'numpy', 'freetype_ndk', 'png']
11+
12+
patches = []
13+
14+
15+
16+
recipe = MatplotlibRecipe()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
from pythonforandroid.toolchain import NDKRecipe
3+
4+
5+
class Libpng(NDKRecipe):
6+
version = 'master'
7+
url = 'https://github.com/inclement/p4a-libpng/archive/{version}.zip'
8+
dir_name = 'png'
9+
10+
patches = []
11+
12+
13+
recipe = Libpng()

pythonforandroid/recipes/sdl2/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class LibSDL2Recipe(NDKRecipe):
1111

1212
depends = ['python2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf']
1313
conflicts = ['sdl', 'pygame', 'pygame_bootstrap_components']
14+
opt_depends = ['freetype_ndk', 'png']
1415

1516
patches = ['add_nativeSetEnv.patch']
1617

0 commit comments

Comments
 (0)