mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
117 lines
3.0 KiB
Bash
117 lines
3.0 KiB
Bash
SUMMARY="A Qt API for generating QRCode & DataMatrix barcodes"
|
|
DESCRIPTION="prison is a Qt-based barcode abstraction layer/library that \
|
|
provides uniform access to generation of barcodes with data. The API supports \
|
|
two types of barcodes: QRCode and DataMatrix."
|
|
HOMEPAGE="https://invent.kde.org/frameworks/prison"
|
|
COPYRIGHT="2010-2025 KDE Foundations"
|
|
LICENSE="GNU LGPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/prison-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="bfd623f95e00af25ec49966679010c411ef8798b7c1a31c258484c31067d5356"
|
|
SOURCE_DIR="prison-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
GLOBAL_WRITABLE_FILES="
|
|
settings/xdg/prison.categories keep-old
|
|
settings/xdg/prison.renamecategories keep-old
|
|
"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
prison6$secondaryArchSuffix = $portVersion
|
|
lib:libKF6Prison$secondaryArchSuffix = $libVersionCompat
|
|
lib:libKF6PrisonScanner$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libopenal$secondaryArchSuffix
|
|
lib:libdmtx$secondaryArchSuffix
|
|
lib:libqrencode$secondaryArchSuffix
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Multimedia$secondaryArchSuffix
|
|
lib:libQt6Gui$secondaryArchSuffix
|
|
lib:libZXing$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
prison6${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libKF6Prison$secondaryArchSuffix = $libVersion
|
|
devel:libKF6PrisonScanner$secondaryArchSuffix = $libVersion
|
|
"
|
|
REQUIRES_devel="
|
|
prison6$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
ARCHITECTURES_doc="any"
|
|
|
|
PROVIDES_doc="
|
|
prison6_doc = $portVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
|
qt6_tools${secondaryArchSuffix}_devel
|
|
devel:libdmtx$secondaryArchSuffix
|
|
devel:libqrencode$secondaryArchSuffix
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Multimedia$secondaryArchSuffix
|
|
devel:libQt6Qml$secondaryArchSuffix
|
|
devel:libZXing$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
kde_qdoc_common
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:msgfmt$secondaryArchSuffix
|
|
cmd:msgmerge$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
export KDE_DOCS="`finddir B_SYSTEM_DATA_DIRECTORY`"/kde-qdoc-common
|
|
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DKDE_INSTALL_LOGGINGCATEGORIESDIR=$settingsDir/xdg \
|
|
-DCMAKE_SKIP_RPATH=YES \
|
|
-DBUILD_TESTING=OFF \
|
|
-Wno-dev
|
|
|
|
make -C build $jobArgs
|
|
cmake --build build --target prepare_docs
|
|
cmake --build build --target generate_docs
|
|
cmake --build build --target generate_qch
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
# cmake --build build --target install_html_docs
|
|
cmake --build build --target install_qch_docs
|
|
|
|
prepareInstalledDevelLibs \
|
|
libKF6Prison \
|
|
libKF6PrisonScanner
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
|
|
packageEntries doc \
|
|
$documentationDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
export LIBRARY_PATH=$LIBRARY_PATH:$sourceDir/build/bin
|
|
ctest --test-dir build --output-on-failure
|
|
}
|