Lines 1-39
Link Here
|
1 |
# Copyright 1999-2005 Gentoo Foundation |
1 |
# Copyright 1999-2006 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/nvidia-settings-1.0.7167.ebuild,v 1.2 2005/06/12 12:15:17 swegener Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-settings/nvidia-settings-1.0.20051122-r3.ebuild,v 1.1 2006/01/19 00:18:55 augustus Exp $ |
4 |
|
4 |
|
5 |
inherit eutils toolchain-funcs |
5 |
inherit eutils toolchain-funcs multilib |
6 |
|
6 |
|
7 |
NVIDIA_VERSION="${PV}" |
7 |
NVIDIA_VERSION="${PV}" |
8 |
S="${WORKDIR}/${PN}-1.0" |
8 |
S="${WORKDIR}/${PN}-1.0" |
9 |
DESCRIPTION="NVIDIA Linux X11 Settings Utility" |
9 |
DESCRIPTION="NVIDIA Linux X11 Settings Utility" |
10 |
HOMEPAGE="http://www.nvidia.com/" |
10 |
HOMEPAGE="http://www.nvidia.com/" |
11 |
SRC_URI="mirror://gentoo/${PN}-${NVIDIA_VERSION}.tar.gz" |
11 |
SRC_URI="mirror://gentoo/${P}.tar.gz |
|
|
12 |
http://dev.gentoo.org/~azarah/nvidia/${P}.tar.gz" |
13 |
# Real SRC_URI: ftp://download.nvidia.com/XFree86/nvidia-settings/ |
12 |
|
14 |
|
13 |
LICENSE="GPL-2" |
15 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
16 |
SLOT="0" |
15 |
KEYWORDS="-* ~x86 ~amd64" |
17 |
KEYWORDS="-* ~x86 ~amd64" |
16 |
IUSE= |
18 |
IUSE= |
17 |
|
19 |
|
|
|
20 |
# xorg-server is used in the depends as nvidia-settings builds against some |
21 |
# headers in /usr/include/xorg/. |
22 |
# This also allows us to optimize out a lot of the other dependancies, as |
23 |
# between gtk and xorg-server, almost all libraries and headers are accounted |
24 |
# for. |
18 |
DEPEND="virtual/libc |
25 |
DEPEND="virtual/libc |
19 |
virtual/x11 |
26 |
>=x11-libs/gtk+-2 |
20 |
>=x11-libs/gtk+-2" |
27 |
|| ( ( x11-base/xorg-server |
|
|
28 |
x11-libs/libXt |
29 |
x11-proto/xf86driproto |
30 |
x11-misc/imake |
31 |
x11-misc/gccmakedep ) |
32 |
virtual/x11 |
33 |
)" |
21 |
RDEPEND=">=media-video/nvidia-glx-${NVIDIA_VERSION} |
34 |
RDEPEND=">=media-video/nvidia-glx-${NVIDIA_VERSION} |
22 |
>=media-video/nvidia-kernel-${NVIDIA_VERSION}" |
35 |
>=media-video/nvidia-kernel-${NVIDIA_VERSION} |
|
|
36 |
>=x11-libs/gtk+-2 |
37 |
|| ( ( x11-base/xorg-server |
38 |
x11-libs/libXt ) |
39 |
virtual/x11 |
40 |
)" |
23 |
|
41 |
|
24 |
src_compile() { |
42 |
src_unpack() { |
|
|
43 |
unpack ${A} |
25 |
cd ${S}/src/libXNVCtrl |
44 |
cd ${S}/src/libXNVCtrl |
26 |
einfo "Building libXNVCtrl..." |
45 |
einfo "Tweaking libXNVCtrl for build..." |
27 |
# This next voodoo is just to work around xmkmf's broken behaviour |
46 |
# This next voodoo is just to work around xmkmf's broken behaviour |
28 |
# after the Xorg move to /usr (or I think, as I have not messed |
47 |
# after the Xorg move to /usr (or I think, as I have not messed |
29 |
# with it in ages). |
48 |
# with it in ages). |
30 |
ln -snf ${ROOT}/usr/include/X11 include |
49 |
ln -snf ${ROOT}/usr/include/X11 include |
|
|
50 |
|
51 |
# Ensure that libNVCtrl.a is actually built |
52 |
# Regardless of how NormalLibXrandr was built |
53 |
# (NormalLibXrandr indicates if Xrandr was built as static or not) |
54 |
# NormalLibXrandr was 'YES' in Xorg-6.8, but is 'NO' in 7.0. |
55 |
sed -i.orig \ |
56 |
-e 's,DoNormalLib NormalLibXrandr,DoNormalLib YES,g' \ |
57 |
Imakefile |
58 |
|
59 |
# for a rainy day, when we need a shared libXNVCtrl.so |
60 |
#-e 'a#define DoSharedLib YES\n' \ |
61 |
} |
62 |
|
63 |
src_compile() { |
64 |
einfo "Building libXNVCtrl..." |
65 |
cd ${S}/src/libXNVCtrl |
31 |
xmkmf -a || die "Running xmkmf failed!" |
66 |
xmkmf -a || die "Running xmkmf failed!" |
32 |
make CCOPTIONS="${CFLAGS}" clean all || die "Building libXNVCtrl failed!" |
67 |
make clean || die "Cleaning old libXNVCtrl failed" |
|
|
68 |
emake CDEBUGFLAGS="${CFLAGS}" CC="$(tc-getCC)" all || die "Building libXNVCtrl failed!" |
33 |
|
69 |
|
34 |
cd ${S} |
70 |
cd ${S} |
35 |
einfo "Building nVidia-Settings..." |
71 |
einfo "Building nVidia-Settings..." |
36 |
emake CC=$(tc-getCC) || die "Failed to build nvidia-settings" |
72 |
emake CC="$(tc-getCC)" || die "Failed to build nvidia-settings" |
37 |
} |
73 |
} |
38 |
|
74 |
|
39 |
src_install() { |
75 |
src_install() { |
Lines 41-47
Link Here
|
41 |
exeinto /usr/bin |
77 |
exeinto /usr/bin |
42 |
doexe nvidia-settings |
78 |
doexe nvidia-settings |
43 |
|
79 |
|
|
|
80 |
# Install libXNVCtrl and headers |
81 |
insinto "/usr/$(get_libdir)" |
82 |
doins src/libXNVCtrl/libXNVCtrl.a |
83 |
insinto /usr/include/NVCtrl |
84 |
doins src/libXNVCtrl/{NVCtrl,NVCtrlLib}.h |
85 |
|
86 |
# Install icon and .desktop entry |
87 |
doicon "${FILESDIR}/icon/${PN}.png" |
88 |
domenu "${FILESDIR}/icon/${PN}.desktop" |
89 |
|
90 |
# Install manpage |
91 |
doman doc/nvidia-settings.1 |
92 |
|
44 |
# Now install documentation |
93 |
# Now install documentation |
45 |
rm -f doc/Makefile* |
94 |
dodoc doc/*.txt |
46 |
dodoc doc/* |
|
|
47 |
} |
95 |
} |