From eb6cbba9f240af50aafb9f6dae735c1852c682c5 Mon Sep 17 00:00:00 2001 From: Geert Hendrickx Date: Fri, 18 Nov 2005 10:43:04 +0000 Subject: [PATCH] Digital clocks are nice for telling exactly what time it is, but, unlike an analogue clock, they don't give a spatial representation of time. They don't show where time is coming from or going to. On the other hand, a bitmap representation of a mechanical clock doesn't tell time very accurately if the bitmap is very small. And curves and oblique lines don't look very nice in a small, low-resolution bitmap. So, this is something different: an analogue clock that isn't tied to the design of the mechanical clock, but instead uses the natural properties of bitmaps: straight lines and rectangles. --- abclock/DESCR | 11 +++++++++++ abclock/Makefile | 16 ++++++++++++++++ abclock/PLIST | 3 +++ abclock/distinfo | 7 +++++++ abclock/patches/patch-aa | 35 +++++++++++++++++++++++++++++++++++ abclock/patches/patch-ab | 13 +++++++++++++ 6 files changed, 85 insertions(+) create mode 100644 abclock/DESCR create mode 100644 abclock/Makefile create mode 100644 abclock/PLIST create mode 100644 abclock/distinfo create mode 100644 abclock/patches/patch-aa create mode 100644 abclock/patches/patch-ab diff --git a/abclock/DESCR b/abclock/DESCR new file mode 100644 index 0000000000..4c54d6d573 --- /dev/null +++ b/abclock/DESCR @@ -0,0 +1,11 @@ +Digital clocks are nice for telling exactly what time it is, but, unlike an +analogue clock, they don't give a spatial representation of time. They don't +show where time is coming from or going to. + +On the other hand, a bitmap representation of a mechanical clock doesn't tell +time very accurately if the bitmap is very small. And curves and oblique lines +don't look very nice in a small, low-resolution bitmap. + +So, this is something different: an analogue clock that isn't tied to the +design of the mechanical clock, but instead uses the natural properties of +bitmaps: straight lines and rectangles. diff --git a/abclock/Makefile b/abclock/Makefile new file mode 100644 index 0000000000..2a6e12d71a --- /dev/null +++ b/abclock/Makefile @@ -0,0 +1,16 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/11/18 10:43:04 ghen Exp $ + +DISTNAME= abclock-1.0c +CATEGORIES= time +MASTER_SITES= ${HOMEPAGE} + +MAINTAINER= geert.hendrickx@ua.ac.be +COMMENT= Analogue Bitmap Clock +HOMEPAGE= http://odur.let.rug.nl/~kleiweg/abclock/ + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/abclock ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/abc_img ${PREFIX}/bin + +.include "../../mk/x11.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/abclock/PLIST b/abclock/PLIST new file mode 100644 index 0000000000..197648736c --- /dev/null +++ b/abclock/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/18 10:43:04 ghen Exp $ +bin/abc_img +bin/abclock diff --git a/abclock/distinfo b/abclock/distinfo new file mode 100644 index 0000000000..45bbd6b93d --- /dev/null +++ b/abclock/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/11/18 10:43:04 ghen Exp $ + +SHA1 (abclock-1.0c.tar.gz) = 1513b53ff98f49400b713e704061a7a5967e5760 +RMD160 (abclock-1.0c.tar.gz) = c37f1ceef6b2badf39849c1ca56dda64976c2562 +Size (abclock-1.0c.tar.gz) = 17927 bytes +SHA1 (patch-aa) = 038887a124c5110ea97902a6158e77e2b62647f4 +SHA1 (patch-ab) = c15f9ea30c6662baa357d0864159b3825a2d7e97 diff --git a/abclock/patches/patch-aa b/abclock/patches/patch-aa new file mode 100644 index 0000000000..d57f9278f8 --- /dev/null +++ b/abclock/patches/patch-aa @@ -0,0 +1,35 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/11/18 10:43:04 ghen Exp $ + +--- Makefile.orig 2003-08-27 15:57:57.000000000 +0200 ++++ Makefile +@@ -1,26 +1,17 @@ + + .SUFFIXES: + +-CC = gcc ++CC ?= gcc + +-OPT = -s -Wall +- +-XLIBDIR = -L/usr/X11/lib -L/usr/X11R6/lib -L/usr/X11R5/lib -L/usr/X11R4/lib \ +- -L/usr/lib/X11 -L/usr/lib/X11R6 -L/usr/lib/X11R5 -L/usr/lib/X11R4 +- +-XINCLUDEDIR = -I/usr/X11/include -I/usr/X11R6/include -I/usr/X11R5/include -I/usr/X11R4/include \ +- -I/usr/include/X11 -I/usr/include/X11R6 -I/usr/include/X11R5 -I/usr/include/X11R4 \ +- -I/usr/local/X11/include -I/usr/local/X11R6/include -I/usr/local/X11R5/include -I/usr/local/X11R4/include \ +- -I/usr/local/include/X11 -I/usr/local/include/X11R6 -I/usr/local/include/X11R5 -I/usr/local/include/X11R4 \ +- -I/usr/X386/include -I/usr/x386/include -I/usr/XFree86/include/X11 -I/usr/local/x11r5/include ++OPT = $(CFLAGS) -Wall + + all: abclock abc_img + + abclock: abclock.o abclib.o +- $(CC) $(XLIBDIR) $(OPT) -o abclock abclock.o abclib.o -lX11 ++ $(CC) $(LDFLAGS) $(OPT) -o abclock abclock.o abclib.o -lX11 + + abc_img: abc_img.o abclib.o +- $(CC) $(OPT) -o abc_img abc_img.o abclib.o ++ $(CC) $(LDFLAGS) $(OPT) -o abc_img abc_img.o abclib.o + + abclib.o: abclib.c abclib.h + $(CC) -c $(OPT) -o abclib.o abclib.c diff --git a/abclock/patches/patch-ab b/abclock/patches/patch-ab new file mode 100644 index 0000000000..7e7cf228d4 --- /dev/null +++ b/abclock/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2005/11/18 10:43:04 ghen Exp $ + +--- abclock.c.orig 2005-11-18 11:03:51.000000000 +0100 ++++ abclock.c +@@ -29,7 +29,7 @@ + #include + #include + #include +-#include ++#include + #include + #include +