diff options
author | fjoe <fjoe@FreeBSD.org> | 2003-04-28 10:49:47 +0000 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2003-04-28 10:49:47 +0000 |
commit | 148196f722dbe6cfb75f6afd89795e6598542165 (patch) | |
tree | 58d4a0bff2165e553fbbcdcb873b3466faa7d806 | |
parent | 810d860ed99299fe3bd4db68c24b996ddfb0344a (diff) | |
download | FreeBSD-ports-148196f722dbe6cfb75f6afd89795e6598542165.zip FreeBSD-ports-148196f722dbe6cfb75f6afd89795e6598542165.tar.gz |
New port: wmblueclock (simple dockable clock application)
Submitted by: Alexey Dokuchaev
-rw-r--r-- | x11-clocks/Makefile | 1 | ||||
-rw-r--r-- | x11-clocks/wmblueclock/Makefile | 27 | ||||
-rw-r--r-- | x11-clocks/wmblueclock/distinfo | 1 | ||||
-rw-r--r-- | x11-clocks/wmblueclock/files/patch-Makefile | 66 | ||||
-rw-r--r-- | x11-clocks/wmblueclock/files/patch-timing.c | 13 | ||||
-rw-r--r-- | x11-clocks/wmblueclock/pkg-descr | 2 | ||||
-rw-r--r-- | x11-clocks/wmblueclock/pkg-plist | 1 |
7 files changed, 111 insertions, 0 deletions
diff --git a/x11-clocks/Makefile b/x11-clocks/Makefile index 9e78fc5..6cb77e4 100644 --- a/x11-clocks/Makefile +++ b/x11-clocks/Makefile @@ -22,6 +22,7 @@ SUBDIR += t3d SUBDIR += tclock SUBDIR += washerdryer + SUBDIR += wmblueclock SUBDIR += wmcalclock SUBDIR += wmclock SUBDIR += wmclockmon diff --git a/x11-clocks/wmblueclock/Makefile b/x11-clocks/wmblueclock/Makefile new file mode 100644 index 0000000..303dbed --- /dev/null +++ b/x11-clocks/wmblueclock/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: wmblueclock +# Date created: 25 Apr 2003 +# Whom: Alexey Dokuchaev <danfe@regency.nsu.ru> +# +# $FreeBSD$ +# + +PORTNAME= wmblueclock +PORTVERSION= 0.0 +CATEGORIES= x11-clocks windowmaker +MASTER_SITES= http://ibiblio.org/pub/linux/X11/xutils/ \ + ftp://ftp.ibiblio.org/pub/linux/X11/xutils/ + +MAINTAINER= danfe@regency.nsu.ru +COMMENT= Simple dockable clock application + +USE_BZIP2= yes +USE_X_PREFIX= yes +USE_XPM= yes + +MAN1= ${PORTNAME}.1 + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1 + +.include <bsd.port.mk> diff --git a/x11-clocks/wmblueclock/distinfo b/x11-clocks/wmblueclock/distinfo new file mode 100644 index 0000000..9cd298e --- /dev/null +++ b/x11-clocks/wmblueclock/distinfo @@ -0,0 +1 @@ +MD5 (wmblueclock-0.0.tar.bz2) = 3ee93b4736de7bd6fd67b74c97bb3b26 diff --git a/x11-clocks/wmblueclock/files/patch-Makefile b/x11-clocks/wmblueclock/files/patch-Makefile new file mode 100644 index 0000000..a15735e --- /dev/null +++ b/x11-clocks/wmblueclock/files/patch-Makefile @@ -0,0 +1,66 @@ +--- Makefile.orig Fri Apr 25 04:37:15 2003 ++++ Makefile Fri Apr 25 04:40:57 2003 +@@ -1,54 +1,13 @@ +-# WMBlueClock - a clock dockapp +-# +-# Copyright (C) 2003 Draghicioiu Mihai Andrei <misuceldestept@go.ro> +-# +-# This program is free software; you can redistribute it and/or modify +-# it under the terms of the GNU General Public License as published by +-# the Free Software Foundation; either version 2 of the License, or +-# (at your option) any later version. ++CC ?= cc ++LDIR = -L${X11BASE}/lib ++IDIR = -I${X11BASE}/include + +-# This program is distributed in the hope that it will be useful, +-# but WITHOUT ANY WARRANTY; without even the implied warranty of +-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-# GNU General Public License for more details. ++LIBS = -lX11 -lXpm -lXext -lkvm + +-# You should have received a copy of the GNU General Public License +-# along with this program; if not, write to the Free Software +-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ++OBJS = dockapp.o draw.o options.o timing.o wmblueclock.o + +-PROG=wmblueclock +-OBJS=dockapp.o draw.o options.o timing.o wmblueclock.o ++.c.o: ++ ${CC} ${CFLAGS} ${IDIR} ${DEFS} -c $< -o $*.o + +-PREFIX=/usr/local +-BINDIR=$(PREFIX)/bin +-MANUALDIR=$(PREFIX)/share/man/man1 +-CC=gcc +-STRIP=strip +-FLAGS=-Wall -O2 +-RM=rm -rf +-INST=install +-MANUAL=$(PROG).1 +-LIBS=-L/usr/X11R6/lib -lX11 -lXext -lXpm +- +-all: $(PROG) +- +-$(PROG): $(OBJS) +- $(CC) -o $(PROG) $(OBJS) $(LIBS) +- $(STRIP) $(PROG) +-%.o: %.c +- $(CC) $(FLAGS) -c $< -o $@ +-clean: +- $(RM) $(OBJS) $(PROG) .xvpics xpm/.xvpics +-install: $(PROG) +- $(INST) -m 755 $(PROG) $(BINDIR) +- $(INST) -m 644 $(MANUAL) $(MANUALDIR) +-uninstall: +- $(RM) $(BINDIR)/$(PROG) +- $(RM) $(MANUALDIR)/$(MANUAL) +- +-dockapp.o: dockapp.c wmblueclock.h options.h draw.h timing.h xpm/bg.xpm \ +- xpm/bignums.xpm xpm/letters.xpm xpm/numbers.xpm xpm/panel.xpm +-draw.o: draw.c dockapp.h options.h +-options.o: options.c wmblueclock.h options.h +-timing.o: timing.c draw.h options.h +-wmblueclock.o: wmblueclock.c options.h dockapp.h timing.h ++all: ${OBJS} ++ ${CC} ${CFLAGS} -o wmblueclock ${OBJS} ${LDIR} ${LIBS} diff --git a/x11-clocks/wmblueclock/files/patch-timing.c b/x11-clocks/wmblueclock/files/patch-timing.c new file mode 100644 index 0000000..fa4d692 --- /dev/null +++ b/x11-clocks/wmblueclock/files/patch-timing.c @@ -0,0 +1,13 @@ +--- timing.c.orig Fri Apr 25 04:34:40 2003 ++++ timing.c Fri Apr 25 04:35:03 2003 +@@ -38,8 +38,8 @@ + signal(SIGALRM, handle_timer); + itv.it_value.tv_sec = 2; + itv.it_value.tv_usec = 0; +- itv.it_interval.tv_sec = 0; +- itv.it_interval.tv_usec = opt_milisecs * 1000; ++ itv.it_interval.tv_sec = opt_milisecs / 1000; ++ itv.it_interval.tv_usec = (opt_milisecs % 1000) * 1000; + setitimer(ITIMER_REAL, &itv, NULL); + } + diff --git a/x11-clocks/wmblueclock/pkg-descr b/x11-clocks/wmblueclock/pkg-descr new file mode 100644 index 0000000..0c9aaf9 --- /dev/null +++ b/x11-clocks/wmblueclock/pkg-descr @@ -0,0 +1,2 @@ +WMBlueClock is a simple clock dockapp. It displays current date and time +in "blue" fashion. diff --git a/x11-clocks/wmblueclock/pkg-plist b/x11-clocks/wmblueclock/pkg-plist new file mode 100644 index 0000000..4ecfd3d --- /dev/null +++ b/x11-clocks/wmblueclock/pkg-plist @@ -0,0 +1 @@ +bin/wmblueclock |