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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.4
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-settings/Attic/nvidia-settings-290.10.ebuild,v 1.3 2012/02/21 21:38:23 idl0r Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-settings/Attic/nvidia-settings-290.10.ebuild,v 1.4 2012/04/18 18:42:27 idl0r Exp $
4 4
5EAPI=4 5EAPI=4
6 6
7inherit eutils multilib toolchain-funcs 7inherit eutils multilib toolchain-funcs
8 8
13LICENSE="GPL-2" 13LICENSE="GPL-2"
14SLOT="0" 14SLOT="0"
15KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" 15KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
16IUSE="examples" 16IUSE="examples"
17 17
18#COMMON_DEPEND="x11-libs/libX11 18COMMON_DEPEND="x11-libs/libX11
19# x11-libs/libXext 19 x11-libs/libXext
20# x11-libs/libXxf86vm 20 x11-libs/libXxf86vm
21# x11-libs/gtk+:2 21 x11-libs/gtk+:2
22# x11-libs/gdk-pixbuf[X] 22 x11-libs/gdk-pixbuf[X]
23# media-libs/mesa 23 media-libs/mesa
24# x11-libs/pango[X] 24 x11-libs/pango[X]
25# x11-libs/libXv 25 x11-libs/libXv
26# x11-libs/libXrandr 26 x11-libs/libXrandr
27# dev-libs/glib:2" 27 dev-libs/glib:2"
28 28
29#RDEPEND="x11-drivers/nvidia-drivers 29RDEPEND="x11-drivers/nvidia-drivers
30# ${COMMON_DEPEND}" 30 ${COMMON_DEPEND}"
31#DEPEND="${RDEPEND} 31DEPEND="${RDEPEND}
32# dev-util/pkgconfig 32 dev-util/pkgconfig
33# x11-proto/xproto" 33 x11-proto/xproto"
34 34
35DEPEND="x11-libs/libX11
36 x11-libs/libXext"
37RDEPEND=""
38 35
39src_prepare() { 36src_prepare() {
40 epatch "${FILESDIR}/0001-Makefile-improvements.patch" 37 epatch "${FILESDIR}/0001-Makefile-improvements.patch"
41 epatch "${FILESDIR}/0002-Build-libNVCtrl-with-PIC.patch" 38 epatch "${FILESDIR}/0002-Build-libNVCtrl-with-PIC.patch"
42 39
47src_compile() { 44src_compile() {
48 einfo "Building libXNVCtrl..." 45 einfo "Building libXNVCtrl..."
49 emake -C src/libXNVCtrl/ clean # NVidia ships pre-built archives :( 46 emake -C src/libXNVCtrl/ clean # NVidia ships pre-built archives :(
50 emake -C src/libXNVCtrl/ CC="$(tc-getCC)" RANLIB="$(tc-getRANLIB)" libXNVCtrl.a 47 emake -C src/libXNVCtrl/ CC="$(tc-getCC)" RANLIB="$(tc-getRANLIB)" libXNVCtrl.a
51 48
52# einfo "Building nvidia-settings..." 49 einfo "Building nvidia-settings..."
53# emake CC="$(tc-getCC)" LD="$(tc-getLD)" STRIP_CMD=/bin/true 50 emake CC="$(tc-getCC)" LD="$(tc-getLD)" STRIP_CMD=/bin/true
54} 51}
55 52
56src_install() { 53src_install() {
57# emake DESTDIR="${D}" PREFIX=/usr install 54 emake DESTDIR="${D}" PREFIX=/usr install
58 55
59 # Install libXNVCtrl and headers 56 # Install libXNVCtrl and headers
60 insinto /usr/$(get_libdir) 57 insinto /usr/$(get_libdir)
61 doins src/libXNVCtrl/libXNVCtrl.a 58 doins src/libXNVCtrl/libXNVCtrl.a
62 59
63 insinto /usr/include/NVCtrl 60 insinto /usr/include/NVCtrl
64 doins src/libXNVCtrl/*.h 61 doins src/libXNVCtrl/*.h
65 62
66 # Install icon and .desktop entry 63 # Install icon and .desktop entry
67# doicon doc/${PN}.png 64# doicon doc/${PN}.png # Installed through nvidia-drivers
68# make_desktop_entry ${PN} "NVIDIA X Server Settings" ${PN} Application 65 make_desktop_entry ${PN} "NVIDIA X Server Settings" ${PN} Application
69 66
70 # Now install documentation 67 # Now install documentation
71 dodoc doc/*.txt 68 dodoc doc/*.txt
72 69
73 if use examples; then 70 if use examples; then

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20