blob: b6230f742b61a4f5ec4881475b719dc2e2ea22bb (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/nvclock/nvclock-0.8b.ebuild,v 1.3 2006/06/24 01:35:13 cardoe Exp $
inherit eutils
MY_P="${PN}${PV}"
S=${WORKDIR}/${MY_P}
DESCRIPTION="NVIDIA Overclocking Utility"
HOMEPAGE="http://www.linuxhardware.org/nvclock/"
SRC_URI="http://www.linuxhardware.org/nvclock/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="gtk qt3"
RDEPEND="virtual/libc
gtk? ( =x11-libs/gtk+-2* )
qt3? ( =x11-libs/qt-3* )"
DEPEND="${RDEPEND}
sys-devel/autoconf"
src_compile() {
mv configure.in configure.ac
./autogen.sh || die
export QTDIR=/usr/qt/3
local myconf
use gtk || myconf="${myconf} --disable-gtk"
use qt3 || myconf="${myconf} --disable-qt"
./configure ${myconf} || die
make || die
}
src_install() {
dodir /usr/bin
einstall || die
dodoc AUTHORS README
newinitd ${FILESDIR}/nvclock_initd nvclock
newconfd ${FILESDIR}/nvclock_confd nvclock
}
pkg_postinst() {
einfo "To enable card overclocking at startup, edit your /etc/conf.d/nvclock"
einfo "accordingly and then run: rc-update add nvclock default"
}
|