Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 10th, 2012  |  syntax: None  |  size: 1.93 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Copyright 1999-2011 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.3 2011/01/03 21:30:59 fauli 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.         dev-util/pkgconfig
  25.         x11-base/xorg-server
  26.         x11-libs/libXt
  27.         x11-libs/libXv
  28.         x11-proto/xf86driproto
  29.         x11-proto/xf86vidmodeproto"
  30.  
  31. RDEPEND=">=x11-libs/gtk+-2
  32.         x11-base/xorg-server
  33.         x11-libs/libXt
  34.         x11-drivers/nvidia-drivers"
  35.  
  36. src_prepare() {
  37.         sed -i -e "s#prefix = .*#prefix = ${D}/usr#" utils.mk
  38. }
  39.  
  40. src_compile() {
  41.         einfo "Building libXNVCtrl..."
  42.         cd "${S}/src/libXNVCtrl"
  43.         emake clean || die "Cleaning old libXNVCtrl failed"
  44.         append-flags -fPIC
  45.         emake CDEBUGFLAGS="${CFLAGS}" CC="$(tc-getCC)" libXNVCtrl.a || die "Building libXNVCtrl failed!"
  46.         filter-flags -fPIC
  47.  
  48.         # cd "${S}"
  49.         #einfo "Building nVidia-Settings..."
  50.         #emake  CC="$(tc-getCC)" STRIP_CMD=/bin/true || die "Failed to build nvidia-settings"
  51. }
  52.  
  53. src_install() {
  54.         #emake STRIP_CMD=/bin/true install || die
  55.  
  56.         # Install libXNVCtrl and headers
  57.         insinto "/usr/$(get_libdir)"
  58.         doins src/libXNVCtrl/libXNVCtrl.a
  59.         insinto /usr/include/NVCtrl
  60.         doins src/libXNVCtrl/{NVCtrl,NVCtrlLib}.h
  61.  
  62.         # Install icon and .desktop entry
  63.         #doicon "${FILESDIR}/icon/${PN}.png"
  64.         #domenu "${FILESDIR}/icon/${PN}.desktop"
  65.  
  66.         # Now install documentation
  67.         dodoc doc/*.txt
  68. }