blob: 9830286f0e37fed11ceabc3a896a1a3d916ac6ca (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic multiprocessing toolchain-funcs udev
MY_P="Argyll_V${PV}"
DESCRIPTION="Open source, ICC compatible color management system"
HOMEPAGE="http://www.argyllcms.com/"
SRC_URI="http://www.argyllcms.com/${MY_P}_src.zip"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~hppa ~loong ~mips ~riscv ~x86"
IUSE="doc"
RDEPEND="
dev-libs/openssl:=
media-libs/libjpeg-turbo:=
media-libs/tiff:=
sys-libs/zlib
x11-libs/libX11
x11-libs/libXScrnSaver
x11-libs/libXau
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXinerama
x11-libs/libXrandr
x11-libs/libXxf86vm
"
DEPEND="${RDEPEND}"
BDEPEND="app-arch/unzip
dev-util/ftjam"
S="${WORKDIR}/${MY_P}"
src_compile() {
# Make it respect LDFLAGS
echo "LINKFLAGS += ${LDFLAGS} ;" >> Jamtop
# Evil hack to get --as-needed working. The build system unfortunately lists all
# the shared libraries by default on the command line _before_ the object to be built...
echo "STDLIBS += -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss -ltiff -ljpeg ;" >> Jamtop
append-cflags -DUNIX -D_THREAD_SAFE
sed \
-e 's:CCFLAGS:CFLAGS:g' \
-i Jambase || die
tc-export CC RANLIB
export AR="$(tc-getAR) ruscU"
jam -dx -fJambase "-j$(makeopts_jobs)" || die
}
src_install() {
jam -dx -fJambase install || die
rm bin/License.txt || die
pushd bin > /dev/null
local binname
for binname in * ; do
newbin ${binname} argyll-${binname}
done
popd > /dev/null
dodoc log.txt Readme.txt
if use doc; then
docinto html
dodoc doc/*html doc/*jpg doc/*gif
fi
insinto /usr/share/${PN}
doins -r ref
udev_dorules usb/55-Argyll.rules
}
pkg_postinst() {
udev_reload
elog "If you have a Spyder2 you need to extract the firmware"
elog "from the CVSpyder.dll of the windows driver package"
elog "and store it as /usr/share/color/spyd2PLD.bin"
echo
elog "For further info on setting up instrument access read"
elog "http://www.argyllcms.com/doc/Installing_Linux.html"
echo
}
pkg_postrm() {
udev_reload
}
|