diff --git a/x11/wmclock/Makefile b/x11/wmclock/Makefile new file mode 100644 index 00000000000..c7128263d22 --- /dev/null +++ b/x11/wmclock/Makefile @@ -0,0 +1,29 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2001/11/06 13:57:08 wilfried Exp $ + +COMMENT= "Window Maker dock.app clock" + +VERSION= 1.0.12.2 +DISTNAME= wmclock-${VERSION} +CATEGORIES= x11 x11/windowmaker +NEED_VERSION= 1.475 +MASTER_SITES= ${HOMEPAGE} + +HOMEPAGE= http://www.ntrnet.net/~jmknoble/WindowMaker/wmclock/ + +MAINTAINER= Marc Matteo + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +USE_X11= Yes +NO_REGRESS= Yes +CONFIGURE_STYLE= simple + +do-install: + ${INSTALL_PROGRAM} ${WRKBUILD}/wmclock ${PREFIX}/bin + ${INSTALL_MAN} ${WRKBUILD}/wmclock.man ${PREFIX}/man/man1/wmclock.1 + +.include diff --git a/x11/wmclock/files/md5 b/x11/wmclock/files/md5 new file mode 100644 index 00000000000..9771082b704 --- /dev/null +++ b/x11/wmclock/files/md5 @@ -0,0 +1,3 @@ +MD5 (wmclock-1.0.12.2.tar.gz) = 97f6e82f55f216ba724859d4652586b4 +RMD160 (wmclock-1.0.12.2.tar.gz) = 6798bc4d82e02f1e789754552c270e9de5554c53 +SHA1 (wmclock-1.0.12.2.tar.gz) = 45176cc54c261a2fd79bf1fb4dad62f5bb5debde diff --git a/x11/wmclock/patches/patch-wmclock_c b/x11/wmclock/patches/patch-wmclock_c new file mode 100644 index 00000000000..46b2fe75f2a --- /dev/null +++ b/x11/wmclock/patches/patch-wmclock_c @@ -0,0 +1,17 @@ +$OpenBSD: patch-wmclock_c,v 1.1.1.1 2001/11/06 13:57:08 wilfried Exp $ +--- wmclock.c.orig Wed Mar 8 08:31:33 2000 ++++ wmclock.c Tue Nov 6 14:40:26 2001 +@@ -470,11 +470,11 @@ void showYear() + XCopyArea(dpy, led.pixmap, visible.pixmap, normalGC, + digitXOffset , digitYOffset, LED_NUM_WIDTH, LED_NUM_HEIGHT, + xPos[DIGIT_1_X_POS], yPos[DIGIT_Y_POS]); +- digitXOffset = LED_NUM_WIDTH * (year % 1000); ++ digitXOffset = LED_NUM_WIDTH * (year / 100 % 10); + XCopyArea(dpy, led.pixmap, visible.pixmap, normalGC, + digitXOffset , digitYOffset, LED_NUM_WIDTH, LED_NUM_HEIGHT, + xPos[DIGIT_2_X_POS], yPos[DIGIT_Y_POS]); +- digitXOffset = LED_NUM_WIDTH * (year % 100); ++ digitXOffset = LED_NUM_WIDTH * (year / 10 % 10); + XCopyArea(dpy, led.pixmap, visible.pixmap, normalGC, + digitXOffset , digitYOffset, LED_NUM_WIDTH, LED_NUM_HEIGHT, + xPos[DIGIT_3_X_POS], yPos[DIGIT_Y_POS]); diff --git a/x11/wmclock/pkg/DESCR b/x11/wmclock/pkg/DESCR new file mode 100644 index 00000000000..77c6e7519d6 --- /dev/null +++ b/x11/wmclock/pkg/DESCR @@ -0,0 +1,10 @@ +wmclock is an applet which displays the date and time in a dockable +tile in the same style as the clock from the NEXTSTEP(tm) operating +system. wmclock is specially designed for the Window Maker window +manager, and features multiple language support, twenty-four-hour +and twelve-hour (am/pm) time display, and, optionally, can run a +user-specified program on a mouse click. wmclock is derived from +ASClock (now called ASClock classic), a similar clock for the +AfterStep window manager. + +WWW: ${HOMEPAGE} diff --git a/x11/wmclock/pkg/PLIST b/x11/wmclock/pkg/PLIST new file mode 100644 index 00000000000..ee6bc2bd12b --- /dev/null +++ b/x11/wmclock/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2001/11/06 13:57:08 wilfried Exp $ +bin/wmclock +man/man1/wmclock.1