/[gentoo-x86]/media-video/nvidia-settings/nvidia-settings-290.10.ebuild
Gentoo

Contents of /media-video/nvidia-settings/nvidia-settings-290.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Dec 4 13:54:48 2011 UTC (7 years, 4 months ago) by jlec
Branch: MAIN
Version Bump

(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-settings/nvidia-settings-270.41.06.ebuild,v 1.1 2011/05/11 23:49:56 xmw Exp $
4
5 EAPI=4
6
7 inherit eutils flag-o-matic multilib toolchain-funcs
8
9 DESCRIPTION="NVIDIA Linux X11 Settings Utility"
10 HOMEPAGE="http://www.nvidia.com/"
11 SRC_URI="ftp://download.nvidia.com/XFree86/${PN}/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
16 IUSE=""
17
18 # xorg-server is used in the depends as nvidia-settings builds against some
19 # headers in /usr/include/xorg/.
20 # This also allows us to optimize out a lot of the other dependancies, as
21 # between gtk and xorg-server, almost all libraries and headers are accounted
22 # for.
23 DEPEND="
24 dev-util/pkgconfig
25 x11-base/xorg-server
26 x11-libs/gtk+:2
27 x11-libs/libXt
28 x11-libs/libXv
29 x11-libs/pango[X]
30 x11-proto/xf86driproto
31 x11-proto/xf86vidmodeproto"
32
33 RDEPEND="
34 x11-base/xorg-server
35 x11-libs/gtk+:2
36 x11-libs/libXt
37 x11-libs/pango[X]
38 x11-drivers/nvidia-drivers"
39
40 src_prepare() {
41 sed -i -e "s#prefix = .*#prefix = ${D}/usr#" utils.mk || die
42 }
43
44 src_compile() {
45 einfo "Building libXNVCtrl..."
46 cd "${S}/src/libXNVCtrl"
47 emake clean
48 append-flags -fPIC
49 emake CDEBUGFLAGS="${CFLAGS}" CC="$(tc-getCC)" libXNVCtrl.a
50 filter-flags -fPIC
51
52 # cd "${S}"
53 #einfo "Building nVidia-Settings..."
54 #emake CC="$(tc-getCC)" STRIP_CMD=/bin/true || die "Failed to build nvidia-settings"
55 }
56
57 src_install() {
58 #emake STRIP_CMD=/bin/true install || die
59
60 # Install libXNVCtrl and headers
61 insinto "/usr/$(get_libdir)"
62 doins src/libXNVCtrl/libXNVCtrl.a
63 insinto /usr/include/NVCtrl
64 doins src/libXNVCtrl/{NVCtrl,NVCtrlLib}.h
65
66 # Install icon and .desktop entry
67 #doicon "${FILESDIR}/icon/${PN}.png"
68 #domenu "${FILESDIR}/icon/${PN}.desktop"
69
70 # Now install documentation
71 dodoc doc/*.txt
72 }

  ViewVC Help
Powered by ViewVC 1.1.20