97 lines
2.4 KiB
Bash
97 lines
2.4 KiB
Bash
SUMMARY="Plugins for additional image formats: TIFF, MNG, TGA, WBMP"
|
|
DESCRIPTION="Qt is a cross-platform application framework that is widely \
|
|
used for developing software with a graphical user interface, and also used \
|
|
for developing non-GUI programs such as command-line tools and consoles for \
|
|
servers."
|
|
HOMEPAGE="https://qt.io/"
|
|
COPYRIGHT="2015-2021 The Qt Company Ltd."
|
|
LICENSE="GNU LGPL v2.1
|
|
GNU LGPL v3
|
|
GNU FDL v1"
|
|
REVISION="2"
|
|
SOURCE_URI="https://download.qt.io/official_releases/qt/${portVersion%.*}/$portVersion/submodules/qtimageformats-everywhere-src-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="df61dc1a517988bfa123117c78a7dbeda859cbb6d9cbd080ce60058277bca3df"
|
|
SOURCE_DIR="qtimageformats-everywhere-src-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
qt6_imageformats$secondaryArchSuffix = $portVersion compat >= 6
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libjasper$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libmng$secondaryArchSuffix
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6Gui$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix
|
|
lib:libwebp$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
SUPPLEMENTS="
|
|
qt6_base$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
qt6_imageformats${secondaryArchSuffix}_devel = $portVersion compat >= 6
|
|
"
|
|
REQUIRES_devel="
|
|
qt6_imageformats$secondaryArchSuffix == $portVersion base
|
|
qt6_base${secondaryArchSuffix}_devel
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libjasper$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libmng$secondaryArchSuffix
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Gui$secondaryArchSuffix
|
|
devel:libtiff$secondaryArchSuffix
|
|
devel:libwebp$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:cmake
|
|
cmd:find
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:ninja
|
|
cmd:perl
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python3.7
|
|
cmd:sed
|
|
cmd:xargs
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
sed -i "s/uint32_t/uint32/g" $sourceDir/src/plugins/imageformats/tiff/qtiffhandler.cpp
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
export DISABLE_ASLR=1
|
|
|
|
cmake -B build -S $sourceDir -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_CXX_FLAGS=-fPIC
|
|
|
|
find -name cmake_install.cmake -exec sed -i "s|set(CMAKE_INSTALL_PREFIX.*|set(CMAKE_INSTALL_PREFIX \"$prefix\")|" {} \;
|
|
|
|
ninja -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -C build install
|
|
|
|
packageEntries devel \
|
|
$libDir/cmake
|
|
}
|