Files
haikuports/kde-frameworks/kimageformats/kimageformats-5.45.0.recipe
2018-04-18 01:17:09 +03:00

65 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-2018 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://github.com/KDE/kimageformats/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="0b8e1c6508765f8a78b29547244dd30cff313067aad78c1735aa403a823a2bfc"
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="
extra_cmake_modules >= 5.45
haiku${secondaryArchSuffix}_devel
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
}