Skip to content

Commit

Permalink
Improve build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Le Nezet authored and LouisLeNezet committed Nov 1, 2024
1 parent 638b33a commit 752b1a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions recipes/eagle2/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ echo "Building Eagle2 version ${PKG_VERSION}"

make \
-e -j ${CPU_COUNT} \
DYN_LIBS="-lz -lpthread -lbz2 -lblas" \
DYN_LIBS="-lz -lpthread -lbz2 -lopenblas -lm -msse -msse2 -fopenmp -Wall" \
CXX="$CXX -std=c++11" \
CXXFLAG="$CXXFLAGS" \
LDFLAG="$LDFLAGS" \
PREFIX="${PREFIX}" \
HTSLIB_INC="$PREFIX" \
HTSLIB_LIB="-lhts" \
BOOST_INC="$PREFIX/include"\
BOOST_INC="$PREFIX/include" \
BOOST_LIB_IO="-lboost_iostreams" \
BOOST_LIB_PO="-lboost_program_options" \
BOOST_LIB_SE="-lboost_serialization" || exit 1
BOOST_LIB_SE="-lboost_serialization" || exit 1

echo "Installing Eagle2..."
mkdir -p "${PREFIX}/bin"
Expand Down
6 changes: 5 additions & 1 deletion recipes/eagle2/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ package:

build:
number: 0
run_exports:
- {{ pin_subpackage('eagle2', max_pin='x.x.x') }}

source:
url: https://github.com/poruloh/Eagle/archive/refs/tags/v{{ version }}.tar.gz
Expand All @@ -21,11 +23,13 @@ requirements:
- bzip2
- zlib
- boost-cpp >=1.58
- blas >=0.2.19
- openblas >=0.2.19
run:
- {{ pin_compatible('htslib') }}
- {{ pin_compatible('bzip2') }}
- {{ pin_compatible('boost-cpp') }}
- {{ pin_compatible('zlib') }}
- {{ pin_compatible('openblas') }}

test:
commands:
Expand Down

0 comments on commit 752b1a5

Please sign in to comment.