Import of wmitime-0.3

WMitime is yet another clock dockapp that shows standard
time, date, as well as the new internet time.

ok naddy@
This commit is contained in:
wilfried 2001-03-09 08:41:52 +00:00
parent 931b72d781
commit c6b9643870
7 changed files with 84 additions and 0 deletions

23
x11/wmitime/Makefile Normal file
View File

@ -0,0 +1,23 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/03/09 08:41:52 wilfried Exp $
DISTNAME= wmitime-0.3
CATEGORIES= x11 x11/windowmaker
NEED_VERSION= 1.359
HOMEPAGE= http://www.neotokyo.org/illusion/
MAINTAINER= Peter Stromberg <wilfried@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}/downloads/
WRKDIST= ${WRKDIR}/wmitime/wmitime
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/wmitime ${PREFIX}/bin
.include <bsd.port.mk>

3
x11/wmitime/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (wmitime-0.3.tar.gz) = 7168e9d6b5930d510727530a309d812c
RMD160 (wmitime-0.3.tar.gz) = b2301a15ef159d2d55418ae5fbf914bedc388478
SHA1 (wmitime-0.3.tar.gz) = 64bb07c5eccce5592088cfccc87836f66695e07c

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2001/03/09 08:41:53 wilfried Exp $
--- Makefile.orig Mon Mar 29 05:51:39 1999
+++ Makefile Thu Mar 8 13:17:14 2001
@@ -1,7 +1,6 @@
#LANG = fr
-LIBDIR = -L/usr/X11R6/lib
+LIBDIR = -L${X11BASE}/lib
LIBS = -lXpm -lXext -lX11 -lm
-FLAGS = -O2
OBJS = wmitime.o \
../wmgeneral/wmgeneral.o \
../wmgeneral/misc.o \
@@ -9,12 +8,12 @@ OBJS = wmitime.o \
.c.o:
- cc -I/usr/X11R6/share/include $(FLAGS) -D$(LANG) -c -Wall $< -o $*.o
+ ${CC} -I${X11BASE}/include ${CFLAGS} -c $< -o $@
-wmtime: $(OBJS)
- cc $(FLAGS) -D$(LANG) -o wmitime $^ -lXext $(LIBDIR) $(LIBS)
+wmitime: $(OBJS)
+ ${CC} ${CFLAGS} -o $@ $(OBJS) $(LIBDIR) $(LIBS)
-all:: wmtime
+all:: wmitime
clean::
for i in $(OBJS) ; do \

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-wmitime_c,v 1.1.1.1 2001/03/09 08:41:53 wilfried Exp $
--- wmitime.c.orig Mon Mar 29 05:56:05 1999
+++ wmitime.c Thu Mar 8 13:14:35 2001
@@ -281,7 +281,7 @@ void DrawInetTime(void)
// Compute Inet Time
iTime=(clk->tm_hour*3600+clk->tm_min*60+clk->tm_sec);
- iTime=iTime+((timezone-1)+3600);
+ iTime=iTime+((1-clk->tm_gmtoff)+3600);
if (clk->tm_isdst)
iTime-=3600;
iTime=(iTime*1000)/86400;
@@ -398,7 +398,7 @@ void DrawInetWheel(void)
// Calculate Wheel Position...
iTime=(clk->tm_hour*3600+clk->tm_min*60+clk->tm_sec);
- iTime=iTime+((timezone-1)+3600);
+ iTime=iTime+((1-clk->tm_gmtoff)+3600);
if (clk->tm_isdst)
iTime-=3600;
iTime=(iTime*1000)/8640;

1
x11/wmitime/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
wm-dockapp; shows the date, time, and internet time

5
x11/wmitime/pkg/DESCR Normal file
View File

@ -0,0 +1,5 @@
WMitime is yet another clock dockapp that shows standard
time, date, as well as the new internet time. For more info
on internet time, see http://www.swatch.com/
WWW: ${HOMEPAGE}

2
x11/wmitime/pkg/PLIST Normal file
View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/03/09 08:41:53 wilfried Exp $
bin/wmitime