8000 uploading aubio recipe · kivy/python-for-android@6069f27 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6069f27

Browse files
authored
uploading aubio recipe
1 parent 62a5e41 commit 6069f27

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# recipe for aubio package
2+
from pythonforandroid.recipe import CompiledComponentsPythonRecipe, CythonRecipe
3+
from os.path import join
4+
5+
6+
class AubioRecipe(CythonRecipe):
7+
version = '0.4.7'
8+
#source_dir = '/home/jk/Downloads/aubio-0.4.7/'
9+
url = 'https://aubio.org/pub/aubio-{version}.tar.bz2'
10+
#url = source_dir
11+
depends = ['numpy'] # Make sure 'samplerate' is included as a dependency
12+
patches =[join('patches', 'build_ext.patch')]
13+
#install_in_hostpython = True
14+
#call_hostpython_via_targetpython = False
15+
16+
17+
# def get_recipe_env(self, arch=None, with_flags_in_cc=True):
18+
# env = super().get_recipe_env(arch, with_flags_in_cc=True)
19+
# # Add the WAFOPTS variable to disable specific features
20+
# env['WAFOPTS'] = '--disable-avcodec --disable-samplerate --disable-jack --disable-sndfile'
21+
# env['PKG_CONFIG_PATH'] = '/home/jk/Downloads/aubio-0.4.7/build/' + env.get('PKG_CONFIG_PATH', '')
22+
# env['LD_LIBRARY_PATH'] = '/home/jk/Downloads/aubio-0.4.7/build/src/'
23+
#
24+
## env['CFLAGS'] += ' -I/usr/lib/x86_64-linux-gnu/'
25+
# #env['CFLAGS'] += ' -DHAVE_SAMPLERATE=0'
26+
## env['CC'] += '/home/jk/Downloads/aubio-0.4.7/contrib/toolchain-android-19-arm/bin/arm-linux-androideabi-gcc-4.9'
27+
# return env
28+
##
29+
## def build_arch(self, arch):
30+
## super().build_arch(arch)
31+
## # You may need to perform additional build steps specific to aubio
32+
## # For example:
33+
## # self.run_python('-m pip install --no-deps --force-reinstall --target={} .'.format(self.get_build_dir(arch.arch)))
34+
##
35+
## def install(self):
36+
## super().install()
37+
## # You may need to perform additional installation steps specific to aubio
38+
## # For example:
39+
## # self.run_python('-m pip install --no-deps --force-reinstall --target={} .'.format(self.get_install_dir()))
40+
##
41+
## def get_recipe_depends(self, arch):
42+
## depends = super().get_recipe_depends(arch)
43+
## # You may need to include additional dependencies specific to aubio
44+
## # For example:
45+
## # depends['python3'] = self.ctx.python_recipe
46+
## return depends
47+
48+
49+
recipe = AubioRecipe()
50+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff -Naur a/python/lib/moresetuptools.py b/python/lib/moresetuptools.py
2+
3+
--- a/python/lib/moresetuptools.py 2024-02-01 22:35:52.713443658 -0500
4+
+++ b/python/lib/moresetuptools.py.bkup 2024-02-02 00:54:22.274822119 -0500
5+
@@ -179,7 +179,7 @@
6+
add_local_aubio_lib(extension)
7+
else:
8+
# check for external dependencies
9+
- add_external_deps(extension, usedouble=enable_double)
10+
+ #add_external_deps(extension, usedouble=enable_double)
11+
# force adding libav on windows
12+
if os.name == 'nt' and ('WITH_LIBAV' in os.environ \
13+
or 'CONDA_PREFIX' in os.environ):

0 commit comments

Comments
 (0)
0