diff --git a/recipes/haplomap/build.sh b/recipes/haplomap/build.sh index 5b1eb4c060eee..26fd84dc3c5ce 100644 --- a/recipes/haplomap/build.sh +++ b/recipes/haplomap/build.sh @@ -3,15 +3,23 @@ set -xe # https://bioconda.github.io/troubleshooting.html#zlib-errors -export CFLAGS="-I${PREFIX}/include" -export LDFLAGS="-L${PREFIX}/lib" -export CPATH=${PREFIX}/include -export CPLUS_INCLUDE_PATH=${PREFIX}/include -export C_INCLUDE_PATH=${PREFIX}/include +export CXXFLAGS="${CXXFLAGS} -O3 -I${PREFIX}/include" +export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib" +export INCLUDES="-I${PREFIX}/include" +export LIBPATH="-L${PREFIX}/lib" + +if [[ `uname` == "Darwin" ]]; then + export CONFIG_ARGS="-DCMAKE_FIND_FRAMEWORK=NEVER -DCMAKE_FIND_APPBUNDLE=NEVER" +else + export CONFIG_ARGS="" +fi # cd to location of Makefile and source -mkdir build +cmake -S . -B build -DCMAKE_INSTALL_PREFIX="${PREFIX}/bin" \ + -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER="${CXX}" \ + -DCMAKE_CXX_FLAGS="${CXXFLAGS}" \ + "${CONFIG_ARGS}" + cd build -cmake -DCMAKE_INSTALL_PREFIX=${PREFIX}/bin -DCMAKE_BUILD_TYPE=Release .. -make -j ${CPU_COUNT} +make -j"${CPU_COUNT}" make install diff --git a/recipes/haplomap/meta.yaml b/recipes/haplomap/meta.yaml index 6b7d656bf4de8..be1a82bb587b5 100644 --- a/recipes/haplomap/meta.yaml +++ b/recipes/haplomap/meta.yaml @@ -1,5 +1,5 @@ -{% set version = "0.1.1" %} -{% set sha256 = "8ebca46b3d3e60302f832ad0d8cc3dbef89e7fc568a3c67ec19d83130c128bbc" %} +{% set version = "0.1.2" %} +{% set sha256 = "427f79a2c02a43d397675c1b2b0dc66db67e105d61165bcc6d5a180b55e47bb1" %} package: name: haplomap @@ -32,8 +32,11 @@ test: about: home: https://github.com/zqfang/haplomap license: MIT - summary: Haplotype-based computational genetic mapping + license_family: MIT + summary: "Haplotype-based computational genetic mapping." + dev_url: https://github.com/zqfang/haplomap extra: additional-platforms: - linux-aarch64 + - osx-arm64