Import wmtime-1.0b2.

From Arthur H. Johnson II <arthur@linuxbox.nu>.  Somewhat cleaned up by me.

This is a very nice clock that runs in the WindowMaker "dock".  Either
digital or analog clock faces can be specified.
This commit is contained in:
naddy 2000-12-26 18:22:13 +00:00
parent ffe136d480
commit 51f3c7f3c6
7 changed files with 84 additions and 0 deletions

19
x11/wmtime/Makefile Normal file
View File

@ -0,0 +1,19 @@
# $OpenBSD: Makefile,v 1.1.1.1 2000/12/26 18:22:13 naddy Exp $
DISTNAME= wmtime-1.0b2
CATEGORIES= x11
MASTER_SITES= ftp://ftp.enteract.com/users/rneswold/
HOMEPAGE= http://windowmaker.mezaway.org
MAINTAINER= Arthur H. Johnson II <arthur@linuxbox.nu>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WRKDIST= ${WRKDIR}/wmtime.app/
WRKSRC= ${WRKDIST}/wmtime/
USE_XPM= yes
.include <bsd.port.mk>

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

@ -0,0 +1,3 @@
MD5 (wmtime-1.0b2.tar.gz) = 04c03e001aa702cf653b6b6c3f58bf87
RMD160 (wmtime-1.0b2.tar.gz) = f267f75237c111ed336521ca175688a33f1e171a
SHA1 (wmtime-1.0b2.tar.gz) = 2a66762d548b9f91415603e8d6a37cfacb9340ad

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-wmtime_Makefile,v 1.1.1.1 2000/12/26 18:22:14 naddy Exp $
--- wmtime/Makefile.orig Tue May 19 23:04:53 1998
+++ wmtime/Makefile Tue Dec 26 19:02:32 2000
@@ -1,18 +1,23 @@
-LIBDIR = -L/usr/X11R6/lib
+LIBDIR = -L${X11BASE}/lib
LIBS = -lXpm -lXext -lX11 -lm
OBJS = wmtime.o \
../wmgeneral/wmgeneral.o \
../wmgeneral/misc.o \
../wmgeneral/list.o
+all: wmtime
+
.c.o:
- cc -c -O2 -Wall $< -o $*.o
+ $(CC) $(CFLAGS) -I$(X11BASE)/include -c $< -o $@
wmtime: $(OBJS)
- cc -o wmtime $^ $(LIBDIR) $(LIBS)
+ $(CC) -o wmtime $(OBJS) $(LIBDIR) $(LIBS)
clean::
for i in $(OBJS) ; do \
rm $$i; \
done
rm wmtime
+
+install:
+ ${BSD_INSTALL_PROGRAM} wmtime ${PREFIX}/bin

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-wmtime_wmtime_c,v 1.1.1.1 2000/12/26 18:22:14 naddy Exp $
--- wmtime/wmtime.c.orig Tue Dec 26 19:05:24 2000
+++ wmtime/wmtime.c Tue Dec 26 19:07:48 2000
@@ -98,7 +98,7 @@ void printversion(void);
void wmtime_routine(int, char **);
void get_lang();
-void main(int argc, char *argv[]) {
+int main(int argc, char *argv[]) {
int i;
@@ -187,9 +187,9 @@ void wmtime_routine(int argc, char **arg
struct tm *time_struct;
struct tm old_time_struct;
- long starttime;
- long curtime;
- long nexttime;
+ time_t starttime;
+ time_t curtime;
+ time_t nexttime;
char temp[128];
char *p;

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

@ -0,0 +1 @@
time/date applet for WindowMaker

4
x11/wmtime/pkg/DESCR Normal file
View File

@ -0,0 +1,4 @@
This is a very nice clock that runs in the WindowMaker "dock". Either
digital or analog clock faces can be specified.
WWW: ${HOMEPAGE}

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

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2000/12/26 18:22:14 naddy Exp $
bin/wmtime