diff --git a/recipes/freebayes/0003-meson-macos.patch b/recipes/freebayes/0003-meson-macos.patch new file mode 100644 index 0000000000000..47e1176d8d7ad --- /dev/null +++ b/recipes/freebayes/0003-meson-macos.patch @@ -0,0 +1,13 @@ +diff --git a/meson.build b/meson.build +index 66b8016..bf0bf10 100644 +--- a/meson.build ++++ b/meson.build +@@ -16,7 +16,7 @@ + + project('freebayes', ['cpp', 'c'], + version : '1.3.7', +- default_options : ['warning_level=1', 'cpp_std=c++17', 'optimization=3']) ++ default_options : ['warning_level=1', 'cpp_std=c++14', 'optimization=3']) + static_build = get_option('static') + + cc = meson.get_compiler('cpp') diff --git a/recipes/freebayes/LICENSE b/recipes/freebayes/LICENSE deleted file mode 100644 index 9e3322e991a3d..0000000000000 --- a/recipes/freebayes/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2010 Erik Garrison, Gabor Marth - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/recipes/freebayes/build.sh b/recipes/freebayes/build.sh index 660009d1b0fc8..a090a95414a3a 100644 --- a/recipes/freebayes/build.sh +++ b/recipes/freebayes/build.sh @@ -1,9 +1,10 @@ #!/bin/bash mkdir build -meson setup --buildtype debug --prefix "${PREFIX}" -Dprefer_system_deps=true build/ - +mkdir -p ${PREFIX}/bin +CXX="${CXX}" CC="${CC}" meson setup --buildtype release --prefix "${PREFIX}" \ + --strip --prefer-static -Dprefer_system_deps=true build/ cd build ninja -v @@ -13,7 +14,6 @@ ninja -v install ##Copy scripts over ## This will likely need to be removed with an updated build cp -n ../scripts/*.py $PREFIX/bin cp -n ../scripts/*.sh $PREFIX/bin -cp -n ../scripts/*.pl $PREFIX/bin -#cp -n ../scripts/*.R $PREFIX/bin +cp -n ../scripts/*.pl $PREFIX/bin cp -n ../scripts/freebayes-parallel $PREFIX/bin diff --git a/recipes/freebayes/meta.yaml b/recipes/freebayes/meta.yaml index e6a3953d98e42..f10c0fa32a4b2 100644 --- a/recipes/freebayes/meta.yaml +++ b/recipes/freebayes/meta.yaml @@ -1,7 +1,8 @@ +{% set name = "freebayes" %} {% set version = "1.3.7" %} package: - name: freebayes + name: {{ name }} version: {{ version }} source: @@ -10,10 +11,10 @@ source: patches: - 0001-make-meson-build-conda-friendly.patch - 0002-fix-intervaltree-include-path.patch + - 0003-meson-macos.patch # [osx] build: - number: 1 - skip: true # [osx] + number: 2 run_exports: - {{ pin_subpackage("freebayes", max_pin="x") }}