Files
haikuports/media-libs/lcms/lcms-2.9.recipe
2017-11-09 19:01:50 +01:00

98 lines
2.3 KiB
Bash

SUMMARY="A small-footprint, speed optimized color management engine"
DESCRIPTION="Little CMS intends to be an open source small-footprint color \
management engine, with special focus on accuracy and performance. It uses the \
International Color Consortium standard (ICC), which is the modern standard \
when regarding to color management. The ICC specification is widely used and \
is referred to in many International and other de-facto standards. It was \
approved as an International Standard, ISO 15076-1, in 2005."
HOMEPAGE="http://littlecms.com/"
COPYRIGHT="1998-2016 Marti Maria"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="http://downloads.sourceforge.net/lcms/lcms2-$portVersion.tar.gz"
CHECKSUM_SHA256="00756bed09ce059a68289f10de56b00267667647393ddc30400cb87c0d9037d5"
SOURCE_DIR="lcms2-$portVersion"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
if [ "$targetArchitecture" != x86_gcc2 ]; then
commandBinDir=$binDir
else
commandBinDir=$prefix/bin
fi
PROVIDES="
lcms$secondaryArchSuffix = $portVersion compat >= 2
lib:liblcms2$secondaryArchSuffix = 2.0.8 compat >= 2
cmd:jpgicc
cmd:linkicc
cmd:psicc
cmd:tificc
cmd:transicc
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libtiff$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
lcms${secondaryArchSuffix}_devel = $portVersion
devel:liblcms2$secondaryArchSuffix = 2.0.8 compat >= 2
"
REQUIRES_devel="
lcms$secondaryArchSuffix == $portVersion base
devel:libjpeg$secondaryArchSuffix
devel:libpng$secondaryArchSuffix
devel:libtiff$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libjpeg$secondaryArchSuffix
devel:libpng$secondaryArchSuffix
devel:libtiff$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:make
"
BUILD()
{
autoreconf -fi
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/liblcms2.la
# prepare develop/lib
prepareInstalledDevelLibs liblcms2
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}
TEST()
{
make check
}