Skip to content

Commit

Permalink
Update haplomap to 0.1.2 (#51305)
Browse files Browse the repository at this point in the history
* Update haplomap to 0.1.2

* build on osx-arm64

* revert to c compiler

* revert to make install

* fix cmake prefix

---------

Co-authored-by: mencian <[email protected]>
  • Loading branch information
BiocondaBot and mencian authored Oct 11, 2024
1 parent 8bac1f9 commit 07a40d9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
24 changes: 16 additions & 8 deletions recipes/haplomap/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 6 additions & 3 deletions recipes/haplomap/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set version = "0.1.1" %}
{% set sha256 = "8ebca46b3d3e60302f832ad0d8cc3dbef89e7fc568a3c67ec19d83130c128bbc" %}
{% set version = "0.1.2" %}
{% set sha256 = "427f79a2c02a43d397675c1b2b0dc66db67e105d61165bcc6d5a180b55e47bb1" %}

package:
name: haplomap
Expand Down Expand Up @@ -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

0 comments on commit 07a40d9

Please sign in to comment.