summaryrefslogtreecommitdiff
path: root/x11-misc/nvidia-settings/nvidia-settings-390.116.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/nvidia-settings/nvidia-settings-390.116.ebuild')
-rw-r--r--x11-misc/nvidia-settings/nvidia-settings-390.116.ebuild40
1 files changed, 29 insertions, 11 deletions
diff --git a/x11-misc/nvidia-settings/nvidia-settings-390.116.ebuild b/x11-misc/nvidia-settings/nvidia-settings-390.116.ebuild
index 5c79b7e7..bb21aea6 100644
--- a/x11-misc/nvidia-settings/nvidia-settings-390.116.ebuild
+++ b/x11-misc/nvidia-settings/nvidia-settings-390.116.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
inherit eutils multilib toolchain-funcs
@@ -33,32 +33,50 @@ COMMON_DEPEND="
>=x11-libs/libvdpau-1.0"
RDEPEND="${COMMON_DEPEND}
- x11-drivers/nvidia-drivers"
+ x11-drivers/nvidia-drivers:${SLOT}"
DEPEND="${RDEPEND}
virtual/pkgconfig
x11-base/xorg-proto"
+src_prepare() {
+ default
+ eapply "${FILESDIR}"/nvidia-settings-linker.patch
+}
+
src_compile() {
- einfo "Building libXNVCtrl..."
emake -C src/ \
- CC="$(tc-getCC)" \
AR="$(tc-getAR)" \
+ CC="$(tc-getCC)" \
+ DO_STRIP= \
+ LD="$(tc-getCC)" \
+ LIBDIR="$(get_libdir)" \
+ NVLD="$(tc-getLD)" \
+ NV_VERBOSE=1 \
RANLIB="$(tc-getRANLIB)" \
build-xnvctrl
- einfo "Building nvidia-settings..."
emake -C src/ \
CC="$(tc-getCC)" \
- LD="$(tc-getLD)" \
- STRIP_CMD="$(type -P true)" \
- NV_VERBOSE=1 \
+ DO_STRIP= \
+ GTK3_AVAILABLE=$(usex gtk3 1 0) \
+ LD="$(tc-getCC)" \
+ LIBDIR="$(get_libdir)" \
+ NVLD="$(tc-getLD)" \
+ NVML_ENABLED=0 \
NV_USE_BUNDLED_LIBJANSSON=0 \
- NVML_AVAILABLE=0 \
- GTK3_AVAILABLE=$(usex gtk3 1 0)
+ NV_VERBOSE=1
}
src_install() {
- emake -C src/ DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" NV_USE_BUNDLED_LIBJANSSON=0 GTK3_AVAILABLE=$(usex gtk3 1 0) PREFIX=/usr DO_STRIP= install
+ emake -C src/ \
+ DESTDIR="${D}" \
+ GTK3_AVAILABLE=$(usex gtk3 1 0) \
+ LIBDIR="${D}/usr/$(get_libdir)" \
+ NV_USE_BUNDLED_LIBJANSSON=0 \
+ NV_VERBOSE=1 \
+ PREFIX=/usr \
+ DO_STRIP= \
+ install
insinto /usr/$(get_libdir)
doins src/libXNVCtrl/libXNVCtrl.a