3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
inherit autotools multilib-minimal
|
|
6 |
inherit meson-multilib
|
7 |
7 |
|
8 |
8 |
DESCRIPTION="A lightweight, speed optimized color management engine"
|
9 |
|
HOMEPAGE="http://www.littlecms.com/"
|
10 |
|
SRC_URI="https://github.com/mm2/Little-CMS/releases/download/lcms${PV}/${PN}2-${PV}.tar.gz"
|
11 |
|
S="${WORKDIR}/lcms2-${PV}"
|
|
9 |
HOMEPAGE="https://www.littlecms.com/"
|
|
10 |
SRC_URI="https://github.com/mm2/Little-CMS/releases/download/lcms${PV/_}/${PN}2-${PV/_}.tar.gz"
|
|
11 |
S="${WORKDIR}/lcms2-${PV/_}"
|
12 |
12 |
|
13 |
|
LICENSE="MIT"
|
|
13 |
# GPL-3 for the threaded & fastfloat plugins, see meson_options.txt
|
|
14 |
LICENSE="GPL-3 MIT"
|
14 |
15 |
SLOT="2"
|
15 |
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
16 |
|
IUSE="doc jpeg static-libs tiff zlib"
|
17 |
|
REQUIRED_USE="tiff? ( zlib )"
|
|
16 |
if [[ ${PV} != *_rc* ]] ; then
|
|
17 |
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
|
18 |
fi
|
|
19 |
IUSE="doc jpeg static-libs tiff"
|
18 |
20 |
|
19 |
21 |
RDEPEND="
|
20 |
22 |
jpeg? ( media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}] )
|
21 |
23 |
tiff? ( >=media-libs/tiff-4.0.3-r6:=[${MULTILIB_USEDEP}] )
|
22 |
|
zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
|
23 |
24 |
"
|
24 |
25 |
DEPEND="${RDEPEND}"
|
25 |
26 |
|
26 |
|
src_prepare() {
|
27 |
|
default
|
28 |
|
|
29 |
|
# TODO: switch back to elibtoolize once https://github.com/mm2/Little-CMS/issues/339
|
30 |
|
# is fixed.
|
31 |
|
# for Prefix/Solaris
|
32 |
|
#elibtoolize
|
33 |
|
eautoreconf
|
34 |
|
}
|
|
27 |
PATCHES=(
|
|
28 |
"${FILESDIR}"/${PN}-2.15-meson-big-endian.patch
|
|
29 |
"${FILESDIR}"/${PN}-2.15-meson-samples.patch
|
|
30 |
"${FILESDIR}"/${PN}-2.15-meson-psicc-man-page.patch
|
|
31 |
"${FILESDIR}"/${PN}-2.15-pthread-linking.patch
|
|
32 |
)
|
35 |
33 |
|
36 |
34 |
multilib_src_configure() {
|
37 |
|
local myeconfargs=(
|
38 |
|
--with-threads
|
39 |
|
$(use_with jpeg)
|
40 |
|
$(use_enable static-libs static)
|
41 |
|
$(use_with tiff)
|
42 |
|
$(use_with zlib)
|
|
35 |
local emesonargs=(
|
|
36 |
-Ddefault_library=$(multilib_native_usex static-libs both shared)
|
|
37 |
-Dthreaded=true
|
|
38 |
-Dfastfloat=true
|
|
39 |
$(meson_feature jpeg)
|
|
40 |
$(meson_feature tiff)
|
43 |
41 |
)
|
44 |
42 |
|
45 |
|
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
|
43 |
meson_src_configure
|
46 |
44 |
}
|
47 |
45 |
|
48 |
46 |
multilib_src_install_all() {
|
49 |
|
find "${ED}" -type f -name "*.la" -delete || die
|
50 |
|
|
51 |
47 |
use doc && dodoc doc/*.pdf
|
52 |
48 |
}
|