1SUMMARY="A small-footprint, speed optimized color management engine" 2DESCRIPTION="Little CMS intends to be an open source small-footprint color \ 3management engine, with special focus on accuracy and performance. It uses the \ 4International Color Consortium standard (ICC), which is the modern standard \ 5when regarding to color management. The ICC specification is widely used and \ 6is referred to in many International and other de-facto standards. It was \ 7approved as an International Standard, ISO 15076-1, in 2005." 8HOMEPAGE="http://www.littlecms.com/" 9COPYRIGHT="1998-2023 Marti Maria" 10LICENSE="MIT" 11REVISION="1" 12SOURCE_URI="https://downloads.sourceforge.net/lcms/lcms2-$portVersion.tar.gz" 13CHECKSUM_SHA256="d873d34ad8b9b4cea010631f1a6228d2087475e4dc5e763eb81acc23d9d45a51" 14SOURCE_DIR="lcms2-$portVersion" 15 16ARCHITECTURES="all !x86_gcc2" 17SECONDARY_ARCHITECTURES="x86" 18 19commandSuffix=$secondaryArchSuffix 20commandBinDir=$binDir 21if [ "$targetArchitecture" = x86_gcc2 ]; then 22 commandSuffix= 23 commandBinDir=$prefix/bin 24fi 25 26libVersion="2.0.16" 27libVersionCompat="$libVersion compat >= ${libVersion%%.*}" 28 29PROVIDES=" 30 lcms$secondaryArchSuffix = $portVersion 31 lib:liblcms2$secondaryArchSuffix = $libVersionCompat 32 " 33REQUIRES=" 34 haiku$secondaryArchSuffix 35 lib:libjpeg$secondaryArchSuffix 36 lib:libtiff$secondaryArchSuffix 37 lib:libz$secondaryArchSuffix 38 " 39 40PROVIDES_devel=" 41 lcms${secondaryArchSuffix}_devel = $portVersion 42 devel:liblcms2$secondaryArchSuffix = $libVersionCompat 43 " 44REQUIRES_devel=" 45 lcms$secondaryArchSuffix == $portVersion base 46 " 47 48BUILD_REQUIRES=" 49 haiku${secondaryArchSuffix}_devel 50 devel:libjpeg$secondaryArchSuffix 51 devel:libtiff$secondaryArchSuffix 52 devel:libz$secondaryArchSuffix 53 " 54BUILD_PREREQUIRES=" 55 cmd:aclocal 56 cmd:autoconf 57 cmd:automake 58 cmd:gcc$secondaryArchSuffix 59 cmd:ld$secondaryArchSuffix 60 cmd:libtoolize$secondaryArchSuffix 61 cmd:make 62 " 63 64PROVIDES_tools=" 65 lcms${secondaryArchSuffix}_tools = $portVersion 66 cmd:jpgicc$commandSuffix 67 cmd:linkicc$commandSuffix 68 cmd:psicc$commandSuffix 69 cmd:tificc$commandSuffix 70 cmd:transicc$commandSuffix 71 " 72REQUIRES_tools=" 73 lcms$secondaryArchSuffix == $portVersion base 74 haiku$secondaryArchSuffix 75 lib:libjpeg$secondaryArchSuffix 76 lib:libtiff$secondaryArchSuffix 77 lib:libz$secondaryArchSuffix 78 " 79 80defineDebugInfoPackage lcms$secondaryArchSuffix \ 81 $libDir/liblcms2.so.$libVersion 82 83BUILD() 84{ 85 autoreconf -fi 86 87 runConfigure --omit-dirs binDir ./configure \ 88 --bindir=$commandBinDir \ 89 --disable-static 90 make $jobArgs 91} 92 93INSTALL() 94{ 95 make install 96 97 rm $libDir/liblcms2.la 98 99 # prepare develop/lib 100 prepareInstalledDevelLibs liblcms2 101 fixPkgconfig 102 103 # devel package 104 packageEntries devel \ 105 $developDir 106 107 packageEntries tools \ 108 $commandBinDir \ 109 $manDir 110} 111 112TEST() 113{ 114 make check 115} 116