/[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.2 Revision 1.3
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.2 2012/02/17 19:49:41 idl0r Exp $ 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 $
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
18COMMON_DEPEND="x11-libs/libXxf86vm 18#COMMON_DEPEND="x11-libs/libX11
19 x11-libs/libX11
20 x11-libs/libXext 19# x11-libs/libXext
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
29RDEPEND="x11-drivers/nvidia-drivers 29#RDEPEND="x11-drivers/nvidia-drivers
30 ${COMMON_DEPEND}" 30# ${COMMON_DEPEND}"
31DEPEND="${RDEPEND} 31#DEPEND="${RDEPEND}
32 dev-util/pkgconfig 32# dev-util/pkgconfig
33 x11-proto/xproto" 33# x11-proto/xproto"
34
35DEPEND="x11-libs/libX11
36 x11-libs/libXext"
37RDEPEND=""
34 38
35src_prepare() { 39src_prepare() {
36 epatch "${FILESDIR}/0001-Makefile-improvements.patch" 40 epatch "${FILESDIR}/0001-Makefile-improvements.patch"
37 epatch "${FILESDIR}/0002-Build-libNVCtrl-with-PIC.patch" 41 epatch "${FILESDIR}/0002-Build-libNVCtrl-with-PIC.patch"
38 42
43src_compile() { 47src_compile() {
44 einfo "Building libXNVCtrl..." 48 einfo "Building libXNVCtrl..."
45 emake -C src/libXNVCtrl/ clean # NVidia ships pre-built archives :( 49 emake -C src/libXNVCtrl/ clean # NVidia ships pre-built archives :(
46 emake -C src/libXNVCtrl/ CC="$(tc-getCC)" RANLIB="$(tc-getRANLIB)" libXNVCtrl.a 50 emake -C src/libXNVCtrl/ CC="$(tc-getCC)" RANLIB="$(tc-getRANLIB)" libXNVCtrl.a
47 51
48 einfo "Building nvidia-settings..." 52# einfo "Building nvidia-settings..."
49 emake CC="$(tc-getCC)" LD="$(tc-getLD)" STRIP_CMD=/bin/true 53# emake CC="$(tc-getCC)" LD="$(tc-getLD)" STRIP_CMD=/bin/true
50} 54}
51 55
52src_install() { 56src_install() {
53 emake DESTDIR="${D}" PREFIX=/usr install 57# emake DESTDIR="${D}" PREFIX=/usr install
54 58
55 # Install libXNVCtrl and headers 59 # Install libXNVCtrl and headers
56 insinto /usr/$(get_libdir) 60 insinto /usr/$(get_libdir)
57 doins src/libXNVCtrl/libXNVCtrl.a 61 doins src/libXNVCtrl/libXNVCtrl.a
58 62
59 insinto /usr/include/NVCtrl 63 insinto /usr/include/NVCtrl
60 doins src/libXNVCtrl/*.h 64 doins src/libXNVCtrl/*.h
61 65
62 # Install icon and .desktop entry 66 # Install icon and .desktop entry
63 doicon doc/${PN}.png 67# doicon doc/${PN}.png
64 make_desktop_entry ${PN} "NVIDIA X Server Settings" ${PN} Application 68# make_desktop_entry ${PN} "NVIDIA X Server Settings" ${PN} Application
65 69
66 # Now install documentation 70 # Now install documentation
67 dodoc doc/*.txt 71 dodoc doc/*.txt
68 72
69 if use examples; then 73 if use examples; then

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

  ViewVC Help
Powered by ViewVC 1.1.20