Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add soxr recipe #17935

Merged
merged 31 commits into from
Apr 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f5d793b
Add soxr recipe
HosameldinMohamed Feb 3, 2022
ffdb96d
Update license
HosameldinMohamed Mar 22, 2022
fb351ff
Add `license_file` line
HosameldinMohamed Mar 22, 2022
906af17
add `home` line
HosameldinMohamed Mar 22, 2022
5a70eb9
add linux test
HosameldinMohamed Mar 22, 2022
8d0c85b
update build.sh
HosameldinMohamed Mar 23, 2022
d206c0b
add ninja requirement
HosameldinMohamed Mar 23, 2022
9ff2472
add host tinyxml
HosameldinMohamed Mar 23, 2022
dacda37
indent host key
HosameldinMohamed Mar 23, 2022
a2223da
add libgomp requirement
HosameldinMohamed Mar 23, 2022
41c6e22
move LICENSE file location
HosameldinMohamed Mar 23, 2022
b4e21b1
add install prefix
HosameldinMohamed Mar 23, 2022
6b4b1d3
remove $PREFIX variable
HosameldinMohamed Mar 23, 2022
0a17335
temp remove tests
HosameldinMohamed Mar 23, 2022
92aece9
remove install prefix
HosameldinMohamed Mar 23, 2022
e743579
add profile variable
HosameldinMohamed Mar 23, 2022
3298512
update LICENSE location
HosameldinMohamed Mar 23, 2022
cf08c9f
attempt to fix win build
HosameldinMohamed Mar 23, 2022
7623134
use Ninja for Windows too and add tests
HosameldinMohamed Mar 23, 2022
cddca12
fix selectors syntax
HosameldinMohamed Mar 23, 2022
9abb186
fix another selector
HosameldinMohamed Mar 23, 2022
e5df448
trigger checks
HosameldinMohamed Mar 23, 2022
94fc5d7
trigger checks 2
HosameldinMohamed Mar 23, 2022
197ac4e
use make instead of ninja
HosameldinMohamed Mar 24, 2022
e11a587
add traversaro
HosameldinMohamed Mar 24, 2022
c45cae9
fix typo
HosameldinMohamed Mar 24, 2022
42858a7
Update recipes/soxr/meta.yaml
HosameldinMohamed Apr 7, 2022
4e9b916
igr run exp. libstdc++ and rm tinyxml host
HosameldinMohamed Apr 7, 2022
702a607
fix ignore_run_export place
HosameldinMohamed Apr 7, 2022
628ab3b
ignore libstdcxx instd of libstdc++
HosameldinMohamed Apr 7, 2022
e315dc9
remove C++ compiler
HosameldinMohamed Apr 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions recipes/soxr/bld.bat
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions recipes/soxr/build.sh
Original file line number Diff line number Diff line change
@@ -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
46 changes: 46 additions & 0 deletions recipes/soxr/meta.yaml
Original file line number Diff line number Diff line change
@@ -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
HosameldinMohamed marked this conversation as resolved.
Show resolved Hide resolved
- traversaro