diff options
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/nvidia-settings/Manifest | 1 | ||||
-rw-r--r-- | media-video/nvidia-settings/nvidia-settings-346.35.ebuild | 78 |
2 files changed, 79 insertions, 0 deletions
diff --git a/media-video/nvidia-settings/Manifest b/media-video/nvidia-settings/Manifest index 4f47e34c..7e0b14fe 100644 --- a/media-video/nvidia-settings/Manifest +++ b/media-video/nvidia-settings/Manifest @@ -13,3 +13,4 @@ DIST nvidia-settings-334.21.tar.bz2 1545486 SHA256 acd497588f37c15ccb853cdfe1447 DIST nvidia-settings-337.25.tar.bz2 1549314 SHA256 f17197e2176cca2ed8f5898c94bbbd992d1ffe777b585cd3f6c6a38cd031a53a SHA512 3719c81a71a93c6df5ef8e108f203b252a79fb755a80a7ffce6faf44ea72310ab75386bb0fb41953df9ab5f18dd6659373d3f3615d64e2cc06e183fe8c847824 WHIRLPOOL 857e4f74cbd504d1b53578ee1ecfb45d46b243cebe194c34365aae3bc420bdb9ec8893af1798ec712039cf51471162b5b8fa3e309a01bc935a3c5830a12af481 DIST nvidia-settings-340.46.tar.bz2 1549925 SHA256 c4e5921be9968701b4ee1aa840f157dffd7e54a382f4dd3f900b2b0391fdf23d SHA512 5922abafcaa1b35836ff7f62758ba9d8b6a44a69344ac5a27850af41b007c947439e826839ab6e8f22bdd3888f764799cfafcfbb760713b14f7fafeaadb9b482 WHIRLPOOL 977e541e81deca62fa14e20e781fc3ceffb7a6c66b2be9d10234dc92f9e4255d334fcf21c65b5c102ad3d8002f02fb1f9b5f718eddd8845234945b644409c24f DIST nvidia-settings-340.58.tar.bz2 1549850 SHA256 21cd29fea50e62766d1985c84f6d6de8efa911e32abcbff8e7ccf0e43ebe25c0 SHA512 4c581a940c99fac28564ab6154f47cae496ebfda6339b7f10c5decf8fea52b6c12e5b63dfcf78f8365909e49539560a50338edb17117881b6a03c196bd51836c WHIRLPOOL b486032339c4f8c4767239e3a4b001667bceb2c3ef5f3e94f08d1c54c60a958e1c76456415769ce9ff0503b6eb3d903aa89599a0234e08447c33671c598e66c8 +DIST nvidia-settings-346.35.tar.bz2 1557427 SHA256 1c4aafa497eaf67a9d5c21761a20f08ff7603aefe169389b86e4055040d39d2f SHA512 db5b5867904b2ad2073bf55b765228c2d3e751d92d9aebd22752c2160ec401534db75cb7614ce68faae83162c251634b4c9ead60db564fa0b456abc5d5dc7997 WHIRLPOOL 6a5c73f32d5ad015f967ace653040a033afd936c8bcbedac96b2ebc525b1f5f62c992adfa9a89b67e3d2e3905a80f04163acdc45098d271d26e8a232473abda8 diff --git a/media-video/nvidia-settings/nvidia-settings-346.35.ebuild b/media-video/nvidia-settings/nvidia-settings-346.35.ebuild new file mode 100644 index 00000000..814503eb --- /dev/null +++ b/media-video/nvidia-settings/nvidia-settings-346.35.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils toolchain-funcs multilib flag-o-matic + +DESCRIPTION="NVIDIA Linux X11 Settings Utility" +HOMEPAGE="http://www.nvidia.com/" +SRC_URI="ftp://download.nvidia.com/XFree86/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" +IUSE="" + +# xorg-server is used in the depends as nvidia-settings builds against some +# headers in /usr/include/xorg/. +# This also allows us to optimize out a lot of the other dependancies, as +# between gtk and xorg-server, almost all libraries and headers are accounted +# for. +COMMON=">=x11-libs/gtk+-2:2 x11-libs/gtk+:3" +DEPEND="${COMMON} + dev-util/pkgconfig + x11-base/xorg-server + x11-libs/libXt + x11-libs/libXv + >=x11-libs/libvdpau-0.9 + x11-proto/xf86driproto + x11-proto/xf86vidmodeproto" + +RDEPEND="${COMMON} + x11-base/xorg-server + x11-libs/libXt + x11-libs/pango[X]" + +src_compile() { + einfo "Building libXNVCtrl..." + emake -C src/libXNVCtrl/ clean # NVidia ships pre-built archives :( + emake -C src/libXNVCtrl/ \ + CC="$(tc-getCC)" \ + AR="$(tc-getAR)" \ + RANLIB="$(tc-getRANLIB)" \ + libXNVCtrl.a + + einfo "Building nvidia-settings..." + emake -C src/ \ + CC="$(tc-getCC)" \ + LD="$(tc-getLD)" \ + STRIP_CMD="$(type -P true)" \ + NV_VERBOSE=1 \ + USE_EXTERNAL_JANSSON=1 +} + +src_install() { + emake -C src/ DESTDIR="${D}" PREFIX=/usr USE_EXTERNAL_JANSSON=1 install + + insinto /usr/$(get_libdir) + doins src/libXNVCtrl/libXNVCtrl.a + + insinto /usr/include/NVCtrl + doins src/libXNVCtrl/*.h + + doicon doc/${PN}.png + make_desktop_entry ${PN} "NVIDIA X Server Settings" ${PN} Settings + + dodoc doc/*.txt + + # Install icon and .desktop entry + doicon "${S}/doc/${PN}.png" + sed -i "s:__UTILS_PATH__:/usr/bin:" "${S}/doc/${PN}.desktop" + sed -i "s:__PIXMAP_PATH__:/usr/share/pixmaps:" "${S}/doc/${PN}.desktop" + sed -i "s:__NVIDIA_SETTINGS_DESKTOP_CATEGORIES__:Utility:" "${S}/doc/${PN}.desktop" + domenu "${S}/doc/${PN}.desktop" + exeinto /etc/X11/xinit/xinitrc.d + doexe "${FILESDIR}"/95-nvidia-settings +} |