summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM.Dinslage <daedra@charter.net>2010-05-13 00:59:28 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:59:28 +0200
commitfd43ae99e22a223602e5fa8e9932f005900fe965 (patch)
treeee8cbfe38660726da7afb239e8eaf9fa7b787c02
parent771aacb37dc03e2ea87f64c157e179934b0c595a (diff)
downloadslackbuilds-fd43ae99e22a223602e5fa8e9932f005900fe965.tar.gz
misc/nvclock: Added to 13.0 repository
-rw-r--r--misc/nvclock/README8
-rw-r--r--misc/nvclock/doinst.sh10
-rw-r--r--misc/nvclock/nvclock.SlackBuild87
-rw-r--r--misc/nvclock/nvclock.info10
-rw-r--r--misc/nvclock/patches/nvclock-fix_DESTDIR.patch145
-rw-r--r--misc/nvclock/patches/nvclock-use_ALL_CFLAGS.patch118
-rw-r--r--misc/nvclock/patches/nvclock-use_most_CFLAGS.patch93
-rw-r--r--misc/nvclock/slack-desc19
8 files changed, 490 insertions, 0 deletions
diff --git a/misc/nvclock/README b/misc/nvclock/README
new file mode 100644
index 0000000000..81925a2196
--- /dev/null
+++ b/misc/nvclock/README
@@ -0,0 +1,8 @@
+NVClock is a small utility that allows users to overclock NVIDIA based video
+cards running on the Linux platform. The original code used in building this
+application was borrowed from the nvcs application. That code has been
+extensively reworked in order to make the utility much more user friendly and
+to make it play nice with current distros and drivers.
+
+Overclocking can be dangerous and can cause system instability and/or damaged
+hardware. USE AT YOUR OWN RISK.
diff --git a/misc/nvclock/doinst.sh b/misc/nvclock/doinst.sh
new file mode 100644
index 0000000000..1f8ff67ded
--- /dev/null
+++ b/misc/nvclock/doinst.sh
@@ -0,0 +1,10 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
diff --git a/misc/nvclock/nvclock.SlackBuild b/misc/nvclock/nvclock.SlackBuild
new file mode 100644
index 0000000000..7b16a20d60
--- /dev/null
+++ b/misc/nvclock/nvclock.SlackBuild
@@ -0,0 +1,87 @@
+#!/bin/sh
+
+# Slackware build script for nvclock
+
+# Written by M.Dinslage contact: daedra@charter.net
+
+# Modified by Robby Workman for with some packaging and build fixes
+# If the use of SLKCFLAGS causes any problems, please let me know
+# ASAP so that I can remove them...
+
+PRGNAM=nvclock
+VERSION=0.8b4
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+fi
+
+set -eu
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf ${PRGNAM}$VERSION
+tar xvf $CWD/${PRGNAM}$VERSION.tar.gz
+cd ${PRGNAM}$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+# Fixup DESTDIR usage correctly
+patch -p1 < $CWD/patches/nvclock-fix_DESTDIR.patch
+
+# Fixup use of SLKCFLAGS
+# If this patch causes problems, then use the other one...
+patch -p1 < $CWD/patches/nvclock-use_ALL_CFLAGS.patch
+#patch -p1 < $CWD/patches/nvclock-use_most_CFLAGS.patch
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --disable-qt \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+)
+
+gzip -9 $PKG/usr/man/man?/*
+
+# Add a missed COPYING file and the build script to docs
+cp -a COPYING $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/misc/nvclock/nvclock.info b/misc/nvclock/nvclock.info
new file mode 100644
index 0000000000..612f72c26d
--- /dev/null
+++ b/misc/nvclock/nvclock.info
@@ -0,0 +1,10 @@
+PRGNAM="nvclock"
+VERSION="0.8b4"
+HOMEPAGE="http://www.linuxhardware.org/nvclock"
+DOWNLOAD="http://www.linuxhardware.org/nvclock/nvclock0.8b4.tar.gz"
+MD5SUM="23f1b3ebf40f35d76d5fdac50f66ab11"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="M.Dinslage"
+EMAIL="daedra@charter.net"
+APPROVED="rworkman"
diff --git a/misc/nvclock/patches/nvclock-fix_DESTDIR.patch b/misc/nvclock/patches/nvclock-fix_DESTDIR.patch
new file mode 100644
index 0000000000..0596cfa784
--- /dev/null
+++ b/misc/nvclock/patches/nvclock-fix_DESTDIR.patch
@@ -0,0 +1,145 @@
+diff -Nur nvclock0.8b4.orig/Makefile.in nvclock0.8b4/Makefile.in
+--- nvclock0.8b4.orig/Makefile.in 2008-05-11 05:25:44.000000000 -0500
++++ nvclock0.8b4/Makefile.in 2009-01-07 16:15:50.088688188 -0600
+@@ -1,8 +1,9 @@
+ INSTALL=@INSTALL@
++DESTDIR =
++prefix=@prefix@
++docdir=@docdir@
++mandir=@mandir@
+
+-prefix=$(DESTDIR)@prefix@
+-docdir=${prefix}/share/doc/nvclock
+-mandir=${prefix}/man
+ DOCS= ABOUT AUTHORS ChangeLog FAQ README
+
+ all:
+@@ -21,7 +22,7 @@
+ install-docs:
+ @documentations='$(DOCS)'; \
+ for doc in $$documentations; do \
+- destdir=$(docdir); \
++ destdir=$(DESTDIR)$(docdir); \
+ name=`echo $$doc` \
+ dir=$$destdir; \
+ mkdir -p $$dir; \
+@@ -30,14 +31,14 @@
+ done
+
+ install-desktop-shortcut:
+- mkdir -p $(prefix)/share/applications
+- mkdir -p $(prefix)/share/icons/hicolor/48x48/apps
+- cp nvclock.desktop $(prefix)/share/applications
+- cp nvclock.png $(prefix)/share/icons/hicolor/48x48/apps
++ mkdir -p $(DESTDIR)$(prefix)/share/applications
++ mkdir -p $(DESTDIR)$(prefix)/share/icons/hicolor/48x48/apps
++ cp nvclock.desktop $(DESTDIR)$(prefix)/share/applications
++ cp nvclock.png $(DESTDIR)$(prefix)/share/icons/hicolor/48x48/apps
+
+ install-man:
+- mkdir -p $(mandir)/man1
+- cp nvclock.1 $(mandir)/man1
++ mkdir -p $(DESTDIR)$(mandir)/man1
++ cp nvclock.1 $(DESTDIR)$(mandir)/man1
+
+ uninstall: uninstall-docs uninstall-man uninstall-desktop-shortcut
+ $(MAKE) -C src uninstall
+@@ -45,7 +46,7 @@
+ uninstall-docs:
+ @documentations='$(DOCS)'; \
+ for doc in $$documentations; do \
+- destdir=$(docdir); \
++ destdir=$(DESTDIR)$(docdir); \
+ name=`echo $$doc` \
+ dir=$$destdir; \
+ rm -f $$dir/$$name; \
+@@ -53,11 +54,12 @@
+ done
+
+ uninstall-desktop-shortcut:
+- rm -f $(prefix)/share/applications/nvclock.desktop
+- echo "removing $$prefix/share/applications/nvclock.desktop" ; \
+- rm -f $(prefix)/share/icons/hicolor/48x48/apps/nvclock.png
+- echo "removing $$prefix/share/icons/hicolor/48x48/apps/nvclock.png" ; \
++ rm -f $(DESTDIR)$(prefix)/share/applications/nvclock.desktop
++ echo "removing $$(DESTDIR)$$prefix/share/applications/nvclock.desktop" ; \
++ rm -f $(DESTDIR)$(prefix)/share/icons/hicolor/48x48/apps/nvclock.png
++ echo "removing $$(DESTDIR)$$prefix/share/icons/hicolor/48x48/apps/nvclock.png" ; \
+
+ uninstall-man:
+- rm -f $(mandir)/man1/nvclock.1
+- echo "removing $$mandir/man1/nvclock.1" ; \
++ rm -f $$(DESTDIR)$(mandir)/man1/nvclock.1
++ echo "removing $$(DESTDIR)$$mandir/man1/nvclock.1" ; \
++
+diff -Nur nvclock0.8b4.orig/src/Makefile.in nvclock0.8b4/src/Makefile.in
+--- nvclock0.8b4.orig/src/Makefile.in 2009-01-03 11:02:54.000000000 -0600
++++ nvclock0.8b4/src/Makefile.in 2009-01-07 16:13:06.839689315 -0600
+@@ -8,9 +8,9 @@
+ libbackend=./backend/libbackend.a
+ libnvcontrol=./nvcontrol/libnvcontrol.a
+
+-prefix=$(DESTDIR)@prefix@
+-exec_prefix=$(DESTDIR)@exec_prefix@
+-bindir=$(DESTDIR)@bindir@
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++bindir=@bindir@
+
+ ifeq ($(HAVE_NVCONTROL), yes)
+ DEPS=$(libbackend) $(libnvcontrol)
+@@ -56,7 +56,7 @@
+
+ uninstall: uninstall-recursive uninstall-app
+ uninstall-app:
+- rm -f $(bindir)/smartdimmer
++ rm -f $(DESTDIR)$(bindir)/smartdimmer
+
+
+ # Walk through the sub directories and do what is requested
+diff -Nur nvclock0.8b4.orig/src/gtk/Makefile.in nvclock0.8b4/src/gtk/Makefile.in
+--- nvclock0.8b4.orig/src/gtk/Makefile.in 2008-05-11 05:25:46.000000000 -0500
++++ nvclock0.8b4/src/gtk/Makefile.in 2009-01-07 16:13:54.808688249 -0600
+@@ -7,14 +7,14 @@
+ libbackend=../backend/libbackend.a
+ libnvcontrol=../nvcontrol/libnvcontrol.a
+
+-prefix=$(DESTDIR)@prefix@
+-exec_prefix=$(DESTDIR)@exec_prefix@
+-bindir=$(DESTDIR)@bindir@
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++bindir=@bindir@
+
+ ifeq ($(HAVE_GTK2), yes)
+ PROGRAM=nvclock_gtk
+- INSTALL_APP=mkdir -p $(bindir); $(INSTALL) -c $(PROGRAM) $(bindir)/$(PROGRAM)
+- UNINSTALL_APP=rm -f $(bindir)/$(PROGRAM)
++ INSTALL_APP=mkdir -p $(DESTDIR)$(bindir); $(INSTALL) -c $(PROGRAM) $(DESTDIR)$(bindir)/$(PROGRAM)
++ UNINSTALL_APP=rm -f $(DESTDIR)$(bindir)/$(PROGRAM)
+ endif
+
+ ifeq ($(HAVE_NVCONTROL), yes)
+diff -Nur nvclock0.8b4.orig/src/qt/Makefile.in nvclock0.8b4/src/qt/Makefile.in
+--- nvclock0.8b4.orig/src/qt/Makefile.in 2008-05-11 05:25:46.000000000 -0500
++++ nvclock0.8b4/src/qt/Makefile.in 2009-01-07 16:15:03.885688805 -0600
+@@ -8,14 +8,14 @@
+ HAVE_QT=@HAVE_QT@
+ libbackend=../backend/libbackend.a
+
+-prefix=$(DESTDIR)@prefix@
+-exec_prefix=$(DESTDIR)@exec_prefix@
+-bindir=$(DESTDIR)@bindir@
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++bindir=@bindir@
+
+ ifeq ($(HAVE_QT), yes)
+ PROGRAM=nvclock_qt
+- INSTALL_APP=mkdir -p $(bindir); $(INSTALL) -c $(PROGRAM) $(bindir)/$(PROGRAM)
+- UNINSTALL_APP=rm -f $(bindir)/$(PROGRAM)
++ INSTALL_APP=mkdir -p $(DESTDIR)$(bindir); $(INSTALL) -c $(PROGRAM) $(DESTDIR)$(bindir)/$(PROGRAM)
++ UNINSTALL_APP=rm -f $(DESTDIR)$(bindir)/$(PROGRAM)
+ endif
+
+ ifeq ($(HAVE_NVCONTROL), yes)
diff --git a/misc/nvclock/patches/nvclock-use_ALL_CFLAGS.patch b/misc/nvclock/patches/nvclock-use_ALL_CFLAGS.patch
new file mode 100644
index 0000000000..ebdb7d562c
--- /dev/null
+++ b/misc/nvclock/patches/nvclock-use_ALL_CFLAGS.patch
@@ -0,0 +1,118 @@
+diff -Nur nvclock0.8b4.orig/Makefile.in nvclock0.8b4/Makefile.in
+--- nvclock0.8b4.orig/Makefile.in 2008-05-11 05:25:44.000000000 -0500
++++ nvclock0.8b4/Makefile.in 2009-01-07 16:19:12.437689102 -0600
+@@ -5,6 +5,9 @@
+ mandir=${prefix}/man
+ DOCS= ABOUT AUTHORS ChangeLog FAQ README
+
++CFLAGS=@CFLAGS@
++CXXFLAGS=@CXXFLAGS@
++
+ all:
+ $(MAKE) -C src all
+
+diff -Nur nvclock0.8b4.orig/configure nvclock0.8b4/configure
+--- nvclock0.8b4.orig/configure 2008-08-16 11:53:59.000000000 -0500
++++ nvclock0.8b4/configure 2009-01-07 16:24:27.896687454 -0600
+@@ -3726,7 +3726,6 @@
+
+
+
+-CFLAGS=
+ HAVE_GTK2=no
+ HAVE_QT=no
+ HAVE_NVCONTROL=no
+diff -Nur nvclock0.8b4.orig/src/Makefile.in nvclock0.8b4/src/Makefile.in
+--- nvclock0.8b4.orig/src/Makefile.in 2009-01-03 11:02:54.000000000 -0600
++++ nvclock0.8b4/src/Makefile.in 2009-01-07 16:26:38.506689444 -0600
+@@ -1,5 +1,6 @@
+ CC=@CC@
+ INSTALL=@INSTALL@
++CFLAGS=@CFLAGS@
+
+ nvclock_SOURCES=nvclock.c
+ smartdimmer_SOURCES=smartdimmer.c
+@@ -31,10 +32,10 @@
+
+
+ nvclock: $(DEPS) $(LIB) nvclock.c
+- $(CC) -o nvclock $(nvclock_SOURCES) $(INCLUDES) $(LIBS)
++ $(CC) $(CFLAGS) -o nvclock $(nvclock_SOURCES) $(INCLUDES) $(LIBS)
+
+ smartdimmer: $(DEPS) $(LIB) smartdimmer.c
+- $(CC) -o smartdimmer $(smartdimmer_SOURCES) $(INCLUDES) $(LIBS)
++ $(CC) $(CFLAGS) -o smartdimmer $(smartdimmer_SOURCES) $(INCLUDES) $(LIBS)
+
+
+ clean: clean-recursive clean-app
+diff -Nur nvclock0.8b4.orig/src/backend/Makefile.in nvclock0.8b4/src/backend/Makefile.in
+--- nvclock0.8b4.orig/src/backend/Makefile.in 2007-12-27 10:05:38.000000000 -0600
++++ nvclock0.8b4/src/backend/Makefile.in 2009-01-07 16:32:28.089689122 -0600
+@@ -1,11 +1,12 @@
+-CC=@CC@ -O0
++CC=@CC@
+ AR=ar
+ RANLIB=@RANLIB@
+
+ system=@system@
+ HAVE_NVCONTROL=@HAVE_NVCONTROL@
+ OBJECTS=backend.o bios.o config.o error.o nv30.o nv40.o nv50.o info.o overclock.o utils.o i2c.o xf86i2c.o adt7473.o f75375.o lm99.o w83781d.o w83l785r.o libc_wrapper.o
+-CFLAGS=@X11_CFLAGS@ -I../.. -I../nvcontrol
++CFLAGS=@CFLAGS@
++CFLAGS+=@X11_CFLAGS@ -I../.. -I../nvcontrol
+
+ ifeq ($(system), FreeBSD)
+ OBJECTS+=back_bsd.o
+@@ -36,4 +37,4 @@
+ rm -f Makefile
+
+ install:
+-uninstall:
+\ No newline at end of file
++uninstall:
+diff -Nur nvclock0.8b4.orig/src/gtk/Makefile.in nvclock0.8b4/src/gtk/Makefile.in
+--- nvclock0.8b4.orig/src/gtk/Makefile.in 2008-05-11 05:25:46.000000000 -0500
++++ nvclock0.8b4/src/gtk/Makefile.in 2009-01-07 16:28:51.865688400 -0600
+@@ -1,7 +1,8 @@
+ CC=@CC@
+ INSTALL=@INSTALL@
+
+-CFLAGS=@GTK_CFLAGS@ -I../backend -I../nvcontrol -I../..
++CFLAGS=@CFLAGS@
++CFLAGS+=@GTK_CFLAGS@ -I../backend -I../nvcontrol -I../..
+ HAVE_GTK2=@HAVE_GTK2@
+ HAVE_NVCONTROL=@HAVE_NVCONTROL@
+ libbackend=../backend/libbackend.a
+diff -Nur nvclock0.8b4.orig/src/nvcontrol/Makefile.in nvclock0.8b4/src/nvcontrol/Makefile.in
+--- nvclock0.8b4.orig/src/nvcontrol/Makefile.in 2005-12-09 13:46:05.000000000 -0600
++++ nvclock0.8b4/src/nvcontrol/Makefile.in 2009-01-07 16:29:09.340689195 -0600
+@@ -2,7 +2,8 @@
+ AR=ar
+ RANLIB=@RANLIB@
+ system=@system@
+-CFLAGS=@X11_CFLAGS@ -I../backend
++CFLAGS=@CFLAGS@
++CFLAGS+=@X11_CFLAGS@ -I../backend
+ HAVE_X11=@HAVE_NVCONTROL@
+ OBJECTS=libnvcontrol.o nvcontrol.o
+
+@@ -26,4 +27,4 @@
+ rm -f Makefile
+
+ install:
+-uninstall:
+\ No newline at end of file
++uninstall:
+diff -Nur nvclock0.8b4.orig/src/qt/Makefile.in nvclock0.8b4/src/qt/Makefile.in
+--- nvclock0.8b4.orig/src/qt/Makefile.in 2008-05-11 05:25:46.000000000 -0500
++++ nvclock0.8b4/src/qt/Makefile.in 2009-01-07 16:29:42.410690235 -0600
+@@ -3,7 +3,8 @@
+ MOC=@MOC@
+
+ OBJECTS=main.o qt_nvclock.o qt_nvclock.moc.o qt_xfree.o qt_xfree.moc.o
+-CXXFLAGS=@QT_CFLAGS@ -I../backend
++CXXFLAGS=@CXXFLAGS@
++CXXFLAGS+=@QT_CFLAGS@ -I../backend
+ HAVE_NVCONTROL=@HAVE_NVCONTROL@
+ HAVE_QT=@HAVE_QT@
+ libbackend=../backend/libbackend.a
diff --git a/misc/nvclock/patches/nvclock-use_most_CFLAGS.patch b/misc/nvclock/patches/nvclock-use_most_CFLAGS.patch
new file mode 100644
index 0000000000..ffab3c83e2
--- /dev/null
+++ b/misc/nvclock/patches/nvclock-use_most_CFLAGS.patch
@@ -0,0 +1,93 @@
+diff -Nur nvclock0.8b4.orig/Makefile.in nvclock0.8b4/Makefile.in
+--- nvclock0.8b4.orig/Makefile.in 2008-05-11 05:25:44.000000000 -0500
++++ nvclock0.8b4/Makefile.in 2009-01-07 16:19:12.437689102 -0600
+@@ -5,6 +5,9 @@
+ mandir=${prefix}/man
+ DOCS= ABOUT AUTHORS ChangeLog FAQ README
+
++CFLAGS=@CFLAGS@
++CXXFLAGS=@CXXFLAGS@
++
+ all:
+ $(MAKE) -C src all
+
+diff -Nur nvclock0.8b4.orig/configure nvclock0.8b4/configure
+--- nvclock0.8b4.orig/configure 2008-08-16 11:53:59.000000000 -0500
++++ nvclock0.8b4/configure 2009-01-07 16:24:27.896687454 -0600
+@@ -3726,7 +3726,6 @@
+
+
+
+-CFLAGS=
+ HAVE_GTK2=no
+ HAVE_QT=no
+ HAVE_NVCONTROL=no
+diff -Nur nvclock0.8b4.orig/src/Makefile.in nvclock0.8b4/src/Makefile.in
+--- nvclock0.8b4.orig/src/Makefile.in 2009-01-03 11:02:54.000000000 -0600
++++ nvclock0.8b4/src/Makefile.in 2009-01-07 16:26:38.506689444 -0600
+@@ -1,5 +1,6 @@
+ CC=@CC@
+ INSTALL=@INSTALL@
++CFLAGS=@CFLAGS@
+
+ nvclock_SOURCES=nvclock.c
+ smartdimmer_SOURCES=smartdimmer.c
+@@ -31,10 +32,10 @@
+
+
+ nvclock: $(DEPS) $(LIB) nvclock.c
+- $(CC) -o nvclock $(nvclock_SOURCES) $(INCLUDES) $(LIBS)
++ $(CC) $(CFLAGS) -o nvclock $(nvclock_SOURCES) $(INCLUDES) $(LIBS)
+
+ smartdimmer: $(DEPS) $(LIB) smartdimmer.c
+- $(CC) -o smartdimmer $(smartdimmer_SOURCES) $(INCLUDES) $(LIBS)
++ $(CC) $(CFLAGS) -o smartdimmer $(smartdimmer_SOURCES) $(INCLUDES) $(LIBS)
+
+
+ clean: clean-recursive clean-app
+diff -Nur nvclock0.8b4.orig/src/gtk/Makefile.in nvclock0.8b4/src/gtk/Makefile.in
+--- nvclock0.8b4.orig/src/gtk/Makefile.in 2008-05-11 05:25:46.000000000 -0500
++++ nvclock0.8b4/src/gtk/Makefile.in 2009-01-07 16:28:51.865688400 -0600
+@@ -1,7 +1,8 @@
+ CC=@CC@
+ INSTALL=@INSTALL@
+
+-CFLAGS=@GTK_CFLAGS@ -I../backend -I../nvcontrol -I../..
++CFLAGS=@CFLAGS@
++CFLAGS+=@GTK_CFLAGS@ -I../backend -I../nvcontrol -I../..
+ HAVE_GTK2=@HAVE_GTK2@
+ HAVE_NVCONTROL=@HAVE_NVCONTROL@
+ libbackend=../backend/libbackend.a
+diff -Nur nvclock0.8b4.orig/src/nvcontrol/Makefile.in nvclock0.8b4/src/nvcontrol/Makefile.in
+--- nvclock0.8b4.orig/src/nvcontrol/Makefile.in 2005-12-09 13:46:05.000000000 -0600
++++ nvclock0.8b4/src/nvcontrol/Makefile.in 2009-01-07 16:29:09.340689195 -0600
+@@ -2,7 +2,8 @@
+ AR=ar
+ RANLIB=@RANLIB@
+ system=@system@
+-CFLAGS=@X11_CFLAGS@ -I../backend
++CFLAGS=@CFLAGS@
++CFLAGS+=@X11_CFLAGS@ -I../backend
+ HAVE_X11=@HAVE_NVCONTROL@
+ OBJECTS=libnvcontrol.o nvcontrol.o
+
+@@ -26,4 +27,4 @@
+ rm -f Makefile
+
+ install:
+-uninstall:
+\ No newline at end of file
++uninstall:
+diff -Nur nvclock0.8b4.orig/src/qt/Makefile.in nvclock0.8b4/src/qt/Makefile.in
+--- nvclock0.8b4.orig/src/qt/Makefile.in 2008-05-11 05:25:46.000000000 -0500
++++ nvclock0.8b4/src/qt/Makefile.in 2009-01-07 16:29:42.410690235 -0600
+@@ -3,7 +3,8 @@
+ MOC=@MOC@
+
+ OBJECTS=main.o qt_nvclock.o qt_nvclock.moc.o qt_xfree.o qt_xfree.moc.o
+-CXXFLAGS=@QT_CFLAGS@ -I../backend
++CXXFLAGS=@CXXFLAGS@
++CXXFLAGS+=@QT_CFLAGS@ -I../backend
+ HAVE_NVCONTROL=@HAVE_NVCONTROL@
+ HAVE_QT=@HAVE_QT@
+ libbackend=../backend/libbackend.a
diff --git a/misc/nvclock/slack-desc b/misc/nvclock/slack-desc
new file mode 100644
index 0000000000..26e215e0b7
--- /dev/null
+++ b/misc/nvclock/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+nvclock: nvclock (Nvidia overclocking for Linux)
+nvclock:
+nvclock: NVClock is a small utility that allows users to overclock NVIDIA
+nvclock: based video cards running on the Linux platform. The original
+nvclock: code used in building this application was borrowed from the nvcs
+nvclock: application. That code has been extensively reworked in order to
+nvclock: make the utility much more user friendly and to make it play nice
+nvclock: with current distros and drivers.
+nvclock:
+nvclock:
+nvclock: