Files
haikuports/dev-libs/qxlsx/qxlsx_qt6-1.5.0.recipe
2026-03-28 11:09:45 +01:00

77 lines
2.0 KiB
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
SUMMARY="Excel file reader/writer library using Qt"
DESCRIPTION="QXlsx is excel file(*.xlsx) reader/writer library.
* Because QtXlsxWriter is no longer supported, I created a new project that is based on QtXlsx. \
(2017-)
Development language of QXlsx is C++. (with Qt)
* You dont need to use static library or dynamic shared object using QXlsx. You can also use it \
as a static library."
HOMEPAGE="https://github.com/QtExcel/QXlsx"
COPYRIGHT="2017-, https://github.com/j2doll/QXlsx"
LICENSE="MIT"
REVISION="3"
SOURCE_URI="https://github.com/QtExcel/QXlsx/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="4461bb0fc9b88b6a970520e8b32eb7d2fc391a1a5c326b139a0af836278cdb09"
SOURCE_DIR="QXlsx-$portVersion"
PATCHES="qxlsx_qt6-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="1.5.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
qxlsx_qt6$secondaryArchSuffix = $portVersion
lib:libQXlsxQt6$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
"
PROVIDES_devel="
qxlsx_qt6${secondaryArchSuffix}_devel = $portVersion
devel:libQXlsxQt6$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
qxlsx_qt6$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt6Core$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
"
defineDebugInfoPackage qxlsx_qt6$secondaryArchSuffix \
$libDir/libQXlsxQt6.so.$libVersion
BUILD()
{
sed -e 's/INSTALL_INTERFACE:include/INSTALL_INTERFACE:\${CMAKE_INSTALL_INCLUDEDIR}/' -i ./QXlsx/CMakeLists.txt
cmake -B build -S ./QXlsx/ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
$cmakeDirArgs \
-DBUILD_SHARED_LIBS=ON
make -C build $jobArgs
}
INSTALL()
{
make -C build install
prepareInstalledDevelLib \
libQXlsxQt6
packageEntries devel \
$developDir \
$libDir/cmake
}