mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
zxing_cpp, bump to 2.3.0, drop tools (#12412)
tools require external stb sources pulled in by required git
This commit is contained in:
@@ -6,13 +6,12 @@ It was originally ported from the Java ZXing Library but has been developed furt
|
||||
includes many improvements in terms of runtime and detection performance. It can both read and \
|
||||
write barcodes in a number of formats."
|
||||
HOMEPAGE="https://github.com/zxing-cpp/zxing-cpp"
|
||||
COPYRIGHT="2016-2022 ZXing authors"
|
||||
COPYRIGHT="2016-2025 ZXing authors"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/zxing-cpp/zxing-cpp/archive/refs/tags/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="02078ae15f19f9d423a441f205b1d1bee32349ddda7467e2c84e8f08876f8635"
|
||||
CHECKSUM_SHA256="64e4139103fdbc57752698ee15b5f0b0f7af9a0331ecbdc492047e0772c417ba"
|
||||
SOURCE_DIR="zxing-cpp-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
@@ -34,16 +33,6 @@ REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_tools="
|
||||
zxing_cpp${secondaryArchSuffix}_tools = $portVersion
|
||||
cmd:ZXingReader = $portVersion
|
||||
cmd:ZXingWriter = $portVersion
|
||||
"
|
||||
REQUIRES_tools="
|
||||
zxing_cpp$secondaryArchSuffix == $portVersion
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
zxing_cpp${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libZXing$secondaryArchSuffix = $libVersionCompat
|
||||
@@ -54,28 +43,30 @@ REQUIRES_devel="
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libgtest$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:git
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
||||
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs \
|
||||
-DCMAKE_INSTALL_BINDIR=$commandBinDir \
|
||||
-DBUILD_EXAMPLES=ON \
|
||||
-DBUILD_UNIT_TESTS=ON
|
||||
make -Cbuild $jobArgs
|
||||
-DZXING_EXAMPLES=OFF \
|
||||
-DZXING_UNIT_TESTS=OFF \
|
||||
-Wno-dev
|
||||
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -Cbuild install
|
||||
make -C build install
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libZXing
|
||||
@@ -84,9 +75,6 @@ INSTALL()
|
||||
sed -i 's,\/include,/'${relativeIncludeDir}',g' \
|
||||
$libDir/cmake/ZXing/ZXingTargets.cmake
|
||||
|
||||
packageEntries tools \
|
||||
$commandBinDir
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
@@ -94,5 +82,5 @@ INSTALL()
|
||||
|
||||
TEST()
|
||||
{
|
||||
make -Cbuild test
|
||||
ctest --test-dir build --output-on-failure
|
||||
}
|
||||
Reference in New Issue
Block a user