Initial Commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# Exclude bpm archives
|
||||
*.bpm
|
||||
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Github repository
|
||||
REPO="opencv/opencv"
|
||||
|
||||
# Get tag name using Github Rest API
|
||||
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
|
||||
|
||||
echo "$TAG_NAME"
|
||||
@@ -0,0 +1,44 @@
|
||||
name: opencv
|
||||
description: Open Source Computer Vision Library
|
||||
version: 4.13.0
|
||||
revision: 1
|
||||
url: https://opencv.org/
|
||||
license: Apache-2.0
|
||||
architecture: any
|
||||
type: source
|
||||
depends:
|
||||
- abseil-cpp
|
||||
- ffmpeg
|
||||
- freetype2
|
||||
- gcc-libs
|
||||
- glibc
|
||||
- gst-plugins-base
|
||||
- gstreamer
|
||||
- harfbuzz
|
||||
- libglvnd
|
||||
- libjpeg-turbo
|
||||
- libjxl
|
||||
- libpng
|
||||
- libtiff
|
||||
- libwebp
|
||||
- openexr
|
||||
- openjpeg
|
||||
- protobuf-compiler
|
||||
- zlib
|
||||
make_depends:
|
||||
- cmake
|
||||
- fmt
|
||||
- glew
|
||||
- jdk
|
||||
- mesa
|
||||
- python-numpy
|
||||
- python-setuptools
|
||||
- qt6-5compat
|
||||
downloads:
|
||||
- url: https://github.com/opencv/opencv/archive/${BPM_PKG_VERSION}/opencv-${BPM_PKG_VERSION}.tar.gz
|
||||
extract_to: ${BPM_SOURCE}
|
||||
extract_strip_components: 1
|
||||
checksum: 1d40ca017ea51c533cf9fd5cbde5b5fe7ae248291ddf2af99d4c17cf8e13017d
|
||||
- url: https://github.com/opencv/opencv_contrib/archive/${BPM_PKG_VERSION}/opencv_contrib-${BPM_PKG_VERSION}.tar.gz
|
||||
extract_to: ${BPM_SOURCE}
|
||||
checksum: 1e0077a4fd2960a7d2f4c9e49d6ba7bb891cac2d1be36d7e8e47aa97a9d1039b
|
||||
@@ -0,0 +1,27 @@
|
||||
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DENABLE_CXX11=ON \
|
||||
-DBUILD_PERF_TESTS=OFF \
|
||||
-DBUILD_TESTS=OFF \
|
||||
-DENABLE_PRECOMPILED_HEADERS=OFF \
|
||||
-DCMAKE_SKIP_INSTALL_RPATH=ON \
|
||||
-DBUILD_WITH_DEBUG_INFO=OFF \
|
||||
-DOPENCV_GENERATE_PKGCONFIG=ON \
|
||||
-Wno-dev
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
DESTDIR="$BPM_OUTPUT" cmake --install build
|
||||
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/opencv/LICENSE
|
||||
}
|
||||
Reference in New Issue
Block a user