Skip to content

Commit

Permalink
new recipe for aubio. init and patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jk committed Aug 20, 2024
1 parent 3094c04 commit 3e982e5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pythonforandroid/recipes/aubio/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from pythonforandroid.recipe import CythonRecipe
from os.path import join


class AubioRecipe(CythonRecipe):
version = "0.4.7"
url = "https://aubio.org/pub/aubio-{version}.tar.bz2"
depends = ["numpy"] # Make sure 'samplerate' is included as a dependency
patches = [join("patches", "build_ext.patch")]


recipe = AubioRecipe()
13 changes: 13 additions & 0 deletions pythonforandroid/recipes/aubio/patches/build_ext.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff -Naur a/python/lib/moresetuptools.py b/python/lib/moresetuptools.py

--- a/python/lib/moresetuptools.py 2024-02-01 22:35:52.713443658 -0500
+++ b/python/lib/moresetuptools.py.bkup 2024-02-02 00:54:22.274822119 -0500
@@ -179,7 +179,7 @@
add_local_aubio_lib(extension)
else:
# check for external dependencies
- add_external_deps(extension, usedouble=enable_double)
+ #add_external_deps(extension, usedouble=enable_double)
# force adding libav on windows
if os.name == 'nt' and ('WITH_LIBAV' in os.environ \
or 'CONDA_PREFIX' in os.environ):

0 comments on commit 3e982e5

Please sign in to comment.