blob: 4c55af7fd31d5adc115417f0d06a971ba08d6b77 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xcalib/xcalib-0.8.ebuild,v 1.4 2008/04/14 11:36:52 flameeyes Exp $
inherit eutils toolchain-funcs multilib
DESCRIPTION="xcalib is a tiny monitor calibration loader for X.org"
HOMEPAGE="http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/"
SRC_URI="http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/xcalib-source-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
RDEPEND="x11-libs/libX11
x11-libs/libXext
x11-libs/libXxf86vm"
DEPEND="${RDEPEND}
x11-proto/xf86vidmodeproto"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-ldflags.patch"
}
src_compile() {
emake \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
XINCLUDEDIR=/usr/include \
XLIBDIR=/usr/$(get_libdir) \
|| die 'make failed'
}
src_install() {
dobin xcalib
dodoc README
docinto profiles
dodoc *.icm *.icc
}
|