summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Walls <malverian@gentoo.org>2003-11-05 17:06:43 +0000
committerPhilip Walls <malverian@gentoo.org>2003-11-05 17:06:43 +0000
commit82d31972217f9b90994d50eb639aa224667da6a7 (patch)
treee287bbcf47c70a1d585da9c2fc6ebb0be24fa12b /media-video/nvclock/nvclock-0.7-r1.ebuild
parentadded rc-scripts for nvclock (#19365) (diff)
downloadhistorical-82d31972217f9b90994d50eb639aa224667da6a7.tar.gz
historical-82d31972217f9b90994d50eb639aa224667da6a7.tar.bz2
historical-82d31972217f9b90994d50eb639aa224667da6a7.zip
added rc-scripts for nvclock (#19365)
Diffstat (limited to 'media-video/nvclock/nvclock-0.7-r1.ebuild')
-rw-r--r--media-video/nvclock/nvclock-0.7-r1.ebuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/media-video/nvclock/nvclock-0.7-r1.ebuild b/media-video/nvclock/nvclock-0.7-r1.ebuild
new file mode 100644
index 000000000000..cecbd51110b7
--- /dev/null
+++ b/media-video/nvclock/nvclock-0.7-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/nvclock/nvclock-0.7-r1.ebuild,v 1.1 2003/11/05 17:06:38 malverian 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"
+IUSE="gtk gtk2 qt"
+
+DEPEND="virtual/glibc
+ sys-devel/autoconf
+ gtk? ( =x11-libs/gtk+-2* )
+ qt? ( x11-libs/qt )"
+
+src_compile() {
+ epatch ${FILESDIR}/configure.in.diff || die
+ mv configure.in configure.ac
+ ./autogen.sh || die
+
+ export QTDIR=/usr/qt/3
+
+ local myconf
+
+ use gtk || myconf="${myconf} --disable-gtk"
+ use qt && myconf="${myconf} --enable-qt"
+
+ ./configure ${myconf} || die
+ make || die
+}
+
+src_install() {
+ dodir /usr/bin /etc/init.d /etc/conf.d
+ einstall || die
+
+ cp ${FILESDIR}/nvclock_initd ${D}/etc/init.d/nvclock
+ cp ${FILESDIR}/nvclock_confd ${D}/etc/conf.d/nvclock
+
+ chmod u+x ${D}/etc/init.d/nvclock
+
+ dodoc AUTHORS COPYING README
+}
+
+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"
+}