mouseclock port
This commit is contained in:
parent
070615150b
commit
2d06dbd9c7
27
x11/mouseclock/Makefile
Normal file
27
x11/mouseclock/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# New ports collection makefile for: mouseclock
|
||||
# Version required: 1.0
|
||||
# Date created: 26 August 1997
|
||||
# Whom: FURUSAWA, Kazuhisa <furusawa@com.cs.osakafu-u.ac.jp>
|
||||
#
|
||||
# $Id: Makefile,v 1.1.1.1 1998/05/19 06:18:58 angelos Exp $
|
||||
#
|
||||
|
||||
DISTNAME= mouseclock-1.0
|
||||
CATEGORIES= x11
|
||||
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
||||
MASTER_SITE_SUBDIR= X11/clocks
|
||||
|
||||
MAINTAINER= furusawa@com.cs.osakafu-u.ac.jp
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_IMAKE= yes
|
||||
XMKMF= xmkmf
|
||||
NO_INSTALL_MANPAGES= yes
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${PREFIX}/share/doc/mouseclock
|
||||
@${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/mouseclock
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
1
x11/mouseclock/files/md5
Normal file
1
x11/mouseclock/files/md5
Normal file
@ -0,0 +1 @@
|
||||
MD5 (mouseclock-1.0.tar.gz) = d0d59ea3ffd019d29296f18e1935af5c
|
39
x11/mouseclock/patches/patch-aa
Normal file
39
x11/mouseclock/patches/patch-aa
Normal file
@ -0,0 +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 @@
|
||||
Window Root;
|
||||
int shadow_size = 2;
|
||||
int shadow_mode = 1;
|
||||
+int ampm = 0;
|
||||
|
||||
/* ---------------------------------------------------------------- */
|
||||
void
|
||||
@@ -56,6 +57,7 @@
|
||||
printf ("-display <dpy> display name\n");
|
||||
printf ("-fg <color> foreground color\n");
|
||||
printf ("-fn <font_name> font to use\n");
|
||||
+ printf ("-12hr use 12-hour format\n");
|
||||
|
||||
exit (1);
|
||||
}
|
||||
@@ -266,6 +268,11 @@
|
||||
shadow_mode = 0;
|
||||
continue;
|
||||
}
|
||||
+ if (!strcmp ("-12hr", argv[i]))
|
||||
+ {
|
||||
+ ampm = 1;
|
||||
+ continue;
|
||||
+ }
|
||||
usage (argv[0]);
|
||||
}
|
||||
|
||||
@@ -295,7 +302,7 @@
|
||||
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)
|
6
x11/mouseclock/patches/patch-ab
Normal file
6
x11/mouseclock/patches/patch-ab
Normal file
@ -0,0 +1,6 @@
|
||||
*** /dev/null Tue May 19 02:19:02 1998
|
||||
--- mouseclock.man Tue May 19 02:19:23 1998
|
||||
***************
|
||||
*** 0 ****
|
||||
--- 1 ----
|
||||
+
|
1
x11/mouseclock/pkg/COMMENT
Normal file
1
x11/mouseclock/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
display the current time using the X root cursor
|
7
x11/mouseclock/pkg/DESCR
Normal file
7
x11/mouseclock/pkg/DESCR
Normal file
@ -0,0 +1,7 @@
|
||||
Mouseclock is a little program to display the current time using
|
||||
the X root cursor.
|
||||
|
||||
See README for details.
|
||||
|
||||
Orignal mouseclock written by santini@chambord.univ-orleans.fr.
|
||||
This port is done by furusawa@com.cs.osakafu-u.ac.jp.
|
3
x11/mouseclock/pkg/PLIST
Normal file
3
x11/mouseclock/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
bin/mouseclock
|
||||
share/doc/mouseclock/README
|
||||
@dirrm share/doc/mouseclock
|
Loading…
Reference in New Issue
Block a user