Files
haikuports/kde-frameworks/kimageformats/kimageformats-5.65.0.recipe
2019-12-16 16:20:02 +03:00

66 lines
1.7 KiB
Bash

SUMMARY="Plugins to allow QImage to support extra file formats"
DESCRIPTION="This framework provides additional image format plugins for QtGui. \
As such it is not required for the compilation of any other software, but may \
be a runtime requirement for Qt-based software to support certain image formats."
HOMEPAGE="https://github.com/KDE/kimageformats/"
COPYRIGHT="2010-2019 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="2"
SOURCE_URI="https://github.com/KDE/kimageformats/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="365ad67d092ce4ab7de9cf57bf4500663d844e7cdca1adc400ec05bf09f78b57"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
kimageformats$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libKF5Archive$secondaryArchSuffix
lib:libKF5ConfigCore$secondaryArchSuffix
lib:libKF5CoreAddons$secondaryArchSuffix
lib:libKF5KIOCore$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= $portVersion
devel:libKF5Archive$secondaryArchSuffix == $portVersion
devel:libKF5ConfigCore$secondaryArchSuffix == $portVersion
devel:libKF5CoreAddons$secondaryArchSuffix == $portVersion
devel:libKF5KIOCore$secondaryArchSuffix == $portVersion
devel:libQt5Core$secondaryArchSuffix >= 5.7
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
mkdir -p build
cd build
cmake .. $cmakeDirArgs \
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
make $jobArgs
}
INSTALL()
{
cd build
make install
}
TEST()
{
cd build
make test
}