X-Git-Url: https://git.aubio.org/?p=aubio.git;a=blobdiff_plain;f=python%2Flib%2Fmoresetuptools.py;h=f26aa32343d4c10cc4a367e053877609e7afee89;hp=6063f5f9df60d15fedfa94c1958653aa7a89be50;hb=24c207f23ec4eb69f5f92af98896e56def59af19;hpb=59be50dfa19e13f55ac5be918b9b6505cf679c14 diff --git a/python/lib/moresetuptools.py b/python/lib/moresetuptools.py index 6063f5f9..f26aa323 100644 --- a/python/lib/moresetuptools.py +++ b/python/lib/moresetuptools.py @@ -74,9 +74,8 @@ def add_local_macros(ext, usedouble = False): def add_external_deps(ext, usedouble = False): # loof for additional packages print("Info: looking for *optional* additional packages") - packages = ['libavcodec', 'libavformat', 'libavutil', 'libavresample', - 'jack', - 'jack', + packages = ['libavcodec', 'libavformat', 'libavutil', + 'libswresample', 'libavresample', 'sndfile', #'fftw3f', ] @@ -88,11 +87,13 @@ def add_external_deps(ext, usedouble = False): add_packages(packages, ext=ext) if 'avcodec' in ext.libraries \ and 'avformat' in ext.libraries \ - and 'avutil' in ext.libraries \ - and 'avresample' in ext.libraries: - ext.define_macros += [('HAVE_LIBAV', 1)] - if 'jack' in ext.libraries: - ext.define_macros += [('HAVE_JACK', 1)] + and 'avutil' in ext.libraries: + if 'swresample' in ext.libraries: + ext.define_macros += [('HAVE_SWRESAMPLE', 1)] + elif 'avresample' in ext.libraries: + ext.define_macros += [('HAVE_AVRESAMPLE', 1)] + if 'swresample' in ext.libraries or 'avresample' in ext.libraries: + ext.define_macros += [('HAVE_LIBAV', 1)] if 'sndfile' in ext.libraries: ext.define_macros += [('HAVE_SNDFILE', 1)] if 'samplerate' in ext.libraries: