|
5 | 5 |
|
6 | 6 | class AubioRecipe(CythonRecipe):
|
7 | 7 | version = '0.4.7'
|
8 |
| - #source_dir = '/home/jk/Downloads/aubio-0.4.7/' |
9 | 8 | url = 'https://aubio.org/pub/aubio-{version}.tar.bz2'
|
10 |
| - #url = source_dir |
11 | 9 | depends = ['numpy'] # Make sure 'samplerate' is included as a dependency
|
12 | 10 | 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 | 11 |
|
48 | 12 |
|
49 | 13 | recipe = AubioRecipe()
|
|
0 commit comments