/[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.7 - (hide annotations) (download)
Wed Apr 25 02:43:16 2012 UTC (6 years, 4 months ago) by idl0r
Branch: MAIN
Changes since 1.6: +3 -3 lines
Fix nvidia-drivers dependency and more FreeBSD build fixes

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

1 idl0r 1.2 # Copyright 1999-2012 Gentoo Foundation
2 jlec 1.1 # Distributed under the terms of the GNU General Public License v2
3 idl0r 1.7 # $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-settings/nvidia-settings-295.20.ebuild,v 1.5 2012/04/18 22:21:11 idl0r Exp $
4 jlec 1.1
5     EAPI=4
6    
7 idl0r 1.2 inherit eutils multilib toolchain-funcs
8 jlec 1.1
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 idl0r 1.2 IUSE="examples"
17 jlec 1.1
18 idl0r 1.4 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 idl0r 1.7 RDEPEND="=x11-drivers/nvidia-drivers-2*
30 idl0r 1.4 ${COMMON_DEPEND}"
31     DEPEND="${RDEPEND}
32     dev-util/pkgconfig
33     x11-proto/xproto"
34    
35 jlec 1.1 src_prepare() {
36 idl0r 1.2 epatch "${FILESDIR}/0001-Makefile-improvements.patch"
37     epatch "${FILESDIR}/0002-Build-libNVCtrl-with-PIC.patch"
38    
39     # The PM does it for us
40     sed -i -e 's:^\(MANPAGE_GZIP ?=\) 1:\1 0:' Makefile || die
41 jlec 1.1 }
42    
43     src_compile() {
44     einfo "Building libXNVCtrl..."
45 idl0r 1.2 emake -C src/libXNVCtrl/ clean # NVidia ships pre-built archives :(
46     emake -C src/libXNVCtrl/ CC="$(tc-getCC)" RANLIB="$(tc-getRANLIB)" libXNVCtrl.a
47    
48 idl0r 1.4 einfo "Building nvidia-settings..."
49 idl0r 1.7 emake CC="$(tc-getCC)" LD="$(tc-getLD)" STRIP_CMD="$(type -P true)" NV_VERBOSE=1
50 jlec 1.1 }
51    
52     src_install() {
53 idl0r 1.4 emake DESTDIR="${D}" PREFIX=/usr install
54 jlec 1.1
55     # Install libXNVCtrl and headers
56 idl0r 1.2 insinto /usr/$(get_libdir)
57 jlec 1.1 doins src/libXNVCtrl/libXNVCtrl.a
58 idl0r 1.2
59 jlec 1.1 insinto /usr/include/NVCtrl
60 idl0r 1.2 doins src/libXNVCtrl/*.h
61 jlec 1.1
62     # Install icon and .desktop entry
63 idl0r 1.4 # doicon doc/${PN}.png # Installed through nvidia-drivers
64     make_desktop_entry ${PN} "NVIDIA X Server Settings" ${PN} Application
65 jlec 1.1
66 idl0r 1.6 # bug 412569 - Installed through nvidia-drivers
67     rm -rf "${D}"/usr/share/man
68    
69 jlec 1.1 # Now install documentation
70     dodoc doc/*.txt
71 idl0r 1.2
72     if use examples; then
73     docinto examples/
74     dodoc samples/*.c
75     dodoc samples/README
76     fi
77 jlec 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20