Lines 13-19
Link Here
|
13 |
LICENSE="GPL-2" |
13 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
14 |
SLOT="0" |
15 |
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
15 |
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
16 |
IUSE="" |
16 |
IUSE="examples" |
17 |
|
17 |
|
18 |
# xorg-server is used in the depends as nvidia-settings builds against some |
18 |
# xorg-server is used in the depends as nvidia-settings builds against some |
19 |
# headers in /usr/include/xorg/. |
19 |
# headers in /usr/include/xorg/. |
Lines 36-49
Link Here
|
36 |
S="${WORKDIR}/${MY_P}" |
36 |
S="${WORKDIR}/${MY_P}" |
37 |
|
37 |
|
38 |
src_compile() { |
38 |
src_compile() { |
39 |
einfo "Building libXNVCtrl..." |
39 |
tc-export CC |
40 |
cd "${S}/src/libXNVCtrl" |
40 |
emake clean || die "emake clean failed" |
41 |
make clean || die "Cleaning old libXNVCtrl failed" |
41 |
emake || die "emake failed" |
42 |
emake CDEBUGFLAGS="${CFLAGS}" CC="$(tc-getCC)" libXNVCtrl.a || die "Building libXNVCtrl failed!" |
42 |
|
43 |
|
43 |
if use examples; then |
44 |
cd "${S}" |
44 |
emake -C samples clean || die "emake clean samples failed" |
45 |
einfo "Building nVidia-Settings..." |
45 |
emake -C samples/ || die "emake samples failed" |
46 |
emake CC="$(tc-getCC)" || die "Failed to build nvidia-settings" |
46 |
fi |
47 |
} |
47 |
} |
48 |
|
48 |
|
49 |
src_install() { |
49 |
src_install() { |
Lines 66-69
Link Here
|
66 |
|
66 |
|
67 |
# Now install documentation |
67 |
# Now install documentation |
68 |
dodoc doc/*.txt |
68 |
dodoc doc/*.txt |
|
|
69 |
|
70 |
if use examples; then |
71 |
for i in $(find samples/* -executable); do |
72 |
doexe $i |
73 |
done; |
74 |
fi |
69 |
} |
75 |
} |