blob: b7655ddaf8804c44f6a2b01a67f00a8608a444a3 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-power/nvclock/nvclock-0.8_p20110102-r1.ebuild,v 1.5 2011/04/25 03:41:08 jer Exp $
EAPI="2"
inherit eutils autotools
DESCRIPTION="NVIDIA Overclocking Utility"
HOMEPAGE="http://www.linuxhardware.org/nvclock/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="gtk nvcontrol"
RDEPEND="
gtk? ( x11-libs/gtk+:2 )
nvcontrol? ( x11-libs/libX11 x11-libs/libXext )
"
DEPEND="${RDEPEND}"
src_prepare() {
epatch "${FILESDIR}"/${P}-make.patch
eautoreconf
}
src_configure() {
# Qt support would mean Qt 3.
econf --bindir=/usr/bin --disable-qt --docdir=/usr/share/doc/${PF} \
$(use_enable gtk) $(use_enable nvcontrol)
}
src_compile() {
emake -C src/ nvclock smartdimmer || die
if use gtk; then
emake -C src/gtk/ || die
fi
}
src_install() {
dodir /usr/bin
emake DESTDIR="${D}" install || die
#dodoc AUTHORS README
newinitd "${FILESDIR}"/nvclock_initd nvclock
newconfd "${FILESDIR}"/nvclock_confd nvclock
#insinto /usr/share/applications
#doins nvclock.desktop
#validate_desktop_entries /usr/share/applications/nvclock.desktop
}
pkg_postinst() {
elog "To enable card overclocking at startup, edit your /etc/conf.d/nvclock"
elog "accordingly and then run: rc-update add nvclock default"
}
|