1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit flag-o-matic multiprocessing toolchain-funcs udev
10 DESCRIPTION="Open source, ICC compatible color management system"
11 HOMEPAGE="http://www.argyllcms.com/"
12 SRC_URI="http://www.argyllcms.com/${MY_P}_src.zip"
16 KEYWORDS="~amd64 ~arm64 ~hppa ~x86"
30 x11-libs/libXScrnSaver
31 !libressl? ( dev-libs/openssl:0= )
32 libressl? ( dev-libs/libressl:0= )"
34 BDEPEND="app-arch/unzip
37 PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
39 S="${WORKDIR}/${MY_P}"
42 # Make it respect LDFLAGS
43 echo "LINKFLAGS += ${LDFLAGS} ;" >> Jamtop
45 # Evil hack to get --as-needed working. The build system unfortunately lists all
46 # the shared libraries by default on the command line _before_ the object to be built...
47 echo "STDLIBS += -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss -ltiff -ljpeg ;" >> Jamtop
49 append-cflags -DUNIX -D_THREAD_SAFE
52 -e 's:CCFLAGS:CFLAGS:g' \
53 -e "s:ar rusc:$(tc-getAR) rusc:g" \
58 jam -dx -fJambase "-j$(makeopts_jobs)" || die
62 jam -dx -fJambase install || die
64 rm bin/License.txt || die
69 newbin ${binname} argyll-${binname}
73 dodoc log.txt Readme.txt ttbd.txt notes.txt
76 dodoc doc/*html doc/*jpg doc/*gif
79 insinto /usr/share/${PN}
82 udev_dorules usb/55-Argyll.rules
86 elog "If you have a Spyder2 you need to extract the firmware"
87 elog "from the CVSpyder.dll of the windows driver package"
88 elog "and store it as /usr/share/color/spyd2PLD.bin"
90 elog "For further info on setting up instrument access read"
91 elog "http://www.argyllcms.com/doc/Installing_Linux.html"