aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-05-28 22:02:57 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-05-28 22:58:03 +0700
commit58481ab7460b6d3671d2e8d4e1e9810255e4d014 (patch)
treee92e8ba10246dd1e553b7c0bf5a4d17f7f053fb2 /libraries
parent2e5927d45a4e1f7fd894f611a64f1fb4578d7bb0 (diff)
libraries/openvino: Use internal protobuf.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/openvino/openvino.SlackBuild11
-rw-r--r--libraries/openvino/openvino.info8
2 files changed, 13 insertions, 6 deletions
diff --git a/libraries/openvino/openvino.SlackBuild b/libraries/openvino/openvino.SlackBuild
index e05fe6fbfa58..3c8bb7400361 100644
--- a/libraries/openvino/openvino.SlackBuild
+++ b/libraries/openvino/openvino.SlackBuild
@@ -29,6 +29,7 @@ VERSION=${VERSION:-2024.1.0}
VERSION_FLATBUFFERS=24.3.25
VERSION_ONNX=1.16.0
VERSION_ITTAPI=3.24.4
+VERSION_PROTOBUF=21.12
COMMIT_ONEDNN=26633ae49edd4353a29b7170d9fcef6b2d79f4b3
COMMIT_MLAS=d1bc25ec4660cddd87804fcf03b2411b5dfb2e94
BUILD=${BUILD:-1}
@@ -109,6 +110,13 @@ rmdir ittapi
tar vxf $CWD/ittapi-$VERSION_ITTAPI.tar.gz
ln -s ittapi-$VERSION_ITTAPI ittapi
)
+# protobuf
+(
+cd thirdparty/protobuf/
+rmdir protobuf
+tar vxf $CWD/protobuf-all-$VERSION_PROTOBUF.tar.gz
+ln -s protobuf-$VERSION_PROTOBUF protobuf
+)
# mlas for cpu inference device
(
cd src/plugins/intel_cpu/thirdparty
@@ -150,9 +158,7 @@ cd build
-DONNX_ML=ON \
-DENABLE_SYSTEM_SNAPPY=ON \
-DENABLE_SYSTEM_TBB=ON \
- -DENABLE_SYSTEM_PROTOBUF=ON \
-DENABLE_SYSTEM_PUGIXML=ON \
- -DProtobuf_LIBRARY=/usr/lib$LIBDIRSUFFIX/libprotobuf.so \
-DENABLE_PROFILING_ITT=ON \
-DENABLE_TBBBIND_2_5=OFF \
-DENABLE_JS=OFF \
@@ -161,7 +167,6 @@ cd build
-DENABLE_INTEL_GPU=$GPU \
-DENABLE_INTEL_NPU=OFF \
-DENABLE_ONEDNN_FOR_GPU=OFF \
- -Wno-dev \
-DCMAKE_BUILD_TYPE=Release ..
make
make install/strip DESTDIR=$PKG
diff --git a/libraries/openvino/openvino.info b/libraries/openvino/openvino.info
index 01a9c32ad44d..f0240458777f 100644
--- a/libraries/openvino/openvino.info
+++ b/libraries/openvino/openvino.info
@@ -6,15 +6,17 @@ DOWNLOAD="https://github.com/openvinotoolkit/openvino/archive/2024.1.0/openvino-
https://github.com/openvinotoolkit/onednn/archive/26633ae/oneDNN-26633ae49edd4353a29b7170d9fcef6b2d79f4b3.tar.gz \
https://github.com/google/flatbuffers/archive/v24.3.25/flatbuffers-24.3.25.tar.gz \
https://github.com/onnx/onnx/archive/v1.16.0/onnx-1.16.0.tar.gz \
- https://github.com/intel/ittapi/archive/v3.24.4/ittapi-3.24.4.tar.gz"
+ https://github.com/intel/ittapi/archive/v3.24.4/ittapi-3.24.4.tar.gz \
+ https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protobuf-all-21.12.tar.gz"
MD5SUM="459481c0b3f7fe3fcc2be799fe413308 \
0e87473410db355fd9251a2e1337dc32 \
2cbdb4f80608959b3c013bab745bb807 \
f28f12fc16c72f4e7c22066a35405c3a \
5ef5a7bd4f9dad914bddc3b4335a67cd \
- aec402d3441bb8ecb9c8e75bab6cc102"
+ aec402d3441bb8ecb9c8e75bab6cc102 \
+ 7fb5fa6217646e5146346e39d9aad6f9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="protobuf3 oneTBB xbyak pugixml snappy pybind11 OpenCL-CLHPP"
+REQUIRES="oneTBB xbyak pugixml snappy pybind11 OpenCL-CLHPP"
MAINTAINER="Johannes Schoepfer"
EMAIL="slackbuilds@schoepfer.info"