diff options
author | vs <vs@FreeBSD.org> | 2004-11-30 18:10:48 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2004-11-30 18:10:48 +0800 |
commit | 696de20c177698e595e4fc8229c0005702b15659 (patch) | |
tree | 3423b4bb503e7f78fe28d8bb9b53e7ac474d57fa /x11-clocks | |
parent | a22c22eb180b0a9d592022ea75ee8083e3082191 (diff) | |
download | freebsd-ports-gnome-696de20c177698e595e4fc8229c0005702b15659.tar.gz freebsd-ports-gnome-696de20c177698e595e4fc8229c0005702b15659.tar.zst freebsd-ports-gnome-696de20c177698e595e4fc8229c0005702b15659.zip |
Add osdclock 0.5, small clock which uses libxosd to render text to the
root window.
PR: ports/70061
Submitted by: Roman Bogorodskiy <bogorodskiy@inbox.ru>
Diffstat (limited to 'x11-clocks')
-rw-r--r-- | x11-clocks/Makefile | 1 | ||||
-rw-r--r-- | x11-clocks/osdclock/Makefile | 33 | ||||
-rw-r--r-- | x11-clocks/osdclock/distinfo | 2 | ||||
-rw-r--r-- | x11-clocks/osdclock/files/patch-osd_clock.c | 34 | ||||
-rw-r--r-- | x11-clocks/osdclock/pkg-descr | 4 |
5 files changed, 74 insertions, 0 deletions
diff --git a/x11-clocks/Makefile b/x11-clocks/Makefile index 1f2e84e42989..8f514072f49c 100644 --- a/x11-clocks/Makefile +++ b/x11-clocks/Makefile @@ -24,6 +24,7 @@ SUBDIR += kdetoys3 SUBDIR += mlclock SUBDIR += mouseclock + SUBDIR += osdclock SUBDIR += pclock SUBDIR += rclock SUBDIR += sanduhr 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 |