dcallagh-exheres

My personal Exherbo repository
git clone https://code.djc.id.au/git/dcallagh-exheres/
commit 8182f672ba97ad1e47d1a2e514c3fb28c7dfbe14
parent 05534318d21f379af6bb249f59be056906b67614
Author: Dan Callaghan <djc@djc.id.au>
Date:   Thu,  4 Nov 2010 20:19:02 +1000

added libXNVCtrl, from nvidia-settings

Diffstat:
Apackages/x11-libs/libXNVCtrl/libXNVCtrl-256.53.exheres-0 | 48++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+), 0 deletions(-)
diff --git a/packages/x11-libs/libXNVCtrl/libXNVCtrl-256.53.exheres-0 b/packages/x11-libs/libXNVCtrl/libXNVCtrl-256.53.exheres-0
@@ -0,0 +1,48 @@
+# Copyright 2010 Dan Callaghan <djc@djc.id.au>
+# Distributed under the terms of the GNU General Public License v2
+# Based in part upon nvidia-settings-256.52.ebuild, which is:
+#   Copyright 1999-2010 Gentoo Foundation
+
+require multilib
+
+SUMMARY="Library for doing stuff with nvidia GPUs"
+HOMEPAGE="http://www.nvidia.com/"
+DOWNLOADS="ftp://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-${PV}.tar.bz2"
+
+LICENCES="GPL-2"
+SLOT="0"
+PLATFORMS="~amd64 ~x86"
+
+DEPENDENCIES="
+    build+run:
+        x11-libs/libX11
+        x11-libs/libXext
+"
+
+BUGS_TO="djc@djc.id.au"
+
+WORK="${WORKBASE}/nvidia-settings-${PV}"
+
+src_prepare() {
+    default
+    emake -C src/libXNVCtrl clean
+}
+
+src_configure() {
+    :
+}
+
+src_compile() {
+    emake -C src/libXNVCtrl CFLAGS="${CFLAGS} -fPIC" libXNVCtrl.a
+}
+
+src_test() {
+    :
+}
+
+src_install() {
+    insinto "/usr/$(get_libdir)"
+    doins src/libXNVCtrl/libXNVCtrl.a
+    insinto /usr/include/NVCtrl
+    doins src/libXNVCtrl/{NVCtrl,NVCtrlLib}.h
+}