Index: head/x11-clocks/mouseclock/Makefile =================================================================== --- head/x11-clocks/mouseclock/Makefile (revision 408891) +++ head/x11-clocks/mouseclock/Makefile (revision 408892) @@ -1,22 +1,25 @@ # Created by: FURUSAWA, Kazuhisa # $FreeBSD$ PORTNAME= mouseclock PORTVERSION= 1.0 PORTREVISION= 5 CATEGORIES= x11-clocks MASTER_SITES= SUNSITE/X11/clocks MAINTAINER= ports@FreeBSD.org COMMENT= Display the current time using the X root cursor +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + USES= imake:notall USE_XORG= x11 OPTIONS_DEFINE= DOCS -post-install: +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .include Index: head/x11-clocks/mouseclock/files/patch-Imakefile =================================================================== --- head/x11-clocks/mouseclock/files/patch-Imakefile (revision 408891) +++ head/x11-clocks/mouseclock/files/patch-Imakefile (revision 408892) @@ -1,23 +1,23 @@ ---- Imakefile.orig 1996-05-05 18:51:27.000000000 +0200 -+++ Imakefile 2013-09-01 17:04:26.000000000 +0200 +--- Imakefile.orig 1996-05-05 16:51:27 UTC ++++ Imakefile @@ -1,16 +1,10 @@ -#define IHaveSubdirs -#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' -+OBJS = mouseclock.o -+SRCS = mouseclock.c -+SYS_LIBRARIES = $(XONLYLIB) - +- - DEPLIBS = $(DEPXLIB) -LOCAL_LIBRARIES = $(XLIB) - CDEBUGFLAGS = - CCOPTIONS = -O3 -s -pipe -Wall ++OBJS = mouseclock.o ++SRCS = mouseclock.c ++SYS_LIBRARIES = $(XONLYLIB) -AllTarget(mouseclock) -- + -MakeMakeSubdirs($(SUBDIRS),install) -SimpleProgramTarget(mouseclock) +ComplexProgramTargetNoMan(mouseclock) arc : clean (cd .. ; tar zcvf mouseclock.tar.gz mouseclock) Index: head/x11-clocks/mouseclock/files/patch-mouseclock.c =================================================================== --- head/x11-clocks/mouseclock/files/patch-mouseclock.c (revision 408891) +++ head/x11-clocks/mouseclock/files/patch-mouseclock.c (revision 408892) @@ -1,39 +1,39 @@ ---- mouseclock.c.orig Sun May 5 09:47:18 1996 -+++ mouseclock.c Mon Oct 6 23:09:43 1997 -@@ -31,6 +31,7 @@ +--- mouseclock.c.orig 1996-05-05 16:47:18 UTC ++++ mouseclock.c +@@ -31,6 +31,7 @@ int Scr; Window Root; int shadow_size = 2; int shadow_mode = 1; +int ampm = 0; /* ---------------------------------------------------------------- */ void -@@ -56,6 +57,7 @@ +@@ -56,6 +57,7 @@ usage (const char *nom) printf ("-display display name\n"); printf ("-fg foreground color\n"); printf ("-fn font to use\n"); + printf ("-12hr use 12-hour format\n"); exit (1); } -@@ -266,6 +268,11 @@ +@@ -266,6 +268,11 @@ main (int argc, char **argv) shadow_mode = 0; continue; } + if (!strcmp ("-12hr", argv[i])) + { + ampm = 1; + continue; + } usage (argv[0]); } -@@ -295,7 +302,7 @@ +@@ -295,7 +302,7 @@ main (int argc, char **argv) struct tm *now_tm = localtime (&now); Cursor cur; - h = now_tm->tm_hour; + h = ampm && (now_tm->tm_hour - 12 > 0) ? now_tm->tm_hour - 12 : now_tm->tm_hour; m = now_tm->tm_min; if (h != last_h || m != last_m)