diff --git a/recipes/soxr/bld.bat b/recipes/soxr/bld.bat new file mode 100644 index 0000000000000..9e2572f21d032 --- /dev/null +++ b/recipes/soxr/bld.bat @@ -0,0 +1,22 @@ +mkdir build +cd build + +cmake ^ + -G "NMake Makefiles" ^ + -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ + -DCMAKE_BUILD_TYPE=Release ^ + -DBUILD_TESTING=ON ^ + %SRC_DIR% +if errorlevel 1 exit 1 + +:: Build. +cmake --build . --config Release +if errorlevel 1 exit 1 + +:: Install. +cmake --build . --config Release --target install +if errorlevel 1 exit 1 + +:: Test. +ctest --output-on-failure -C Release +if errorlevel 1 exit 1 diff --git a/recipes/soxr/build.sh b/recipes/soxr/build.sh new file mode 100644 index 0000000000000..70ad4769b81e5 --- /dev/null +++ b/recipes/soxr/build.sh @@ -0,0 +1,12 @@ + #!/bin/sh + +mkdir build +cd build + +cmake ${CMAKE_ARGS} .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTS=ON + +cmake --build . --config Release +cmake --build . --config Release --target install +ctest --output-on-failure -C Release diff --git a/recipes/soxr/meta.yaml b/recipes/soxr/meta.yaml new file mode 100644 index 0000000000000..fd7dadd5a59d7 --- /dev/null +++ b/recipes/soxr/meta.yaml @@ -0,0 +1,46 @@ +{% set name = "soxr" %} +{% set version = "0.1.3" %} + +package: + name: {{ name }} + version: {{ version }} + +source: + url: https://downloads.sourceforge.net/project/{{ name }}/{{ name }}-{{ version }}-Source.tar.xz + sha256: b111c15fdc8c029989330ff559184198c161100a59312f5dc19ddeb9b5a15889 + +build: + number: 0 + +requirements: + build: + - cmake + - {{ compiler('c') }} + - make + - llvm-openmp # [osx] + - libgomp # [linux] + +test: + commands: + - test -f ${PREFIX}/include/soxr.h # [unix] + - test -f ${PREFIX}/lib/libsoxr.so # [linux] + - test -f ${PREFIX}/lib/libsoxr.dylib # [osx] + - if not exist %PREFIX%\\Library\\include\\soxr.h exit 1 # [win] + - if not exist %PREFIX%\\Library\\lib\\soxr.lib exit 1 # [win] + - if not exist %PREFIX%\\Library\\bin\\soxr.dll exit 1 # [win] + +about: + home: https://sourceforge.net/projects/soxr/ + license: LGPL-2.1-or-later + license_file: LICENCE + summary: 'The SoX Resampler library' + description: | + High quality, one-dimensional sample-rate conversion library + + doc_url: https://sourceforge.net/p/soxr/wiki/Home/ + dev_url: https://sourceforge.net/projects/soxr/ + +extra: + recipe-maintainers: + - HosameldinMohamed + - traversaro