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

Contents of /media-video/nvidia-settings/nvidia-settings-260.19.29.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat May 5 08:58:51 2012 UTC (23 months, 2 weeks ago) by jdhore
Branch: MAIN
Changes since 1.6: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/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-260.19.29.ebuild,v 1.6 2012/04/25 04:27:06 idl0r Exp $
4
5 EAPI=2
6
7 inherit eutils toolchain-funcs multilib flag-o-matic
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=""
17
18 # xorg-server is used in the depends as nvidia-settings builds against some
19 # headers in /usr/include/xorg/.
20 # This also allows us to optimize out a lot of the other dependancies, as
21 # between gtk and xorg-server, almost all libraries and headers are accounted
22 # for.
23 DEPEND="x11-libs/gtk+:2
24 virtual/pkgconfig
25 x11-base/xorg-server
26 x11-libs/libXt
27 x11-libs/libXv
28 x11-libs/pango[X]
29 x11-proto/xf86driproto
30 x11-proto/xf86vidmodeproto"
31
32 RDEPEND="x11-libs/gtk+:2
33 x11-base/xorg-server
34 x11-libs/libXt
35 x11-libs/pango[X]
36 =x11-drivers/nvidia-drivers-2*"
37
38 src_prepare() {
39 sed -i -e "s#prefix = .*#prefix = ${D}/usr#" utils.mk
40 }
41
42 src_compile() {
43 einfo "Building libXNVCtrl..."
44 cd "${S}/src/libXNVCtrl"
45 emake clean || die "Cleaning old libXNVCtrl failed"
46 append-flags -fPIC
47 emake CDEBUGFLAGS="${CFLAGS}" CC="$(tc-getCC)" libXNVCtrl.a || die "Building libXNVCtrl failed!"
48 filter-flags -fPIC
49
50 # cd "${S}"
51 #einfo "Building nVidia-Settings..."
52 #emake CC="$(tc-getCC)" STRIP_CMD=/bin/true || die "Failed to build nvidia-settings"
53 }
54
55 src_install() {
56 #emake STRIP_CMD=/bin/true install || die
57
58 # Install libXNVCtrl and headers
59 insinto "/usr/$(get_libdir)"
60 doins src/libXNVCtrl/libXNVCtrl.a
61 insinto /usr/include/NVCtrl
62 doins src/libXNVCtrl/{NVCtrl,NVCtrlLib}.h
63
64 # Install icon and .desktop entry
65 #doicon "${FILESDIR}/icon/${PN}.png"
66 #domenu "${FILESDIR}/icon/${PN}.desktop"
67
68 # Now install documentation
69 dodoc doc/*.txt
70 }

  ViewVC Help
Powered by ViewVC 1.1.20