mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
lcms: move cmds to tools subpackage, cleanup (#4370)
This commit is contained in:
committed by
Jérôme Duval
parent
a367e5f983
commit
2a4ef019ff
@@ -8,7 +8,7 @@ approved as an International Standard, ISO 15076-1, in 2005."
|
||||
HOMEPAGE="http://www.littlecms.com/"
|
||||
COPYRIGHT="1998-2017 Marti Maria"
|
||||
LICENSE="MIT"
|
||||
REVISION="3"
|
||||
REVISION="4"
|
||||
SOURCE_URI="https://downloads.sourceforge.net/lcms/lcms2-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="48c6fdf98396fa245ed86e622028caf49b96fa22f3e5734f853f806fbc8e7d20"
|
||||
SOURCE_DIR="lcms2-$portVersion"
|
||||
@@ -23,14 +23,12 @@ if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
libVersion="2.0.8"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
lcms$secondaryArchSuffix = $portVersion compat >= 2
|
||||
cmd:jpgicc$commandSuffix
|
||||
cmd:linkicc$commandSuffix
|
||||
cmd:psicc$commandSuffix
|
||||
cmd:tificc$commandSuffix
|
||||
cmd:transicc$commandSuffix
|
||||
lib:liblcms2$secondaryArchSuffix = 2.0.8 compat >= 2
|
||||
lcms$secondaryArchSuffix = $portVersion
|
||||
lib:liblcms2$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
@@ -41,20 +39,15 @@ REQUIRES="
|
||||
|
||||
PROVIDES_devel="
|
||||
lcms${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:liblcms2$secondaryArchSuffix = 2.0.8 compat >= 2
|
||||
devel:liblcms2$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
lcms$secondaryArchSuffix == $portVersion base
|
||||
devel:libjpeg$secondaryArchSuffix >= 9
|
||||
devel:libpng$secondaryArchSuffix
|
||||
devel:libtiff$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libpng$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix >= 9
|
||||
devel:libtiff$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
@@ -68,6 +61,25 @@ BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
"
|
||||
|
||||
PROVIDES_tools="
|
||||
lcms${secondaryArchSuffix}_tools = $portVersion
|
||||
cmd:jpgicc$commandSuffix
|
||||
cmd:linkicc$commandSuffix
|
||||
cmd:psicc$commandSuffix
|
||||
cmd:tificc$commandSuffix
|
||||
cmd:transicc$commandSuffix
|
||||
"
|
||||
REQUIRES_tools="
|
||||
lcms$secondaryArchSuffix == $portVersion base
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libtiff$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
defineDebugInfoPackage lcms$secondaryArchSuffix \
|
||||
$libDir/liblcms2.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -fi
|
||||
@@ -84,12 +96,15 @@ INSTALL()
|
||||
|
||||
# prepare develop/lib
|
||||
prepareInstalledDevelLibs liblcms2
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
|
||||
packageEntries tools \
|
||||
$commandBinDir \
|
||||
$manDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
|
||||
Reference in New Issue
Block a user