diff --git a/recipes/spring/Makefile.patch b/recipes/spring/Makefile.patch new file mode 100644 index 0000000000000..68c4e799d9dd8 --- /dev/null +++ b/recipes/spring/Makefile.patch @@ -0,0 +1,23 @@ +diff --git a/src/libbsc/bsc.h b/src/libbsc/bsc.h +index 25230dc..caca189 100644 +--- a/src/libbsc/bsc.h ++++ b/src/libbsc/bsc.h +@@ -48,6 +48,7 @@ preprocessor macro LIBBSC_SORT_TRANSFORM_SUPPORT at compile time. + #ifndef SPRING_LIBBSC_BSC_H_ + #define SPRING_LIBBSC_BSC_H_ + ++#include + #include "params.h" + + namespace spring { +diff --git a/src/util.h b/src/util.h +index 30bad68..a72a0b6 100644 +--- a/src/util.h ++++ b/src/util.h +@@ -17,6 +17,7 @@ limitations under the License. + + #include + #include ++#include + + namespace spring { \ No newline at end of file diff --git a/recipes/spring/build.sh b/recipes/spring/build.sh index 08e68971964f4..684be7536d398 100644 --- a/recipes/spring/build.sh +++ b/recipes/spring/build.sh @@ -8,6 +8,10 @@ export CXXPATH=${PREFIX}/include export CFLAGS="$CFLAGS -I$PREFIX/include" export CXXFLAGS="$CFLAGS -I$PREFIX/include" export LDFLAGS="$LDFLAGS -L$PREFIX/lib" -cmake -Dspring_optimize_for_portability=ON .. +if [ $(arch) == "aarch64" ]; then + cmake .. + else + cmake -Dspring_optimize_for_portability=ON .. +fi make cp spring $PREFIX/bin diff --git a/recipes/spring/meta.yaml b/recipes/spring/meta.yaml index 3025d74de5bd1..8dac430b3ae51 100644 --- a/recipes/spring/meta.yaml +++ b/recipes/spring/meta.yaml @@ -5,8 +5,10 @@ package: version: {{ version }} build: - number: 2 + number: 3 skip: True # [osx] + run_exports: + - {{ pin_subpackage('spring', max_pin="x") }} source: url: https://github.com/shubhamchandak94/Spring/archive/v{{ version }}.tar.gz @@ -26,5 +28,9 @@ about: home: https://github.com/shubhamchandak94/Spring license: Free for non-commercial use license_file: license.pdf - summary: Spring is a compression tool for Fastq files + summary: "Spring is a compression tool for Fastq files." + dev_url: https://github.com/shubhamchandak94/Spring +extra: + additional-platforms: + - linux-aarch64