blob: 47cdd80082d70a3abf6e1b253bd56db4f738daa7 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-settings/nvidia-settings-1.0.20051122.ebuild,v 1.1 2005/12/05 21:37:31 azarah Exp $
inherit eutils toolchain-funcs multilib
NVIDIA_VERSION="1.0.7664"
S="${WORKDIR}/${PN}-1.0"
DESCRIPTION="NVIDIA Linux X11 Settings Utility"
HOMEPAGE="http://www.nvidia.com/"
SRC_URI="mirror://gentoo/${P}.tar.gz
http://dev.gentoo.org/~azarah/nvidia/${P}.tar.gz"
# Real SRC_URI: ftp://download.nvidia.com/XFree86/nvidia-settings/
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~x86 ~amd64"
IUSE=
DEPEND="virtual/libc
virtual/x11
>=x11-libs/gtk+-2"
RDEPEND=">=media-video/nvidia-glx-${NVIDIA_VERSION}
>=media-video/nvidia-kernel-${NVIDIA_VERSION}"
src_compile() {
cd ${S}/src/libXNVCtrl
einfo "Building libXNVCtrl..."
# This next voodoo is just to work around xmkmf's broken behaviour
# after the Xorg move to /usr (or I think, as I have not messed
# with it in ages).
ln -snf ${ROOT}/usr/include/X11 include
xmkmf -a || die "Running xmkmf failed!"
make CCOPTIONS="${CFLAGS}" clean all || die "Building libXNVCtrl failed!"
cd ${S}
einfo "Building nVidia-Settings..."
emake CC=$(tc-getCC) || die "Failed to build nvidia-settings"
}
src_install() {
# Install the executable
exeinto /usr/bin
doexe nvidia-settings
# Install libXNVCtrl and headers
insinto "/usr/$(get_libdir)"
doins src/libXNVCtrl/libXNVCtrl.a
insinto /usr/include/NVCtrl
doins src/libXNVCtrl/{NVCtrl,NVCtrlLib}.h
# Now install documentation
rm -f doc/Makefile*
dodoc doc/*
}
|