/[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.1 Revision 1.2
1# Copyright 1999-2011 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.1 2011/12/04 13:54:48 jlec Exp $ 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 $
4 4
5EAPI=4 5EAPI=4
6 6
7inherit eutils flag-o-matic multilib toolchain-funcs 7inherit eutils multilib toolchain-funcs
8 8
9DESCRIPTION="NVIDIA Linux X11 Settings Utility" 9DESCRIPTION="NVIDIA Linux X11 Settings Utility"
10HOMEPAGE="http://www.nvidia.com/" 10HOMEPAGE="http://www.nvidia.com/"
11SRC_URI="ftp://download.nvidia.com/XFree86/${PN}/${P}.tar.bz2" 11SRC_URI="ftp://download.nvidia.com/XFree86/${PN}/${P}.tar.bz2"
12 12
13LICENSE="GPL-2" 13LICENSE="GPL-2"
14SLOT="0" 14SLOT="0"
15KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" 15KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
16IUSE="" 16IUSE="examples"
17 17
18# xorg-server is used in the depends as nvidia-settings builds against some 18COMMON_DEPEND="x11-libs/libXxf86vm
19# headers in /usr/include/xorg/. 19 x11-libs/libX11
20# This also allows us to optimize out a lot of the other dependancies, as 20 x11-libs/libXext
21# between gtk and xorg-server, almost all libraries and headers are accounted 21 x11-libs/gtk+:2
22# for. 22 x11-libs/gdk-pixbuf[X]
23DEPEND=" 23 media-libs/mesa
24 x11-libs/pango[X]
25 x11-libs/libXv
26 x11-libs/libXrandr
27 dev-libs/glib:2"
28
29RDEPEND="x11-drivers/nvidia-drivers
30 ${COMMON_DEPEND}"
31DEPEND="${RDEPEND}
24 dev-util/pkgconfig 32 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 33 x11-proto/xproto"
31 x11-proto/xf86vidmodeproto"
32
33RDEPEND="
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 34
40src_prepare() { 35src_prepare() {
41 sed -i -e "s#prefix = .*#prefix = ${D}/usr#" utils.mk || die 36 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
42} 41}
43 42
44src_compile() { 43src_compile() {
45 einfo "Building libXNVCtrl..." 44 einfo "Building libXNVCtrl..."
46 cd "${S}/src/libXNVCtrl" 45 emake -C src/libXNVCtrl/ clean # NVidia ships pre-built archives :(
47 emake clean 46 emake -C src/libXNVCtrl/ CC="$(tc-getCC)" RANLIB="$(tc-getRANLIB)" libXNVCtrl.a
48 append-flags -fPIC
49 emake CDEBUGFLAGS="${CFLAGS}" CC="$(tc-getCC)" libXNVCtrl.a
50 filter-flags -fPIC
51 47
52 # cd "${S}"
53 #einfo "Building nVidia-Settings..." 48 einfo "Building nvidia-settings..."
54 #emake CC="$(tc-getCC)" STRIP_CMD=/bin/true || die "Failed to build nvidia-settings" 49 emake CC="$(tc-getCC)" LD="$(tc-getLD)" STRIP_CMD=/bin/true
55} 50}
56 51
57src_install() { 52src_install() {
58 #emake STRIP_CMD=/bin/true install || die 53 emake DESTDIR="${D}" PREFIX=/usr install
59 54
60 # Install libXNVCtrl and headers 55 # Install libXNVCtrl and headers
61 insinto "/usr/$(get_libdir)" 56 insinto /usr/$(get_libdir)
62 doins src/libXNVCtrl/libXNVCtrl.a 57 doins src/libXNVCtrl/libXNVCtrl.a
58
63 insinto /usr/include/NVCtrl 59 insinto /usr/include/NVCtrl
64 doins src/libXNVCtrl/{NVCtrl,NVCtrlLib}.h 60 doins src/libXNVCtrl/*.h
65 61
66 # Install icon and .desktop entry 62 # Install icon and .desktop entry
67 #doicon "${FILESDIR}/icon/${PN}.png" 63 doicon doc/${PN}.png
68 #domenu "${FILESDIR}/icon/${PN}.desktop" 64 make_desktop_entry ${PN} "NVIDIA X Server Settings" ${PN} Application
69 65
70 # Now install documentation 66 # Now install documentation
71 dodoc doc/*.txt 67 dodoc doc/*.txt
68
69 if use examples; then
70 docinto examples/
71 dodoc samples/*.c
72 dodoc samples/README
73 fi
72} 74}

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

  ViewVC Help
Powered by ViewVC 1.1.20