/[gentoo-x86]/media-gfx/argyllcms/argyllcms-1.4.0.ebuild
Gentoo

Contents of /media-gfx/argyllcms/argyllcms-1.4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Oct 13 11:00:14 2012 UTC (20 months, 4 weeks ago) by pinkbyte
Branch: MAIN
Changes since 1.3: +7 -4 lines
Fix location for installing udev rules wrt bug #438114

(Portage version: 2.2.0_alpha134/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/argyllcms/argyllcms-1.4.0.ebuild,v 1.3 2012/05/21 21:45:33 jdhore Exp $
4
5 EAPI=4
6
7 inherit base toolchain-funcs
8
9 MY_P="Argyll_V${PV}"
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"
13
14 LICENSE="AGPL-3"
15 SLOT="0"
16 KEYWORDS="amd64 x86"
17 IUSE="doc"
18
19 RDEPEND="media-libs/tiff
20 virtual/jpeg
21 sys-libs/zlib
22 x11-libs/libX11
23 x11-libs/libXau
24 x11-libs/libXdmcp
25 x11-libs/libXext
26 x11-libs/libXinerama
27 x11-libs/libXrandr
28 x11-libs/libXxf86vm
29 x11-libs/libXScrnSaver"
30 DEPEND="${RDEPEND}
31 app-arch/unzip
32 dev-util/ftjam
33 virtual/pkgconfig"
34
35 S="${WORKDIR}/${MY_P}"
36
37 PATCHES=( "${FILESDIR}/${P}-jpeg.patch" )
38
39 src_compile() {
40 # Make it respect LDFLAGS
41 echo "LINKFLAGS += ${LDFLAGS} ;" >> Jamtop
42
43 # Evil hack to get --as-needed working. The build system unfortunately lists all
44 # the shared libraries by default on the command line _before_ the object to be built...
45 echo "STDLIBS += -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss -ltiff -ljpeg ;" >> Jamtop
46
47 local jobnumber=$(echo "${MAKEOPTS}" | sed -ne "/-j/ { s/.*\(-j[[:space:]]*[0-9]\+\).*/\1/; p }")
48 [ ${jobnumber} ] || jobnumber=-j1
49
50 jam -q -fJambase ${jobnumber} || die
51 }
52
53 src_install() {
54 jam -q -fJambase install || die
55
56 rm bin/License.txt || die
57
58 cd bin || die
59 local binname
60 for binname in * ; do
61 newbin ${binname} argyll-${binname}
62 done
63 cd .. || die
64
65 if use doc; then
66 dohtml doc/*
67 fi
68
69 dodoc log.txt Readme.txt ttbd.txt notes.txt
70
71 insinto /usr/share/${PN}/ref
72 doins ref/*
73
74 local udevdir=/lib/udev
75 has_version sys-fs/udev && udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)"
76 insinto "${udevdir}"/rules.d
77 doins libusb/55-Argyll.rules
78 }
79
80 pkg_postinst() {
81 elog "To avoid file collisions, all binary names have been prefixed"
82 elog "with \"argyll-\". E.g., the \"refine\" program is now called"
83 elog "\"argyll-refine\"."
84 elog
85 elog "If you have a Spyder2 you need to extract the firmware"
86 elog "from the CVSpyder.dll of the windows driver package"
87 elog "and store it as /usr/share/color/spyd2PLD.bin"
88 elog
89 elog "For further info on setting up instrument access read"
90 elog "http://www.argyllcms.com/doc/Installing_Linux.html"
91 elog
92 }

  ViewVC Help
Powered by ViewVC 1.1.20