lcms: bump to 2.8, drop liblcms2.la, reorder sections, add TEST. (#749)

* Don't use $secondaryArchSuffix for cmd:{jpg,link,ps,tif,trans}icc
  and install them in $prefix/bin (instead of $binDir) for x86 2ndary
  arch. This is safe (and needs no external changes) because no other
  recipe references any cmd: provided by this one.
* Use {aclocal,automake} from automake (instead of automake113) since
  upstream now uses that version. Thanks Jerome for the hint!
This commit is contained in:
fbrosson
2016-08-02 19:28:14 +00:00
committed by GitHub
parent bf6758d013
commit 4499968f08

View File

@@ -1,31 +1,35 @@
SUMMARY="A small-footprint, speed optimized color management engine" SUMMARY="A small-footprint, speed optimized color management engine"
DESCRIPTION=" DESCRIPTION="Little CMS intends to be an open source small-footprint color \
Little CMS intends to be an open source small-footprint color management \ management engine, with special focus on accuracy and performance. It uses the \
engine, with special focus on accuracy and performance. It uses the \
International Color Consortium standard (ICC), which is the modern standard \ International Color Consortium standard (ICC), which is the modern standard \
when regarding to color management. The ICC specification is widely used and \ 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 \ is referred to in many International and other de-facto standards. It was \
approved as an International Standard, ISO 15076-1, in 2005. approved as an International Standard, ISO 15076-1, in 2005."
"
HOMEPAGE="http://littlecms.com/" HOMEPAGE="http://littlecms.com/"
SOURCE_URI="http://downloads.sourceforge.net/project/lcms/lcms/$portVersion/lcms2-$portVersion.tar.gz" COPYRIGHT="1998-2016 Marti Maria"
CHECKSUM_SHA256="4524234ae7de185e6b6da5d31d6875085b2198bc63b1211f7dde6e2d197d6a53"
REVISION="2"
LICENSE="MIT" LICENSE="MIT"
COPYRIGHT="2007 Marti Maria" REVISION="1"
SOURCE_URI="http://downloads.sourceforge.net/lcms/lcms2-$portVersion.tar.gz"
CHECKSUM_SHA256="66d02b229d2ea9474e62c2b6cd6720fde946155cd1d0d2bffdab829790a0fb22"
SOURCE_DIR="lcms2-$portVersion"
ARCHITECTURES="!x86_gcc2 x86 x86_64" ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86" SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
if [ "$targetArchitecture" != x86_gcc2 ]; then
commandBinDir=$binDir
else
commandBinDir=$prefix/bin
fi
PROVIDES=" PROVIDES="
lcms$secondaryArchSuffix = $portVersion compat >= 2 lcms$secondaryArchSuffix = $portVersion compat >= 2
lib:liblcms2$secondaryArchSuffix = 2.0.7 compat >= 2 lib:liblcms2$secondaryArchSuffix = 2.0.8 compat >= 2
cmd:jpgicc$secondaryArchSuffix cmd:jpgicc
cmd:linkicc$secondaryArchSuffix cmd:linkicc
cmd:psicc$secondaryArchSuffix cmd:psicc
cmd:tificc$secondaryArchSuffix cmd:tificc
cmd:transicc$secondaryArchSuffix cmd:transicc
" "
REQUIRES=" REQUIRES="
haiku$secondaryArchSuffix haiku$secondaryArchSuffix
@@ -34,6 +38,19 @@ REQUIRES="
lib:libtiff$secondaryArchSuffix lib:libtiff$secondaryArchSuffix
lib:libz$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=" BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel haiku${secondaryArchSuffix}_devel
devel:libjpeg$secondaryArchSuffix devel:libjpeg$secondaryArchSuffix
@@ -42,25 +59,23 @@ BUILD_REQUIRES="
devel:libz$secondaryArchSuffix devel:libz$secondaryArchSuffix
" "
BUILD_PREREQUIRES=" BUILD_PREREQUIRES="
cmd:gcc${secondaryArchSuffix} cmd:gcc$secondaryArchSuffix
cmd:ld${secondaryArchSuffix} cmd:ld$secondaryArchSuffix
cmd:libtoolize cmd:libtoolize$secondaryArchSuffix
cmd:aclocal_1.13 cmd:aclocal
cmd:autoconf cmd:autoconf
cmd:automake_1.13 cmd:automake
cmd:make cmd:make
" "
SOURCE_DIR="lcms2-$portVersion"
BUILD() BUILD()
{ {
libtoolize --force --copy --install libtoolize --force --copy --install
aclocal-1.13 aclocal
automake-1.13 automake
autoconf autoconf
runConfigure ./configure runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir
make $jobArgs make $jobArgs
} }
@@ -68,6 +83,8 @@ INSTALL()
{ {
make install make install
rm $libDir/liblcms2.la
# prepare develop/lib # prepare develop/lib
prepareInstalledDevelLibs liblcms2 prepareInstalledDevelLibs liblcms2
@@ -78,12 +95,7 @@ INSTALL()
$developDir $developDir
} }
# ----- devel package --------------------------------------- TEST()
{
PROVIDES_devel=" make check
lcms${secondaryArchSuffix}_devel = $portVersion }
devel:liblcms2$secondaryArchSuffix = 2.0.7 compat >= 2
"
REQUIRES_devel="
lcms$secondaryArchSuffix == $portVersion base
"