blob: b472dd74897bd494b003f5f591febab6add58c9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
MY_P="${PN}_V${PV}"
DESCRIPTION="Library for reading and writing ICC color profile files"
HOMEPAGE="http://freshmeat.sourceforge.net/projects/icclib"
SRC_URI="http://www.argyllcms.com/${MY_P}.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
BDEPEND="app-arch/unzip"
S="${WORKDIR}"
PATCHES=(
"${FILESDIR}"/${P}-make.patch
"${FILESDIR}"/${P}-fno-common.patch
)
src_compile() {
ICCLIB_SOVERSION="0"
emake CC="$(tc-getCC)" ICCLIB_SOVERSION="${ICCLIB_SOVERSION}"
}
src_install() {
dobin iccdump
mv libicc.so libicc.so.${ICCLIB_SOVERSION} || die
dolib.so libicc.so.${ICCLIB_SOVERSION}
dosym libicc.so.${ICCLIB_SOVERSION} /usr/$(get_libdir)/libicc.so
doheader icc*.h
dodoc Readme.txt todo.txt log.txt
}
|