aboutsummaryrefslogtreecommitdiff
path: root/x11-clocks/osdclock
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2004-11-30 10:10:48 +0000
committerVolker Stolz <vs@FreeBSD.org>2004-11-30 10:10:48 +0000
commit9d9cb40539a5dd7cba3de3b34c02c92549528c3d (patch)
treeaa6452d12b5b897755dd1c07580e6288b9a44d60 /x11-clocks/osdclock
parent937a870545e79fad476b7c7c7e8ef5f0db591ad9 (diff)
downloadports-9d9cb40539a5dd7cba3de3b34c02c92549528c3d.tar.gz
ports-9d9cb40539a5dd7cba3de3b34c02c92549528c3d.zip
Notes
Diffstat (limited to 'x11-clocks/osdclock')
-rw-r--r--x11-clocks/osdclock/Makefile33
-rw-r--r--x11-clocks/osdclock/distinfo2
-rw-r--r--x11-clocks/osdclock/files/patch-osd_clock.c34
-rw-r--r--x11-clocks/osdclock/pkg-descr4
4 files changed, 73 insertions, 0 deletions
diff --git a/x11-clocks/osdclock/Makefile b/x11-clocks/osdclock/Makefile
new file mode 100644
index 000000000000..a25cc238704f
--- /dev/null
+++ b/x11-clocks/osdclock/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: osdclock
+# Date created: 2004-08-06
+# Whom: Roman Bogorodskiy <bogorodskiy@inbox.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= osdclock
+PORTVERSION= 0.5
+CATEGORIES= x11-clocks
+MASTER_SITES= http://leftorium.net/software/
+DISTNAME= osd_clock-${PORTVERSION}
+
+MAINTAINER= bogorodskiy@inbox.ru
+COMMENT= Small clock which uses libxosd to render text to the root window
+
+LIB_DEPENDS= xosd.4:${PORTSDIR}/misc/xosd
+
+USE_GETOPT_LONG=yes
+USE_GCC= 3.4
+USE_REINPLACE= yes
+USE_X_PREFIX= yes
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -I${X11BASE}/include" \
+ LDFLAGS="${LDFLAGS} -L${X11BASE}/lib ${PTHREAD_LIBS}" \
+ PREFIX="${PREFIX}"
+
+PLIST_FILES= bin/osd_clock
+MAN1= osd_clock.1
+
+post-install:
+ ${STRIP_CMD} ${PREFIX}/bin/osd_clock
+
+.include <bsd.port.mk>
diff --git a/x11-clocks/osdclock/distinfo b/x11-clocks/osdclock/distinfo
new file mode 100644
index 000000000000..9d191e2a1498
--- /dev/null
+++ b/x11-clocks/osdclock/distinfo
@@ -0,0 +1,2 @@
+MD5 (osd_clock-0.5.tar.gz) = a6f30cc032336b34c10eb06602dc43ff
+SIZE (osd_clock-0.5.tar.gz) = 9900
diff --git a/x11-clocks/osdclock/files/patch-osd_clock.c b/x11-clocks/osdclock/files/patch-osd_clock.c
new file mode 100644
index 000000000000..05c1b61cd291
--- /dev/null
+++ b/x11-clocks/osdclock/files/patch-osd_clock.c
@@ -0,0 +1,34 @@
+--- osd_clock.c.orig Thu Mar 29 19:10:24 2001
++++ osd_clock.c Fri Aug 6 08:05:45 2004
+@@ -109,7 +109,15 @@
+ }
+ }
+
+- osd = xosd_init (font, color, delay, pos, offset, shadow);
++ osd = xosd_create(1);
++
++ xosd_set_font(osd, font);
++ xosd_set_colour(osd, color);
++ xosd_set_timeout(osd, delay);
++ xosd_set_pos(osd, pos);
++ xosd_set_vertical_offset(osd, offset);
++ xosd_set_shadow_offset(osd, shadow);
++
+ if (!osd)
+ {
+ fprintf (stderr, "Error initializing osd\n");
+@@ -127,11 +135,12 @@
+ output = malloc(255 * sizeof(char));
+ strftime(output, 255, format, localtime(&curr_time));
+
+- xosd_display (osd, 1, XOSD_string, output);
++ if ((xosd_display (osd, 0, XOSD_string, output)) == -1)
++ (void)fprintf(stderr, "xosd_display() failed\n");
+ sleep(interval);
+ }
+
+- xosd_uninit (osd);
++ xosd_destroy (osd);
+
+ return EXIT_SUCCESS;
+ }
diff --git a/x11-clocks/osdclock/pkg-descr b/x11-clocks/osdclock/pkg-descr
new file mode 100644
index 000000000000..5cca90b446a4
--- /dev/null
+++ b/x11-clocks/osdclock/pkg-descr
@@ -0,0 +1,4 @@
+osd_clock is a small clock designed for minimalist desktops. It renders text
+directly to the root window using libxosd.
+
+WWW: http://leftorium.net/software.phtml