Compare commits
6
Commits
8f7955286a
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a07b041ee4
|
||
|
|
375d6702bf
|
||
|
|
0461c41d73
|
||
|
|
6f122d0c29
|
||
|
|
7fab0a5c40
|
||
|
|
14c9f494a9
|
+2
-1
@@ -1,2 +1,3 @@
|
||||
# Exclude bpm archives
|
||||
# Ignore BPM archives and signatures
|
||||
*.bpm
|
||||
*.bpm.sig
|
||||
|
||||
+13
-2
@@ -1,18 +1,29 @@
|
||||
name: zxing-cpp
|
||||
description: C++ port of ZXing
|
||||
version: 2.3.0
|
||||
version: 3.1.1
|
||||
revision: 1
|
||||
url: https://github.com/zxing-cpp/zxing-cpp
|
||||
license: Apache-2.0
|
||||
maintainers:
|
||||
- [email protected]
|
||||
architecture: any
|
||||
type: source
|
||||
depends:
|
||||
- gcc-libs
|
||||
- glibc
|
||||
- zint
|
||||
optional_depends:
|
||||
- qt6-multimedia:For ZXingQtCamReader
|
||||
make_depends:
|
||||
- cmake
|
||||
- opencv
|
||||
- qt6-base
|
||||
- qt6-declarative
|
||||
- qt6-multimedia
|
||||
check_depends:
|
||||
- googletest
|
||||
downloads:
|
||||
- url: https://github.com/zxing-cpp/zxing-cpp/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz
|
||||
extract_to: ${BPM_SOURCE}
|
||||
extract_strip_components: 1
|
||||
checksum: 64e4139103fdbc57752698ee15b5f0b0f7af9a0331ecbdc492047e0772c417ba
|
||||
checksum: 7286b1e6ade66fe82b7c8208b4595deeb55d6486b410834fdc65702f46650542
|
||||
+15
-2
@@ -1,14 +1,27 @@
|
||||
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
||||
# This is the recipe.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 -DZXING_EXAMPLES=ON -DZXING_C_API=ON
|
||||
cmake -B build \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DZXING_EXAMPLES=ON \
|
||||
-DZXING_EXAMPLES_QT=ON \
|
||||
-DZXING_C_API=ON \
|
||||
-DZXING_USE_BUNDLED_ZINT=OFF \
|
||||
-DZXING_WRITERS=BOTH \
|
||||
-DZXING_UNIT_TESTS=ON
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
# The check function is executed in the source directory
|
||||
# This function is used to run tests to verify the package has been compiled correctly
|
||||
check() {
|
||||
ctest --test-dir build --output-on-failure
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
Reference in New Issue
Block a user