/[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.3 - (show annotations) (download)
Tue Feb 21 21:38:23 2012 UTC (7 years, 2 months ago) by idl0r
Branch: MAIN
Changes since 1.2: +25 -21 lines
Revert parts of my previous commit for now until we've fixed both, nvidia-drivers and nvidia-settings to not collide.

(Portage version: 2.1.10.44/cvs/Linux i686)

1 # Copyright 1999-2012 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-295.20.ebuild,v 1.1 2012/02/17 17:33:27 idl0r Exp $
4
5 EAPI=4
6
7 inherit eutils 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="examples"
17
18 #COMMON_DEPEND="x11-libs/libX11
19 # x11-libs/libXext
20 # x11-libs/libXxf86vm
21 # x11-libs/gtk+:2
22 # x11-libs/gdk-pixbuf[X]
23 # media-libs/mesa
24 # x11-libs/pango[X]
25 # x11-libs/libXv
26 # x11-libs/libXrandr
27 # dev-libs/glib:2"
28
29 #RDEPEND="x11-drivers/nvidia-drivers
30 # ${COMMON_DEPEND}"
31 #DEPEND="${RDEPEND}
32 # dev-util/pkgconfig
33 # x11-proto/xproto"
34
35 DEPEND="x11-libs/libX11
36 x11-libs/libXext"
37 RDEPEND=""
38
39 src_prepare() {
40 epatch "${FILESDIR}/0001-Makefile-improvements.patch"
41 epatch "${FILESDIR}/0002-Build-libNVCtrl-with-PIC.patch"
42
43 # The PM does it for us
44 sed -i -e 's:^\(MANPAGE_GZIP ?=\) 1:\1 0:' Makefile || die
45 }
46
47 src_compile() {
48 einfo "Building libXNVCtrl..."
49 emake -C src/libXNVCtrl/ clean # NVidia ships pre-built archives :(
50 emake -C src/libXNVCtrl/ CC="$(tc-getCC)" RANLIB="$(tc-getRANLIB)" libXNVCtrl.a
51
52 # einfo "Building nvidia-settings..."
53 # emake CC="$(tc-getCC)" LD="$(tc-getLD)" STRIP_CMD=/bin/true
54 }
55
56 src_install() {
57 # emake DESTDIR="${D}" PREFIX=/usr install
58
59 # Install libXNVCtrl and headers
60 insinto /usr/$(get_libdir)
61 doins src/libXNVCtrl/libXNVCtrl.a
62
63 insinto /usr/include/NVCtrl
64 doins src/libXNVCtrl/*.h
65
66 # Install icon and .desktop entry
67 # doicon doc/${PN}.png
68 # make_desktop_entry ${PN} "NVIDIA X Server Settings" ${PN} Application
69
70 # Now install documentation
71 dodoc doc/*.txt
72
73 if use examples; then
74 docinto examples/
75 dodoc samples/*.c
76 dodoc samples/README
77 fi
78 }

  ViewVC Help
Powered by ViewVC 1.1.20