Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions librdkafka.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,24 @@ version: "%(tag_basename)s"
tag: v2.3.0
requires:
- "GCC-Toolchain:(?!osx)"
- lz4
- zlib
build_requires:
- alibuild-recipe-tools
- CMake
- ninja
source: https://github.com/edenhill/librdkafka
---

rsync -a --delete --exclude "**/.git" "$SOURCEDIR/" .
cmake ${SOURCEDIR} \
-DWITH_SSL=OFF \
-DWITH_CURL=OFF \
-DRDKAFKA_BUILD_EXAMPLES=OFF \
-DRDKAFKA_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX="$INSTALLROOT" \
-G Ninja \

# cmake in rdfkafka links against ssl even when disabled, so we need to use configure, which is also recommended by librdkafka devs.
./configure --prefix="$INSTALLROOT" --disable-ssl --disable-gssapi --disable-curl

make ${JOBS+-j $JOBS}
make install
cmake --build . -- ${JOBS:+-j $JOBS} install

#ModuleFile
mkdir -p etc/modulefiles
Expand Down
15 changes: 14 additions & 1 deletion onnxruntime.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package: ONNXRuntime
version: "%(tag_basename)s"
tag: v1.22.0
tag: v1.22.2
license: MIT
source: https://github.com/microsoft/onnxruntime
requires:
Expand Down Expand Up @@ -32,6 +32,14 @@ sed -i.bak "s/eigen/Eigen3/g" cmake/external/eigen.cmake
python3 -c 'import sys; print(sys.executable)'
sed -i.bak "s/CMAKE_CXX_STANDARD 17/CMAKE_CXX_STANDARD 20/;s/-Wno-interference-size/-w/" cmake/CMakeLists.txt

case $ARCHITECTURE in
osx*)
export abseil_cpp_DIR=${ABSEIL_ROOT:-$(brew --prefix abseil)}
ABSEIL_ROOT=${ABSEIL_ROOT:-$(brew --prefix abseil)}
export CMAKE_PATH_PREFIX=${ABSEIL_ROOT}:$CMAKE_PATH_PREFIX
;;
esac

if [[ -f $GPU_SYSTEM_ROOT/etc/gpu-features-available.sh ]]; then
source $GPU_SYSTEM_ROOT/etc/gpu-features-available.sh
fi
Expand Down Expand Up @@ -121,6 +129,11 @@ cmake "cmake"
-Donnxruntime_USE_FULL_PROTOBUF=ON \
-Donnxruntime_ENABLE_PYTHON=OFF \
-Donnxruntime_MINIMAL_BUILD=OFF \
-Donnxruntime_DISABLE_ABSEIL=ON \
--debug-find-pkg=absl \
${ABSEIL_ROOT:+-DFETCHCONTENT_SOURCE_DIR_ABSEIL_CPP=${ABSEIL_ROOT}} \
${ABSEIL_ROOT:+-Dabseil_cpp_DIR=$ABSEIL_ROOT} \
${ABSEIL_ROOT:+-Dabsl_DIR=$ABSEIL_ROOT} \
${PROTOBUF_ROOT:+-DProtobuf_LIBRARY=$PROTOBUF_ROOT/lib/libprotobuf.a} \
${PROTOBUF_ROOT:+-DProtobuf_LITE_LIBRARY=$PROTOBUF_ROOT/lib/libprotobuf-lite.a} \
${PROTOBUF_ROOT:+-DProtobuf_PROTOC_LIBRARY=$PROTOBUF_ROOT/lib/libprotoc.a} \
Expand Down
6 changes: 3 additions & 3 deletions protobuf.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package: protobuf
version: v29.3
tag: v29.3
version: v32.1
tag: v32.1
source: https://github.com/protocolbuffers/protobuf
build_requires:
- CMake
Expand All @@ -26,7 +26,7 @@ cmake -S "$ALIBUILD_CMAKE_SOURCE_DIR" \
-Dprotobuf_MODULE_COMPATIBLE=YES \
-Dprotobuf_BUILD_SHARED_LIBS=OFF \
-Dprotobuf_ABSL_PROVIDER=package \
-DABSL_ROOT_DIR=$ABSEIL_ROOT \
${ABSEIL_ROOT:+-Dabsl_DIR=$ABSEIL_ROOT} \
-DCMAKE_INSTALL_LIBDIR=lib

cmake --build . -- ${JOBS:+-j$JOBS} install
Expand Down