aboutsummaryrefslogtreecommitdiff
path: root/sysutils/nvclock
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-07-15 07:15:42 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-07-15 07:15:42 +0000
commitdd4c16bd46f647b55efa24ae85e36e6e53bdbc76 (patch)
tree24bcab366851393f73f2cfa12a9a59544fc9fcef /sysutils/nvclock
parent8cb62f243ee33192227e48b67f7c9c883d59da86 (diff)
downloadports-dd4c16bd46f647b55efa24ae85e36e6e53bdbc76.tar.gz
ports-dd4c16bd46f647b55efa24ae85e36e6e53bdbc76.zip
Notes
Diffstat (limited to 'sysutils/nvclock')
-rw-r--r--sysutils/nvclock/Makefile21
-rw-r--r--sysutils/nvclock/distinfo6
-rw-r--r--sysutils/nvclock/files/patch-src-backend-back_bsd.c10
-rw-r--r--sysutils/nvclock/files/patch-src-gtk::callbacks.c33
-rw-r--r--sysutils/nvclock/files/patch-src::Makefile.in17
-rw-r--r--sysutils/nvclock/pkg-descr4
6 files changed, 32 insertions, 59 deletions
diff --git a/sysutils/nvclock/Makefile b/sysutils/nvclock/Makefile
index 97001e61b9b3..ea0e2b805b40 100644
--- a/sysutils/nvclock/Makefile
+++ b/sysutils/nvclock/Makefile
@@ -6,18 +6,16 @@
#
PORTNAME= nvclock
-PORTVERSION= 0.7
-PORTREVISION= 6
+DISTVERSION= 0.8b2
CATEGORIES= sysutils
MASTER_SITES= http://www.linuxhardware.org/nvclock/ \
http://www.kerneled.com/freebsd/ports/
-DISTNAME= nvclock${PORTVERSION}
+DISTNAME= nvclock${DISTVERSION}
MAINTAINER= sbahra@gwu.edu
COMMENT= The nVidia graphic card status and overclocking tool
USE_GMAKE= yes
-USE_GETOPT_LONG=yes
GNU_CONFIGURE= yes
USE_GNOME= pkgconfig
@@ -29,6 +27,10 @@ USE_GNOME+= gtk20
PLIST_SUB+= GTK=""
.endif
+MAN1= nvclock.1
+
+PORTDOCS= ABOUT AUTHORS ChangeLog FAQ README
+
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "************************************************"
@@ -42,4 +44,15 @@ post-patch:
@${REINPLACE_CMD} -e 's|"CFLAGS="|"CFLAGS+="|g' ${WRKSRC}/${i}
.endfor
+do-install:
+ @${GMAKE} -C ${WRKSRC}/src install
+ @${GMAKE} -C ${WRKSRC} install-man
+.if !defined(WITHOUT_GUI)
+ @${GMAKE} -C ${WRKSRC}/src/gtk install
+.endif
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${GMAKE} -C ${WRKSRC} install-docs
+.endif
+
.include <bsd.port.mk>
diff --git a/sysutils/nvclock/distinfo b/sysutils/nvclock/distinfo
index 25a109461670..ce01c2aa1f15 100644
--- a/sysutils/nvclock/distinfo
+++ b/sysutils/nvclock/distinfo
@@ -1,3 +1,3 @@
-MD5 (nvclock0.7.tar.gz) = a3bb5ff1c2638317f1a69c7c2442b9e4
-SHA256 (nvclock0.7.tar.gz) = 469678f436b974b62af51aa4bf71fdf695c402ed0cd890c25fc0b757577657e8
-SIZE (nvclock0.7.tar.gz) = 68966
+MD5 (nvclock0.8b2.tar.gz) = 8b9f55115f3c5b7b9a9a16fe40cec4a5
+SHA256 (nvclock0.8b2.tar.gz) = b3c05f1cceb57a816cea096f9b71154c0ce5e2ec31febb85e3db831b0b3407aa
+SIZE (nvclock0.8b2.tar.gz) = 316510
diff --git a/sysutils/nvclock/files/patch-src-backend-back_bsd.c b/sysutils/nvclock/files/patch-src-backend-back_bsd.c
new file mode 100644
index 000000000000..38c6a58b9c3a
--- /dev/null
+++ b/sysutils/nvclock/files/patch-src-backend-back_bsd.c
@@ -0,0 +1,10 @@
+--- src/backend/back_bsd.c 2007-07-07 09:39:58.000000000 +0300
++++ src/backend/back_bsd.c_new 2007-07-07 09:39:15.000000000 +0300
+@@ -51,6 +51,7 @@
+
+ static void *map_dev_mem (int fd, unsigned long Base, unsigned long Size);
+ static void unmap_dev_mem (unsigned long Base, unsigned long Size);
++static int probe_devices();
+
+ int init_nvclock()
+ {
diff --git a/sysutils/nvclock/files/patch-src-gtk::callbacks.c b/sysutils/nvclock/files/patch-src-gtk::callbacks.c
deleted file mode 100644
index d8437a10b95a..000000000000
--- a/sysutils/nvclock/files/patch-src-gtk::callbacks.c
+++ /dev/null
@@ -1,33 +0,0 @@
---- src/gtk/callbacks.c Wed Aug 20 22:13:50 2003
-+++ src/gtk/callbacks.c.patch Wed Aug 20 23:14:35 2003
-@@ -36,11 +36,12 @@
- {
- va_list arg;
- char* message;
-+ GtkWidget *dialog;
-+
- va_start(arg, format);
-
- message = g_strdup_vprintf(format, arg);
-
-- GtkWidget *dialog;
- switch(code)
- {
- case ERROR:
-@@ -108,6 +109,7 @@
- {
- GtkWidget *label;
- Timeout *timeout;
-+ gint result;
- timeout = g_malloc(sizeof(Timeout));
-
- timeout->dialog = GTK_DIALOG(gtk_dialog_new_with_buttons("Testing the new speeds",
-@@ -126,7 +128,7 @@
- /* Create the real timeout */
- timeout->timeout_id = g_timeout_add(1000, timeout_callback, timeout);
-
-- gint result = gtk_dialog_run(GTK_DIALOG(timeout->dialog));
-+ result = gtk_dialog_run(GTK_DIALOG(timeout->dialog));
-
- /* Stop the timer because we got an answer back */
- g_source_remove(timeout->timeout_id);
diff --git a/sysutils/nvclock/files/patch-src::Makefile.in b/sysutils/nvclock/files/patch-src::Makefile.in
deleted file mode 100644
index 9df67e915664..000000000000
--- a/sysutils/nvclock/files/patch-src::Makefile.in
+++ /dev/null
@@ -1,17 +0,0 @@
---- src/Makefile.in Sun Jun 22 23:19:18 2003
-+++ src/Makefile.in.patch Wed Aug 20 23:30:46 2003
-@@ -1,4 +1,5 @@
- CC=@CC@
-+LDFLAGS=@LDFLAGS@
- INSTALL=@INSTALL@
-
- SOURCES=nvclock.c
-@@ -19,7 +20,7 @@
-
-
- nvclock: $(libbackend) nvclock.c
-- $(CC) -o nvclock $(INCLUDES) $(SOURCES) backend/libbackend.a
-+ $(CC) -o nvclock $(INCLUDES) -I$(LOCALBASE)/include $(LDFLAGS) $(SOURCES) backend/libbackend.a
-
-
- clean: clean-recursive clean-app
diff --git a/sysutils/nvclock/pkg-descr b/sysutils/nvclock/pkg-descr
index d3becd40b560..4de0da6cba33 100644
--- a/sysutils/nvclock/pkg-descr
+++ b/sysutils/nvclock/pkg-descr
@@ -7,6 +7,6 @@ in order to make the utility much more user friendly
and to make it play nice with current distros and
drivers.
- WWW: http://www.linuxhardware.org/nvclock/
-
- Samy Al Bahra <samy@kerneled.com>
+
+WWW: http://www.linuxhardware.org/nvclock/