diff --git a/recipes/derna/build.sh b/recipes/derna/build.sh index 7898ddc35f18f..0b6e4d0faf8a5 100644 --- a/recipes/derna/build.sh +++ b/recipes/derna/build.sh @@ -2,12 +2,21 @@ set -xe +mkdir -p $PREFIX/bin + export C_INCLUDE_PATH=${PREFIX}/include export LIBRARY_PATH=${PREFIX}/lib -mkdir build -cd build -cmake .. -make -j ${CPU_COUNT} -mkdir -p $PREFIX/bin -cp derna $PREFIX/bin +if [[ `uname` == "Darwin" ]]; then + export CONFIG_ARGS="-DCMAKE_FIND_FRAMEWORK=NEVER -DCMAKE_FIND_APPBUNDLE=NEVER" +else + export CONFIG_ARGS="" +fi + +cmake -S . -B build -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_CXX_COMPILER="${CXX}" \ + -DCMAKE_CXX_FLAGS="${CXXFLAGS}" \ + "${CONFIG_ARGS}" +cmake --build build -j ${CPU_COUNT} -v +chmod 0755 build/derna +mv build/derna $PREFIX/bin diff --git a/recipes/derna/meta.yaml b/recipes/derna/meta.yaml index d955dd2d88e2f..193695a14d649 100644 --- a/recipes/derna/meta.yaml +++ b/recipes/derna/meta.yaml @@ -25,12 +25,13 @@ test: - derna -h about: - home: https://github.com/elkebir-group/derna + home: "https://github.com/elkebir-group/derna" license: BSD-3-Clause license_family: BSD license_file: LICENSE summary: "RNA sequence design for a target protein sequence." - dev_url: https://github.com/elkebir-group/derna + dev_url: "https://github.com/elkebir-group/derna" + doc_url: "https://github.com/elkebir-group/derna/blob/v{{ version }}/README.md" extra: additional-platforms: