-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* NECAT: add aarch64/arm64 builds * add patch
- Loading branch information
Showing
3 changed files
with
30 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,36 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
mkdir -p ${PREFIX}/bin | ||
|
||
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib" | ||
export CFLAGS="${CFLAGS} -O3 -I${PREFIX}/include" | ||
export CFLAGS="${CFLAGS} -O3 -Wno-incompatible-function-pointer-types -Wno-implicit-function-declaration -L${PREFIX}/lib" | ||
export CXXFLAGS="${CXXFLAGS} -O3 -I${PREFIX}/include" | ||
|
||
BIN_ROOT="Linux-amd64/bin" | ||
case $(uname -m) in | ||
arm64|aarch64) BIN_ROOT="Linux-aarch64/bin" ;; | ||
aarch64) BIN_ROOT="Linux-aarch64/bin" ;; | ||
arm64) BIN_ROOT="Darwin-arm64/bin" ;; | ||
x86_64) BIN_ROOT="Linux-amd64/bin" ;; | ||
esac | ||
|
||
if [[ "$(uname)" == "Darwin" && "$(uname -m)" == "x86_64" ]]; then | ||
BIN_ROOT="Darwin-amd64/bin" | ||
fi | ||
|
||
# build | ||
make -C src CFLAGS+="${CFLAGS}" LDFLAGS+="${LDFLAGS}" CXXFLAGS+="${CXXFLAGS}" -j"${CPU_COUNT}" | ||
|
||
# create and populate binary file | ||
mkdir -p $PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM/bin/ | ||
cp -rf $BIN_ROOT/* $PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM/bin/ | ||
mkdir -p $PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM/bin | ||
cp -rf $BIN_ROOT/Plgd $PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM/bin && rm -rf $BIN_ROOT/Plgd | ||
rm -rf $BIN_ROOT/trim_bases_accurate* | ||
install -v -m 0755 $BIN_ROOT/* "${PREFIX}/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM/bin" | ||
|
||
# create calling script | ||
mkdir -p ${PREFIX}/bin/ | ||
cat <<EOF > $PREFIX/bin/necat | ||
#!/bin/bash | ||
PATH=\$PATH:$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM/bin/ necat.pl "\$@" | ||
EOF | ||
|
||
chmod 755 ${PREFIX}/bin/necat | ||
chmod 0755 ${PREFIX}/bin/necat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/src/fsa/simple_align.hpp b/src/fsa/simple_align.hpp | ||
index 7344707..33949ce 100644 | ||
--- a/src/fsa/simple_align.hpp | ||
+++ b/src/fsa/simple_align.hpp | ||
@@ -1,6 +1,7 @@ | ||
#ifndef FSA_ALIGN_SIMPLE_ALIGN_HPP | ||
#define FSA_ALIGN_SIMPLE_ALIGN_HPP | ||
|
||
+#include <stdint.h> | ||
#include <array> | ||
#include <string> | ||
#include <unordered_map> |