Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

159
time/Makefile Normal file
View File

@@ -0,0 +1,159 @@
# $NetBSD: Makefile,v 1.125 2013/05/27 10:52:14 rodent Exp $
#
COMMENT= Clocks, calendars, daily planners and other time related applications
SUBDIR+= abclock
SUBDIR+= anacron
SUBDIR+= asclock
SUBDIR+= asclock-gtk
SUBDIR+= asclock-xlib
SUBDIR+= bbdate
SUBDIR+= cairo-clock
SUBDIR+= cal
SUBDIR+= cardboard-schedule
SUBDIR+= catclock
SUBDIR+= dclock
SUBDIR+= deforaos-todo
SUBDIR+= devtodo
SUBDIR+= emiclock
SUBDIR+= etm
SUBDIR+= evolution-webcal
SUBDIR+= gcal
SUBDIR+= gchore
SUBDIR+= gdeskcal
SUBDIR+= glclock
SUBDIR+= globe
SUBDIR+= gnotime
SUBDIR+= gnutime
SUBDIR+= gnyaclock
SUBDIR+= grdc
SUBDIR+= gtodo
SUBDIR+= gtodo-applet
SUBDIR+= hamster-applet
SUBDIR+= hebcal
SUBDIR+= heirloom-date
SUBDIR+= ical
SUBDIR+= ical2rem
SUBDIR+= jday
SUBDIR+= kronolith
SUBDIR+= ktimer
SUBDIR+= leapsunpack
SUBDIR+= libical
SUBDIR+= lmclock
SUBDIR+= logtime
SUBDIR+= ocaml-calendar
SUBDIR+= oclock
SUBDIR+= p5-Calendar-Simple
SUBDIR+= p5-Convert-NLS_DATE_FORMAT
SUBDIR+= p5-Data-ICal
SUBDIR+= p5-Data-ICal-DateTime
SUBDIR+= p5-Date-ICal
SUBDIR+= p5-Date-Leapyear
SUBDIR+= p5-DateTime
SUBDIR+= p5-DateTime-Calendar-Discordian
SUBDIR+= p5-DateTime-Calendar-Mayan
SUBDIR+= p5-DateTime-Event-Cron
SUBDIR+= p5-DateTime-Event-ICal
SUBDIR+= p5-DateTime-Event-Random
SUBDIR+= p5-DateTime-Event-Recurrence
SUBDIR+= p5-DateTime-Format-Builder
SUBDIR+= p5-DateTime-Format-DateManip
SUBDIR+= p5-DateTime-Format-DateParse
SUBDIR+= p5-DateTime-Format-Epoch
SUBDIR+= p5-DateTime-Format-Flexible
SUBDIR+= p5-DateTime-Format-HTTP
SUBDIR+= p5-DateTime-Format-ICal
SUBDIR+= p5-DateTime-Format-ISO8601
SUBDIR+= p5-DateTime-Format-Mail
SUBDIR+= p5-DateTime-Format-MySQL
SUBDIR+= p5-DateTime-Format-Natural
SUBDIR+= p5-DateTime-Format-Oracle
SUBDIR+= p5-DateTime-Format-Pg
SUBDIR+= p5-DateTime-Format-SQLite
SUBDIR+= p5-DateTime-Format-Strptime
SUBDIR+= p5-DateTime-Format-W3CDTF
SUBDIR+= p5-DateTime-Locale
SUBDIR+= p5-DateTime-Precise
SUBDIR+= p5-DateTime-Set
SUBDIR+= p5-DateTime-TimeZone
SUBDIR+= p5-DateTime-TimeZone-HPUX
SUBDIR+= p5-DateTimeX-Easy
SUBDIR+= p5-MooseX-Types-DateTime
SUBDIR+= p5-MooseX-Types-DateTime-ButMaintained
SUBDIR+= p5-MooseX-Types-DateTimeX
SUBDIR+= p5-Net-Google-Calendar
SUBDIR+= p5-Olson-Abbreviations
SUBDIR+= p5-Rose-DateTime
SUBDIR+= p5-Schedule-At
SUBDIR+= p5-Schedule-Cron-Events
SUBDIR+= p5-Template-Plugin-DateTime
SUBDIR+= p5-Test-MockTime
SUBDIR+= p5-Time-Clock
SUBDIR+= p5-Time-Duration
SUBDIR+= p5-Time-Duration-Parse
SUBDIR+= p5-Time-Elapsed
SUBDIR+= p5-Time-Format
SUBDIR+= p5-Time-Format_XS
SUBDIR+= p5-Time-HiRes
SUBDIR+= p5-Time-Interval
SUBDIR+= p5-Time-Local
SUBDIR+= p5-Time-Period
SUBDIR+= p5-Time-Piece
SUBDIR+= p5-Time-Progress
SUBDIR+= p5-Time-TAI64
SUBDIR+= p5-Time-Warp
SUBDIR+= p5-Time-modules
SUBDIR+= p5-TimeDate
SUBDIR+= pcal
SUBDIR+= pclock
SUBDIR+= pear-Date
SUBDIR+= phoon
SUBDIR+= php-calendar
SUBDIR+= plan
SUBDIR+= planner
SUBDIR+= polclock
SUBDIR+= projclock
SUBDIR+= ptimetracker
SUBDIR+= py-dateutil
SUBDIR+= py-icalendar
SUBDIR+= py-mxDateTime
SUBDIR+= py-parsedatetime
SUBDIR+= py-pytz
SUBDIR+= rclock
SUBDIR+= rem2ics
SUBDIR+= remind
SUBDIR+= rsibreak
SUBDIR+= rsibreak-kde3
SUBDIR+= ruby-tzinfo
SUBDIR+= saytime
SUBDIR+= sunclock
SUBDIR+= swisswatch
SUBDIR+= tdl
SUBDIR+= titrax
SUBDIR+= vixie-cron
SUBDIR+= wmCalClock
SUBDIR+= wmclockmon
SUBDIR+= wmfishtime
SUBDIR+= wmmoonclock
SUBDIR+= wmtime
SUBDIR+= wmzcalock
SUBDIR+= wxRemind
SUBDIR+= wyrd
SUBDIR+= xalarm
SUBDIR+= xbeats
SUBDIR+= xcal
SUBDIR+= xchrono
SUBDIR+= xclock
SUBDIR+= xdaliclock
SUBDIR+= xdkcal
SUBDIR+= xfce4-datetime-plugin
SUBDIR+= xfce4-orage
SUBDIR+= xfce4-timer-plugin
SUBDIR+= xonclock
SUBDIR+= xtide
SUBDIR+= xtimer
SUBDIR+= xtu
SUBDIR+= zonetab
.include "../mk/misc/category.mk"

11
time/abclock/DESCR Normal file
View File

@@ -0,0 +1,11 @@
Digital clocks are nice for telling exactly what time it is, but, unlike an
analogue clock, they don't give a spatial representation of time. They don't
show where time is coming from or going to.
On the other hand, a bitmap representation of a mechanical clock doesn't tell
time very accurately if the bitmap is very small. And curves and oblique lines
don't look very nice in a small, low-resolution bitmap.
So, this is something different: an analogue clock that isn't tied to the
design of the mechanical clock, but instead uses the natural properties of
bitmaps: straight lines and rectangles.

19
time/abclock/Makefile Normal file
View File

@@ -0,0 +1,19 @@
# $NetBSD: Makefile,v 1.2 2012/10/08 13:04:16 asau Exp $
DISTNAME= abclock-1.0d
CATEGORIES= time
MASTER_SITES= http://odur.let.rug.nl/~kleiweg/abclock/
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://odur.let.rug.nl/~kleiweg/abclock/
COMMENT= Analogue Bitmap Clock
LICENSE= gnu-gpl-v2
INSTALLATION_DIRS= bin
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/abclock ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/abc_img ${DESTDIR}${PREFIX}/bin
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

3
time/abclock/PLIST Normal file
View File

@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2011/11/08 10:49:35 ryoon Exp $
bin/abc_img
bin/abclock

7
time/abclock/distinfo Normal file
View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.1.1.1 2011/11/08 10:49:35 ryoon Exp $
SHA1 (abclock-1.0d.tar.gz) = 28dac4a0fc93b6cd37db88104c9bc377840e7d32
RMD160 (abclock-1.0d.tar.gz) = a49681af06d0554436545f2ad0d2401f8763505a
Size (abclock-1.0d.tar.gz) = 18252 bytes
SHA1 (patch-aa) = 038887a124c5110ea97902a6158e77e2b62647f4
SHA1 (patch-ab) = c15f9ea30c6662baa357d0864159b3825a2d7e97

View File

@@ -0,0 +1,35 @@
$NetBSD: patch-aa,v 1.1.1.1 2011/11/08 10:49:35 ryoon Exp $
--- Makefile.orig 2003-08-27 15:57:57.000000000 +0200
+++ Makefile
@@ -1,26 +1,17 @@
.SUFFIXES:
-CC = gcc
+CC ?= gcc
-OPT = -s -Wall
-
-XLIBDIR = -L/usr/X11/lib -L/usr/X11R6/lib -L/usr/X11R5/lib -L/usr/X11R4/lib \
- -L/usr/lib/X11 -L/usr/lib/X11R6 -L/usr/lib/X11R5 -L/usr/lib/X11R4
-
-XINCLUDEDIR = -I/usr/X11/include -I/usr/X11R6/include -I/usr/X11R5/include -I/usr/X11R4/include \
- -I/usr/include/X11 -I/usr/include/X11R6 -I/usr/include/X11R5 -I/usr/include/X11R4 \
- -I/usr/local/X11/include -I/usr/local/X11R6/include -I/usr/local/X11R5/include -I/usr/local/X11R4/include \
- -I/usr/local/include/X11 -I/usr/local/include/X11R6 -I/usr/local/include/X11R5 -I/usr/local/include/X11R4 \
- -I/usr/X386/include -I/usr/x386/include -I/usr/XFree86/include/X11 -I/usr/local/x11r5/include
+OPT = $(CFLAGS) -Wall
all: abclock abc_img
abclock: abclock.o abclib.o
- $(CC) $(XLIBDIR) $(OPT) -o abclock abclock.o abclib.o -lX11
+ $(CC) $(LDFLAGS) $(OPT) -o abclock abclock.o abclib.o -lX11
abc_img: abc_img.o abclib.o
- $(CC) $(OPT) -o abc_img abc_img.o abclib.o
+ $(CC) $(LDFLAGS) $(OPT) -o abc_img abc_img.o abclib.o
abclib.o: abclib.c abclib.h
$(CC) -c $(OPT) -o abclib.o abclib.c

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.1.1.1 2011/11/08 10:49:35 ryoon Exp $
--- abclock.c.orig 2005-11-18 11:03:51.000000000 +0100
+++ abclock.c
@@ -29,7 +29,7 @@
#include <time.h>
#include <sys/time.h>
#include <unistd.h>
-#include <values.h>
+#include <float.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>

7
time/anacron/DESCR Normal file
View File

@@ -0,0 +1,7 @@
Anacron is a periodic command scheduler. It executes commands at intervals
specified in days. Unlike cron, it does not assume that the system is running
continuously. It can therefore be used to control the execution of daily,
weekly and monthly jobs (or anything with a period of n days), on systems that
do not run 24 hours a day. When installed and configured properly, Anacron
will make sure that the commands are run at the specified intervals as closely
as machine-uptime permits.

65
time/anacron/Makefile Normal file
View File

@@ -0,0 +1,65 @@
# $NetBSD: Makefile,v 1.13 2012/10/08 13:04:16 asau Exp $
#
DISTNAME= anacron-2.3
PKGREVISION= 2
CATEGORIES= time
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=anacron/}
MAINTAINER= jmmv@NetBSD.org
HOMEPAGE= http://anacron.sourceforge.net/
COMMENT= Periodic command scheduler
LICENSE= gnu-gpl-v2
USE_TOOLS+= gmake
.include "../../mk/bsd.prefs.mk"
SUBST_CLASSES+= hdr
SUBST_MESSAGE.hdr= Setting up global.h.
SUBST_STAGE.hdr= pre-configure
SUBST_FILES.hdr= global.h
.if ${OPSYS} == "NetBSD"
SUBST_SED.hdr= -e 's|SENDMAIL ".*"|SENDMAIL "/usr/sbin/sendmail"|'
.else
SUBST_SED.hdr= -e 's|SENDMAIL ".*"|SENDMAIL "/usr/lib/sendmail"|'
.endif
SUBST_CLASSES+= man
SUBST_MESSAGE.man= Setting up manpages.
SUBST_STAGE.man= pre-configure
SUBST_FILES.man= anacrontab.5 anacron.8
SUBST_SED.man= -e 's|/etc/anacrontab|${PKG_SYSCONFDIR}/anacrontab|g'
MAKE_FLAGS+= ANACRONTAB='${PKG_SYSCONFDIR}/anacrontab'
MAKE_FLAGS+= BINDIR='${PREFIX}/sbin'
MAKE_FLAGS+= CFLAGS=${CFLAGS:M*:Q}
MAKE_FLAGS+= INSTALL_DATA=${INSTALL_DATA:Q}
MAKE_FLAGS+= INSTALL_DIR=${TRUE:Q}
MAKE_FLAGS+= INSTALL_PROGRAM=${INSTALL_PROGRAM:Q}
MAKE_FLAGS+= MANDIR='${PREFIX}/man'
MAKE_FLAGS+= PREFIX=${PREFIX:Q}
MAKE_FLAGS+= SHELL=${SH:Q}
MAKE_FLAGS+= SPOOLDIR='/var/spool/anacron'
EGDIR= ${PREFIX}/share/examples/anacron
.if exists(${FILESDIR}/anacrontab.${OPSYS})
CONF_FILES= ${EGDIR}/anacrontab.${OPSYS} \
${PKG_SYSCONFDIR}/anacrontab
CONF_FILES_MODE= 0600
.endif
OWN_DIRS= /var/spool/anacron
RCD_SCRIPTS= anacron
INSTALLATION_DIRS= ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 sbin ${EGDIR}
INSTALL_MAKE_FLAGS= BINDIR=${DESTDIR}${PREFIX}/sbin \
MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}
post-install:
${INSTALL_DATA} ${FILESDIR}/anacrontab.FreeBSD ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${FILESDIR}/anacrontab.NetBSD ${DESTDIR}${EGDIR}
.include "../../mk/bsd.pkg.mk"

7
time/anacron/PLIST Normal file
View File

@@ -0,0 +1,7 @@
@comment $NetBSD: PLIST,v 1.4 2009/06/14 18:17:56 joerg Exp $
man/man5/anacrontab.5
man/man8/anacron.8
sbin/anacron
share/examples/anacron/anacrontab.FreeBSD
share/examples/anacron/anacrontab.NetBSD
share/examples/rc.d/anacron

8
time/anacron/distinfo Normal file
View File

@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.4 2006/01/22 04:21:41 joerg Exp $
SHA1 (anacron-2.3.tar.gz) = d0e154123585e9faf615d67230d82d7d1b4c099a
RMD160 (anacron-2.3.tar.gz) = 613de5f8612871d92f6059c6cd324899f6fb8fcb
Size (anacron-2.3.tar.gz) = 24140 bytes
SHA1 (patch-aa) = d11218f289d48b6a12ce2a5a59f645a04695214d
SHA1 (patch-ab) = 7934402cd051cf0e5e434716a7c4ac677f993e2a
SHA1 (patch-ac) = ee6554ccd85d4152f3c3059b547f20991d0a897c

View File

@@ -0,0 +1,24 @@
#! @RCD_SCRIPTS_SHELL@
#
# $NetBSD: anacron.sh,v 1.1.1.1 2004/04/11 11:33:46 jmmv Exp $
#
# PROVIDE: anacron
# REQUIRE: LOGIN
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="anacron"
rcvar=$name
command="@PREFIX@/sbin/${name}"
required_files="@PKG_SYSCONFDIR@/anacrontab"
command_args="-t @PKG_SYSCONFDIR@/anacrontab"
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else
@ECHO@ -n ' ${name}'
${command} ${anacron_flags} ${command_args}
fi

View File

@@ -0,0 +1,15 @@
# $NetBSD: anacrontab.FreeBSD,v 1.2 2007/07/02 08:40:39 joerg Exp $
#
# anacrontab - Configuration file for FreeBSD.
#
# See anacrontab(5) and anacron(8) for more information.
#
SHELL=/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#days delay id command
1 5 daily /bin/sh /usr/sbin/periodic daily
7 15 weekly /bin/sh /usr/sbin/periodic weekly
30 30 monthly /bin/sh /usr/sbin/periodic monthly

View File

@@ -0,0 +1,15 @@
# $NetBSD: anacrontab.NetBSD,v 1.2 2007/07/02 08:40:39 joerg Exp $
#
# anacrontab - Configuration file for NetBSD.
#
# See anacrontab(5) and anacron(8) for more information.
#
SHELL=/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#days delay id command
1 5 daily /bin/sh /etc/daily 2>&1 | tee /var/log/daily.out | sendmail -t
7 15 weekly /bin/sh /etc/weekly 2>&1 | tee /var/log/weekly.out | sendmail -t
30 30 monthly /bin/sh /etc/monthly 2>&1 | tee /var/log/monthly.out | sendmail -t

View File

@@ -0,0 +1,163 @@
$NetBSD: patch-aa,v 1.1.1.1 2004/04/11 11:33:46 jmmv Exp $
--- readtab.c.orig 2000-06-23 00:13:12.000000000 +0200
+++ readtab.c
@@ -19,6 +19,11 @@
The GNU General Public License can also be found in the file
`COPYING' that comes with the Anacron source distribution.
+
+ Changes:
+
+ May 2003 (Derik van Zuetphen)
+ replaced obstack with malloc/realloc calls
*/
@@ -29,7 +34,6 @@
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
-#include <obstack.h>
#include <limits.h>
#include <fnmatch.h>
#include <unistd.h>
@@ -37,8 +41,6 @@
#include "global.h"
#include "matchrx.h"
-static struct obstack input_o; /* holds input line */
-static struct obstack tab_o; /* holds processed data read from anacrontab */
static FILE *tab;
job_rec **job_array;
int njobs; /* number of jobs to run */
@@ -47,9 +49,7 @@
static job_rec *last_job_rec; /* last job stored in memory, at the moment */
static env_rec *last_env_rec; /* last environment assignment stored */
-/* some definitions for the obstack macros */
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
+#define MAXTABLINE 1000
static void *
xmalloc (size_t size)
@@ -63,6 +63,18 @@
return ptr;
}
+static void *
+xrealloc (void *mem, size_t size)
+/* Just like standard realloc(), only never returns NULL. */
+{
+ void * ptr;
+
+ ptr = realloc(mem,size);
+ if (ptr == NULL)
+ die("Memory exhausted");
+ return ptr;
+}
+
static int
conv2int(const char *s)
/* Return the int or -1 on over/under-flow
@@ -78,19 +90,20 @@
}
static char *
-read_tab_line ()
+read_tab_line (char *line)
/* Read one line and return a pointer to it.
Return NULL if no more lines.
*/
{
int c;
+ int i = 0;
if (feof(tab)) return NULL;
- while ((c = getc(tab)) != EOF && c != '\n')
- obstack_1grow(&input_o, c);
+ while (i < MAXTABLINE-1 && (c = getc(tab)) != EOF && c != '\n')
+ line[i++] = c;
if (ferror(tab)) die_e("Error reading %s", anacrontab);
- obstack_1grow(&input_o, '\0');
- return obstack_finish(&input_o);
+ line[i] = 0;
+ return line;
}
static int
@@ -119,8 +132,8 @@
var_len = strlen(env_var);
val_len = strlen(value);
- er = obstack_alloc(&tab_o, sizeof(env_rec));
- er->assign = obstack_alloc(&tab_o, var_len + 1 + val_len + 1);
+ er = (env_rec*)xmalloc(sizeof(env_rec));
+ er->assign = (char*)xmalloc(var_len + 1 + val_len + 1);
strcpy(er->assign, env_var);
er->assign[var_len] = '=';
strcpy(er->assign + var_len + 1, value);
@@ -151,14 +164,14 @@
anacrontab, line_num);
return;
}
- jr = obstack_alloc(&tab_o, sizeof(job_rec));
+ jr = (job_rec*)xmalloc(sizeof(job_rec));
jr->period = period;
jr->delay = delay;
jr->tab_line = line_num;
- jr->ident = obstack_alloc(&tab_o, ident_len + 1);
+ jr->ident = (char*)xmalloc(ident_len + 1);
strcpy(jr->ident, ident);
jr->arg_num = job_arg_num(ident);
- jr->command = obstack_alloc(&tab_o, command_len + 1);
+ jr->command = (char*)xmalloc(command_len + 1);
strcpy(jr->command, command);
jr->job_pid = jr->mailer_pid = 0;
if (last_job_rec != NULL) last_job_rec->next = jr;
@@ -222,7 +235,7 @@
read_tab()
/* Read the anacrontab file into memory */
{
- char *tab_line;
+ char tab_line[MAXTABLINE];
first_job_rec = last_job_rec = NULL;
first_env_rec = last_env_rec = NULL;
@@ -231,14 +244,10 @@
/* Open the anacrontab file */
tab = fopen(anacrontab, "r");
if (tab == NULL) die_e("Error opening %s", anacrontab);
- /* Initialize the obstacks */
- obstack_init(&input_o);
- obstack_init(&tab_o);
- while ((tab_line = read_tab_line()) != NULL)
+ while ((read_tab_line(tab_line)) != NULL)
{
line_num++;
parse_tab_line(tab_line);
- obstack_free(&input_o, tab_line);
}
if (fclose(tab)) die_e("Error closing %s", anacrontab);
}
@@ -269,16 +278,17 @@
j = first_job_rec;
njobs = 0;
+ job_array = NULL;
while (j != NULL)
{
if (j->arg_num != -1 && (update_only || consider_job(j)))
{
+ job_array = (job_rec**)xrealloc(job_array, (njobs+1)*sizeof(j));
+ job_array[njobs] = j;
njobs++;
- obstack_grow(&tab_o, &j, sizeof(j));
}
j = j->next;
}
- job_array = obstack_finish(&tab_o);
/* sort the jobs */
qsort(job_array, njobs, sizeof(*job_array),

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.1 2005/01/04 14:43:07 jmmv Exp $
--- gregor.c.orig 2000-06-23 00:50:40.000000000 +0200
+++ gregor.c
@@ -65,7 +65,7 @@ day_num(int year, int month, int day)
{
int dn;
int i;
- const int isleap; /* save three calls to leap() */
+ int isleap; /* save three calls to leap() */
/* Some validity checks */

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-ac,v 1.1 2006/01/22 04:21:41 joerg Exp $
--- matchrx.c.orig 2006-01-22 04:20:23.000000000 +0000
+++ matchrx.c
@@ -22,10 +22,10 @@
*/
-#include <stdio.h>
-#include <regex.h>
#include <stdarg.h>
#include <stdlib.h>
+#include <stdio.h>
+#include <regex.h>
#include "matchrx.h"
int

5
time/asclock-gtk/DESCR Normal file
View File

@@ -0,0 +1,5 @@
ASClock is a dockable clock and calendar application with themes which
supports multiple languages, military and AM/PM time formats, and
program execution.
This version of asclock is an GTK+ application.

41
time/asclock-gtk/Makefile Normal file
View File

@@ -0,0 +1,41 @@
# $NetBSD: Makefile,v 1.30 2012/10/23 10:24:11 wiz Exp $
#
DISTNAME= asclock-gtk-2.1.10beta
PKGNAME= asclock-gtk-2.1.10
PKGREVISION= 5
CATEGORIES= x11 time
MASTER_SITES= ${MASTER_SITE_LOCAL} # www.asclock.org is no more
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Dockable clock and calendar with themes for GTK+
NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
WRKSRC= ${WRKDIR}/asclock-gtk
USE_X11BASE= yes
PLIST_SRC= ${PKGDIR}/PLIST \
${PKGDIR}/PLIST.themes
BUILD_TARGET= asclock
INSTALLATION_DIRS= bin share/asclock-gtk share/doc/asclock-gtk
pre-configure:
cd ${WRKSRC}; ${LN} -sf themes/classic default_theme
pre-install:
${RM} -f ${WRKSRC}/themes/Freeamp/Makefile*
${RM} -rf ${WRKSRC}/themes/themes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/asclock ${DESTDIR}${PREFIX}/bin/asclock-gtk
${INSTALL_DATA} ${WRKSRC}/README.THEMES ${DESTDIR}${PREFIX}/share/doc/asclock-gtk
${CP} -R ${WRKSRC}/themes/* ${DESTDIR}${PREFIX}/share/asclock-gtk
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${PREFIX}/share/asclock-gtk
.include "../../x11/gtk/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

3
time/asclock-gtk/PLIST Normal file
View File

@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:17:56 joerg Exp $
bin/asclock-gtk
share/doc/asclock-gtk/README.THEMES

View File

@@ -0,0 +1,90 @@
@comment $NetBSD: PLIST.themes,v 1.2 2009/06/14 18:17:57 joerg Exp $
share/asclock-gtk/Freeamp/beats.xpm
share/asclock-gtk/Freeamp/clock.xpm
share/asclock-gtk/Freeamp/config
share/asclock-gtk/Freeamp/date.xpm
share/asclock-gtk/Freeamp/hour.xpm
share/asclock-gtk/Freeamp/led.xpm
share/asclock-gtk/Freeamp/minute.xpm
share/asclock-gtk/Freeamp/month.xpm
share/asclock-gtk/Freeamp/old.clock.xpm
share/asclock-gtk/Freeamp/second.xpm
share/asclock-gtk/Freeamp/weekday.xpm
share/asclock-gtk/Newstone/beats.xpm
share/asclock-gtk/Newstone/clock.xpm
share/asclock-gtk/Newstone/config
share/asclock-gtk/Newstone/date.xpm
share/asclock-gtk/Newstone/hour.xpm
share/asclock-gtk/Newstone/led.xpm
share/asclock-gtk/Newstone/minute.xpm
share/asclock-gtk/Newstone/month.xpm
share/asclock-gtk/Newstone/second.xpm
share/asclock-gtk/Newstone/weekday.xpm
share/asclock-gtk/Orb/beats.xpm
share/asclock-gtk/Orb/clock.xpm
share/asclock-gtk/Orb/config
share/asclock-gtk/Orb/date.xpm
share/asclock-gtk/Orb/hour.xpm
share/asclock-gtk/Orb/led.xpm
share/asclock-gtk/Orb/minute.xpm
share/asclock-gtk/Orb/month.xpm
share/asclock-gtk/Orb/second.xpm
share/asclock-gtk/Orb/weekday.xpm
share/asclock-gtk/Stone/beats.xpm
share/asclock-gtk/Stone/clock.xpm
share/asclock-gtk/Stone/config
share/asclock-gtk/Stone/date.xpm
share/asclock-gtk/Stone/hour.xpm
share/asclock-gtk/Stone/led.xpm
share/asclock-gtk/Stone/minute.xpm
share/asclock-gtk/Stone/month.xpm
share/asclock-gtk/Stone/second.xpm
share/asclock-gtk/Stone/weekday.xpm
share/asclock-gtk/analog/beats.xpm
share/asclock-gtk/analog/clock.xpm
share/asclock-gtk/analog/config
share/asclock-gtk/analog/date.xpm
share/asclock-gtk/analog/hour.xpm
share/asclock-gtk/analog/led.xpm
share/asclock-gtk/analog/minute.xpm
share/asclock-gtk/analog/month.xpm
share/asclock-gtk/analog/second.xpm
share/asclock-gtk/analog/weekday.xpm
share/asclock-gtk/beats/beats.xpm
share/asclock-gtk/beats/classic
share/asclock-gtk/beats/clock.xpm
share/asclock-gtk/beats/config
share/asclock-gtk/beats/date.xpm
share/asclock-gtk/beats/hour.xpm
share/asclock-gtk/beats/led.xpm
share/asclock-gtk/beats/minute.xpm
share/asclock-gtk/beats/month.xpm
share/asclock-gtk/beats/second.xpm
share/asclock-gtk/beats/weekday.xpm
share/asclock-gtk/classic/beats.xpm
share/asclock-gtk/classic/classic
share/asclock-gtk/classic/clock.xpm
share/asclock-gtk/classic/config
share/asclock-gtk/classic/date.xpm
share/asclock-gtk/classic/hour.xpm
share/asclock-gtk/classic/led.xpm
share/asclock-gtk/classic/minute.xpm
share/asclock-gtk/classic/month.xpm
share/asclock-gtk/classic/second.xpm
share/asclock-gtk/classic/weekday.xpm
share/asclock-gtk/penguin/clock.xpm
share/asclock-gtk/penguin/config
share/asclock-gtk/penguin/date.xpm
share/asclock-gtk/penguin/led.xpm
share/asclock-gtk/penguin/month.xpm
share/asclock-gtk/shaped/beats.xpm
share/asclock-gtk/shaped/classic
share/asclock-gtk/shaped/clock.xpm
share/asclock-gtk/shaped/config
share/asclock-gtk/shaped/date.xpm
share/asclock-gtk/shaped/hour.xpm
share/asclock-gtk/shaped/led.xpm
share/asclock-gtk/shaped/minute.xpm
share/asclock-gtk/shaped/month.xpm
share/asclock-gtk/shaped/second.xpm
share/asclock-gtk/shaped/weekday.xpm

View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.5 2007/11/30 20:38:06 rillig Exp $
SHA1 (asclock-gtk-2.1.10beta.tar.gz) = 07b5f570842bf734ec5aff4d4f64fa075e9c1823
RMD160 (asclock-gtk-2.1.10beta.tar.gz) = 69337c30fa5c9d9b4e53c1542381a4519022bfee
Size (asclock-gtk-2.1.10beta.tar.gz) = 146621 bytes
SHA1 (patch-aa) = 6a708158cbee89c57d520c7e609ee5535f64e10f
SHA1 (patch-ab) = e8c82f738511ec8d0cf7ae87dcbaf2151199551b

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-aa,v 1.2 2001/07/16 00:52:52 jlam Exp $
--- ./Makefile.orig Fri Mar 26 02:08:33 1999
+++ ./Makefile Thu Oct 7 04:41:07 1999
@@ -1,16 +1,16 @@
CP=cp -f
MKDIR=mkdir -p
-CFLAGS = -Wall -g
+CFLAGS += -Wall
-GNOME_CC = gcc $(CFLAGS) -DASCLOCK_THEMES_DIR=\""/usr/local/share/asclock"\" \
+GNOME_CC = $(CC) $(CFLAGS) -DASCLOCK_THEMES_DIR=\""${PREFIX}/share/asclock-gtk/"\" \
-DASCLOCK_GNOME `gnome-config --cflags gnomeui gnome gtk`
GNOME_OBJS = .gnome/draw.o .gnome/asclock.o .gnome/config.o .gnome/rot.o .gnome/parser.o \
.gnome/symbols.o .gnome/dialogs.o .gnome/timezone.o .gnome/gnome_config.o
GNOME_LIBS = -lpanel -lpanel_applet `gnome-config --libs gnomeui gnome gtk gnorba`
-GTK_CC = gcc $(CFLAGS) -DASCLOCK_THEMES_DIR=\""/usr/local/share/asclock"\" \
+GTK_CC = $(CC) $(CFLAGS) -DASCLOCK_THEMES_DIR=\""${PREFIX}/share/asclock-gtk/"\" \
-DASCLOCK_GTK `$(CONFIG_PATH)gtk-config --cflags`
GTK_OBJS = .gtk/draw.o .gtk/asclock.o .gtk/config.o .gtk/rot.o .gtk/parser.o .gtk/symbols.o
GTK_LIBS = `$(CONFIG_PATH)gtk-config --libs`

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-ab,v 1.1 2007/11/30 20:38:06 rillig Exp $
The image data is not used anywhere.
--- asclock.h.orig 1999-03-26 06:49:34.000000000 +0000
+++ asclock.h 2007-11-30 20:36:03.000000000 +0000
@@ -75,17 +75,6 @@ extern gint visual_depth;
GdkVisual *visual;
GdkColormap *cmap;
-/* the xpm data */
-extern char *clock_xpm[];
-extern char *month_xpm[];
-extern char *weekday_xpm[];
-extern char *led_xpm[];
-extern char *beats_xpm[];
-extern char *date_xpm[];
-extern char *hour_xpm[];
-extern char *minute_xpm[];
-extern char *second_xpm[];
-
/* the filenames */
extern char clock_xpm_fn[MAX_PATH_LEN];
extern char month_xpm_fn[MAX_PATH_LEN];

5
time/asclock-xlib/DESCR Normal file
View File

@@ -0,0 +1,5 @@
ASClock is a dockable clock and calendar application with themes which
supports multiple languages, military and AM/PM time formats, and
program execution.
This version of asclock is an Xlib application.

View File

@@ -0,0 +1,37 @@
# $NetBSD: Makefile,v 1.21 2012/10/23 10:24:11 wiz Exp $
#
DISTNAME= asclock-xlib-2.0.11
PKGNAME= asclock-xlib-2.0b11
PKGREVISION= 1
CATEGORIES= x11 time
MASTER_SITES= ${MASTER_SITE_LOCAL} # www.asclock.org is no more
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Dockable clock and calendar with themes for X11
NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
WRKSRC= ${WRKDIR}/asclock-xlib
USE_IMAKE= YES
PLIST_SRC= ${PKGDIR}/PLIST \
${PKGDIR}/PLIST.themes
INSTALLATION_DIRS= share/doc/asclock-xlib share/asclock-xlib
pre-configure:
cd ${WRKSRC}; ${LN} -sf themes/classic default_theme
pre-install:
${RM} -f ${WRKSRC}/themes/Freeamp/Makefile*
post-install:
cd ${WRKSRC}; ${INSTALL_DATA} COPYING README.THEMES \
${DESTDIR}${PREFIX}/share/doc/asclock-xlib
${CP} -R ${WRKSRC}/themes/* ${DESTDIR}${PREFIX}/share/asclock-xlib
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${PREFIX}/share/asclock-xlib
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

4
time/asclock-xlib/PLIST Normal file
View File

@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:17:57 joerg Exp $
bin/asclock-xlib
share/doc/asclock-xlib/COPYING
share/doc/asclock-xlib/README.THEMES

View File

@@ -0,0 +1,80 @@
@comment $NetBSD: PLIST.themes,v 1.2 2009/06/14 18:17:57 joerg Exp $
share/asclock-xlib/Freeamp/beats.xpm
share/asclock-xlib/Freeamp/clock.xpm
share/asclock-xlib/Freeamp/config
share/asclock-xlib/Freeamp/date.xpm
share/asclock-xlib/Freeamp/hour.xpm
share/asclock-xlib/Freeamp/led.xpm
share/asclock-xlib/Freeamp/minute.xpm
share/asclock-xlib/Freeamp/month.xpm
share/asclock-xlib/Freeamp/old.clock.xpm
share/asclock-xlib/Freeamp/second.xpm
share/asclock-xlib/Freeamp/weekday.xpm
share/asclock-xlib/Newstone/beats.xpm
share/asclock-xlib/Newstone/clock.xpm
share/asclock-xlib/Newstone/config
share/asclock-xlib/Newstone/date.xpm
share/asclock-xlib/Newstone/hour.xpm
share/asclock-xlib/Newstone/led.xpm
share/asclock-xlib/Newstone/minute.xpm
share/asclock-xlib/Newstone/month.xpm
share/asclock-xlib/Newstone/second.xpm
share/asclock-xlib/Newstone/weekday.xpm
share/asclock-xlib/Orb/beats.xpm
share/asclock-xlib/Orb/clock.xpm
share/asclock-xlib/Orb/config
share/asclock-xlib/Orb/date.xpm
share/asclock-xlib/Orb/hour.xpm
share/asclock-xlib/Orb/led.xpm
share/asclock-xlib/Orb/minute.xpm
share/asclock-xlib/Orb/month.xpm
share/asclock-xlib/Orb/second.xpm
share/asclock-xlib/Orb/weekday.xpm
share/asclock-xlib/Stone/beats.xpm
share/asclock-xlib/Stone/clock.xpm
share/asclock-xlib/Stone/config
share/asclock-xlib/Stone/date.xpm
share/asclock-xlib/Stone/hour.xpm
share/asclock-xlib/Stone/led.xpm
share/asclock-xlib/Stone/minute.xpm
share/asclock-xlib/Stone/month.xpm
share/asclock-xlib/Stone/second.xpm
share/asclock-xlib/Stone/weekday.xpm
share/asclock-xlib/beats/beats.xpm
share/asclock-xlib/beats/classic
share/asclock-xlib/beats/clock.xpm
share/asclock-xlib/beats/config
share/asclock-xlib/beats/date.xpm
share/asclock-xlib/beats/hour.xpm
share/asclock-xlib/beats/led.xpm
share/asclock-xlib/beats/minute.xpm
share/asclock-xlib/beats/month.xpm
share/asclock-xlib/beats/second.xpm
share/asclock-xlib/beats/weekday.xpm
share/asclock-xlib/classic/beats.xpm
share/asclock-xlib/classic/classic
share/asclock-xlib/classic/clock.xpm
share/asclock-xlib/classic/config
share/asclock-xlib/classic/date.xpm
share/asclock-xlib/classic/hour.xpm
share/asclock-xlib/classic/led.xpm
share/asclock-xlib/classic/minute.xpm
share/asclock-xlib/classic/month.xpm
share/asclock-xlib/classic/second.xpm
share/asclock-xlib/classic/weekday.xpm
share/asclock-xlib/penguin/clock.xpm
share/asclock-xlib/penguin/config
share/asclock-xlib/penguin/date.xpm
share/asclock-xlib/penguin/led.xpm
share/asclock-xlib/penguin/month.xpm
share/asclock-xlib/shaped/beats.xpm
share/asclock-xlib/shaped/classic
share/asclock-xlib/shaped/clock.xpm
share/asclock-xlib/shaped/config
share/asclock-xlib/shaped/date.xpm
share/asclock-xlib/shaped/hour.xpm
share/asclock-xlib/shaped/led.xpm
share/asclock-xlib/shaped/minute.xpm
share/asclock-xlib/shaped/month.xpm
share/asclock-xlib/shaped/second.xpm
share/asclock-xlib/shaped/weekday.xpm

View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.5 2007/11/30 20:41:10 rillig Exp $
SHA1 (asclock-xlib-2.0.11.tar.gz) = 8f617f0f4dd07288aadbdb43677976fe34c234d5
RMD160 (asclock-xlib-2.0.11.tar.gz) = f351def305557ddde3836becd06d5a1841839d3b
Size (asclock-xlib-2.0.11.tar.gz) = 111832 bytes
SHA1 (patch-aa) = 50ca837b0fe1cbfec51ef36aca77066b4615cef5
SHA1 (patch-ab) = f8a897f457e3e6574d87579c71d032b34ef1d317
SHA1 (patch-ac) = 03b189e95976e927e03a88bffe5ac8886a99992c
SHA1 (patch-ad) = 97b7138ef47445420f458db103875343bd627ce7

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-aa,v 1.2 2001/07/16 00:55:42 jlam Exp $
--- ./Imakefile.orig Sun Mar 14 01:04:31 1999
+++ ./Imakefile Thu Oct 7 03:38:21 1999
@@ -1,13 +1,14 @@
-XPMLIB = -L/usr/lib/X11 -lXpm
+XPMLIB = -lXpm
DEPLIBS = $(DEPXLIB)
LOCAL_LIBRARIES = $(XPMLIB) $(XLIB)
LINTLIBS = $(LINTXLIB)
-CC = gcc -g
SRCS = asclock.c parser.c symbols.c config.c
OBJS = asclock.o parser.o symbols.o config.o
-ComplexProgramTarget(asclock)
+CPPFLAGS += -DPREFIX=\"${PREFIX}\"
+
+ComplexProgramTargetNoMan(asclock-xlib)

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-ab,v 1.1.1.1 2000/12/17 23:32:15 wiz Exp $
--- ./README.THEMES.orig Fri Feb 19 01:20:51 1999
+++ ./README.THEMES Thu Oct 7 03:36:59 1999
@@ -2,10 +2,6 @@
-----------------------
-SPECIAL NOTE FOR THE IMPATIENT: copy your themes to either
-/usr/local/share/asclock/ or /usr/share/asclock/
-
-
a theme consists of 8 xpms and a position file called 'config'.
all tiles within the same xpm must have the same width or height, except the

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-ac,v 1.1.1.1 2000/12/17 23:32:15 wiz Exp $
--- ./config.c.orig Sun Mar 14 18:09:13 1999
+++ ./config.c Thu Oct 7 03:36:59 1999
@@ -26,8 +26,7 @@
char *themes_directories[] = {
"./themes/",
- "/usr/local/share/asclock/",
- "/usr/share/asclock/",
+ PREFIX "/share/asclock-xlib/",
"",
NULL
};

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-ad,v 1.1 2007/11/30 20:41:10 rillig Exp $
The image data is not used anywhere.
--- asclock.h.orig 1999-03-14 23:08:08.000000000 +0000
+++ asclock.h 2007-11-30 20:39:16.000000000 +0000
@@ -37,17 +37,6 @@ extern symbol config_symbols[];
#define MAX_PATH_LEN 512
#define INT_TYPE 0;
-/* the xpm data */
-extern char *clock_xpm[];
-extern char *month_xpm[];
-extern char *weekday_xpm[];
-extern char *led_xpm[];
-extern char *date_xpm[];
-extern char *hour_xpm[];
-extern char *minute_xpm[];
-extern char *second_xpm[];
-extern char *beats_xpm[];
-
/* the filenames */
extern char clock_xpm_fn[MAX_PATH_LEN];
extern char month_xpm_fn[MAX_PATH_LEN];

4
time/asclock/DESCR Normal file
View File

@@ -0,0 +1,4 @@
The asclock is a clock written to emulate the date/time application on
the NEXTSTEP(tm) operating system. asclock supports multiple
languages, military and AM/PM time formats, program execution, and the
shape extension to X-Windows.

70
time/asclock/Makefile Normal file
View File

@@ -0,0 +1,70 @@
# $NetBSD: Makefile,v 1.33 2013/04/06 13:24:20 rodent Exp $
DISTNAME= asclock-classic-1.0
PKGNAME= asclock-1.0
PKGREVISION= 2
CATEGORIES= x11 time
MASTER_SITES= ${MASTER_SITE_LOCAL} # www.asclock.org is no more
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= NeXTstep-like clock and calendar
NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
WRKSRC= ${WRKDIR}/asclock1.0
USE_IMAKE= YES
LANGUAGES= en de pt nl no it sv es hu br fr cs ru uk sl id da
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
.include "../../mk/bsd.prefs.mk"
INSTALLATION_DIRS= bin libexec share/asclock-classic
# Translate to two-letter abbreviations in /usr/share/misc/language.
#
post-extract:
${MV} ${WRKSRC}/english ${WRKSRC}/en
${MV} ${WRKSRC}/german ${WRKSRC}/de
${MV} ${WRKSRC}/portuguese ${WRKSRC}/pt
${MV} ${WRKSRC}/dutch ${WRKSRC}/nl
${MV} ${WRKSRC}/norwegian ${WRKSRC}/no
${MV} ${WRKSRC}/italian ${WRKSRC}/it
${MV} ${WRKSRC}/swedish ${WRKSRC}/sv
${MV} ${WRKSRC}/spanish ${WRKSRC}/es
${MV} ${WRKSRC}/hungarian ${WRKSRC}/hu
${MV} ${WRKSRC}/breton ${WRKSRC}/br
${MV} ${WRKSRC}/french ${WRKSRC}/fr
${MV} ${WRKSRC}/czech ${WRKSRC}/cs
${MV} ${WRKSRC}/russian ${WRKSRC}/ru
${MV} ${WRKSRC}/ukrainian ${WRKSRC}/uk
${MV} ${WRKSRC}/slovene ${WRKSRC}/sl
${MV} ${WRKSRC}/indonesian ${WRKSRC}/id
${MV} ${WRKSRC}/danish ${WRKSRC}/da
pre-configure:
${RM} -f ${WRKSRC}/month.xpm ${WRKSRC}/weekday.xpm ${WRKSRC}/clk.xpm
${LN} -s ./en/month.xpm ${WRKSRC}/month.xpm
${LN} -s ./en/weekday.xpm ${WRKSRC}/weekday.xpm
${LN} -s ./xpm/color.xpm ${WRKSRC}/clk.xpm
do-install:
${SED} -e "s,@PREFIX@,${PREFIX},g" \
${FILESDIR}/asclock.sh > ${WRKDIR}/asclock.sh
${INSTALL_SCRIPT} ${WRKDIR}/asclock.sh ${DESTDIR}${PREFIX}/bin/asclock
${INSTALL_PROGRAM} ${WRKSRC}/asclock ${DESTDIR}${PREFIX}/libexec/asclock-classic
${CAT} ${PKGDIR}/PLIST > ${PLIST_SRC}
${INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/asclock.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/asclock.1
.for language in ${LANGUAGES}
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/asclock-classic/${language}
cd ${WRKSRC}/${language}; ${INSTALL_DATA} month.xpm weekday.xpm \
${DESTDIR}${PREFIX}/share/asclock-classic/${language}
@${ECHO} share/asclock-classic/${language}/month.xpm >> ${PLIST_SRC}
@${ECHO} share/asclock-classic/${language}/weekday.xpm >> ${PLIST_SRC}
.endfor
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

4
time/asclock/PLIST Normal file
View File

@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.2 2012/03/06 23:29:29 joerg Exp $
bin/asclock
man/man1/asclock.1
libexec/asclock-classic

8
time/asclock/distinfo Normal file
View File

@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.4 2005/02/23 19:14:53 wiz Exp $
SHA1 (asclock-classic-1.0.tar.gz) = 91e98efd49ec71d4018a4372744fa1edcca6172a
RMD160 (asclock-classic-1.0.tar.gz) = 538179ab6659072c0f52dbf93d5472065cebe7eb
Size (asclock-classic-1.0.tar.gz) = 33949 bytes
SHA1 (patch-aa) = 8d9f1cc5b3c035d5e06102b8464aaf9cf757e8cd
SHA1 (patch-ab) = 83d20644751d47bb5a90500075354541e43720be
SHA1 (patch-ac) = c86fe29211da8d4a884ce94a63eb13a83af7e030

View File

@@ -0,0 +1,36 @@
#!/bin/sh
#
# $NetBSD: asclock.sh,v 1.1.1.1 2000/12/17 23:32:12 wiz Exp $
args=''
while [ $# -gt 0 ]
do
case $1 in
-lang)
LANG=$2; shift
if [ -z "${LANG}" ]
then
echo "asclock: -lang needs a language option"
quit 1
fi
;;
*)
args="${args} $1"
;;
esac
shift
done
ASCLOCKDIR=@PREFIX@/share/asclock-classic
# default to American English
if [ -z "${LANG}" -o ! -d ${ASCLOCKDIR}/${LANG} ]
then
LANG=en
fi
monthxpm=${ASCLOCKDIR}/${LANG}/month.xpm
weekdayxpm=${ASCLOCKDIR}/${LANG}/weekday.xpm
args="${args} -monthxpm ${monthxpm} -weekdayxpm ${weekdayxpm}"
exec @PREFIX@/libexec/asclock-classic ${args}

View File

@@ -0,0 +1,11 @@
$NetBSD: patch-aa,v 1.2 2001/07/16 00:46:43 jlam Exp $
--- Imakefile.orig Wed Sep 16 11:56:00 1998
+++ Imakefile Thu Oct 28 13:11:11 1999
@@ -1,5 +1,5 @@
-XPMLIB = -L/usr/lib/X11 -lXpm
+XPMLIB = -lXpm
DEPLIBS = $(DEPXLIB)
LOCAL_LIBRARIES = $(XPMLIB) $(XLIB)

View File

@@ -0,0 +1,60 @@
$NetBSD: patch-ab,v 1.1.1.1 2000/12/17 23:32:13 wiz Exp $
--- asclock.c.orig Sat Sep 26 17:05:03 1998
+++ asclock.c Thu Oct 28 13:12:29 1999
@@ -19,6 +19,7 @@
int ONLYSHAPE=0; /* default value is noshape */
int ITBLINKS=1; /* default is blinking */
int ICONIFIED=0; /* default is not iconified */
+int ITDOCKS=0; /* default is not Docking mode */
int YEAR=0; /* default is to show time, not year */
/* led positions *************************************************************/
int twelve[5] = {5, 14, 24, 28, 37};
@@ -85,14 +86,15 @@
" -24 24 hour format",
" -exe <program> program to start on click",
" -led <color> color of the led",
-" -monthxpm <xpm> month xpm",
" -clockxpm <xpm> clock xpm",
+" -monthxpm <xpm> month xpm",
" -weekdayxpm <xpm> weekday xpm",
+" -year show year instead of time",
" -position [+|-]x[+|-]y position of asclock",
" -shape without groundplate",
" -noblink don't blink",
" -iconic start up as icon",
-" -year show year instead of time",
+" -dock Window Maker docking",
NULL
};
@@ -173,6 +175,9 @@
case 'n':
ITBLINKS = 0;
continue;
+ case 'd':
+ ITDOCKS = 1;
+ continue;
case 'y':
YEAR = 1;
continue;
@@ -256,13 +261,17 @@
XShapeCombineMask(dpy, iconwin, ShapeBounding, 0, 0, pixmask, ShapeSet);
}
- mywmhints.initial_state = (ICONIFIED ? IconicState : NormalState);
+ mywmhints.initial_state = ITDOCKS ? WithdrawnState :
+ (ICONIFIED ? IconicState : NormalState);
mywmhints.icon_window = iconwin;
mywmhints.icon_x = mysizehints.x;
mywmhints.icon_y = mysizehints.y;
- mywmhints.flags = StateHint | IconWindowHint | IconPositionHint;
+ mywmhints.window_group = win;
+ mywmhints.flags = StateHint | IconWindowHint | IconPositionHint
+ | WindowGroupHint;
XSetWMHints(dpy, win, &mywmhints);
+ XSetCommand(dpy, win, argv, argc);
XMapWindow(dpy,win);
InsertTime();

View File

@@ -0,0 +1,95 @@
$NetBSD: patch-ac,v 1.1.1.1 2000/12/17 23:32:13 wiz Exp $
--- asclock.man.orig Wed Sep 16 11:56:00 1998
+++ asclock.man Thu Oct 28 13:14:36 1999
@@ -1,14 +1,18 @@
-.TH asclock 0.99 "23 July 1996" asclock
+.TH asclock 1.0 "11 April 1998" asclock
.UC
.SH NAME
\fBasclock\fP \- the AfterStep clock
.SH SYNOPSIS
.B asclock
-[ -help] [-12 | -24] [-shape]
- [-position \fI[+|-]x[+|-]y\fP]
+[ -help] [-12 | -24] [-shape]
[-exe \fIprogram\fP]
[-led \fIcolor\fP]
- [-noblink] [-iconic]
+ [-clockxpm \fIxpm\fP]
+ [-monthxpm \fIxpm\fP]
+ [-weekdayxpm \fIxpm\fP]
+ [-year]
+ [-position \fI[+|-]x[+|-]y\fP]
+ [-noblink] [-iconic] [-dock]
.SH DESCRIPTION
The \fBasclock\fP is a clock written to emulate the date/time application on
the NEXTSTEP(tm) operating system. \fBasclock\fP supports multiple languages,
@@ -23,12 +27,17 @@
where options include:
-12 12 hour format
-24 24 hour format
+ -shape without groundplate
-exe <program> program to start on click
-led <color> color of the led
+ -clockxpm <xpm> clock xpm
+ -monthxpm <xpm> month xpm
+ -weekdayxpm <xpm> weekday xpm
+ -year show year instead of time
-position [+|-]x[+|-]y position of asclock
- -shape without groundplate
-noblink don't blink
-iconic start up as icon
+ -dock Window Maker docking
.fi
.RE
.IP "-12 or -24"
@@ -50,6 +59,22 @@
.I showrgb
.P (part of X11).
.RE
+.IP "-monthxpm <xpm>"
+.RS
+specifies the XPM file for the month pages.
+.RE
+.IP "-clockxpm <xpm>"
+.RS
+specifies the XPM file for the clock and calendar display.
+.RE
+.IP "-weekdayxpm <xpm>"
+.RS
+specifies the XPM file for the weekday pages.
+.RE
+.IP "-year"
+.RS
+shows the current the year in the display instead of the current time.
+.RE
.IP "-position [+|-]x[+|-]y "
.RS
specifies the starting position of \fBasclock\fP. The [+|-] works like the standard X-Windows x/y geometry option.
@@ -66,6 +91,10 @@
.RS
This gives weird output with AfterStep, so don't bother. It's for mwm and other wm's with no hint functionality.
.RE
+.IP "-dock"
+.RS
+starts \fBasclock\fP in docking mode. This option is necessary to dock \fBasclock\fP in the Window Maker dock. \fBasclock\fP ignores the -iconic option when started in docking mode.
+.RE
.SH INVOCATION
\fBasclock\fP can be called from one of many ways. The most common invocation
is the command line:
@@ -86,6 +115,14 @@
will cause \fBasclock\fP to use the shape extensions so that it will be a
button on the \fBWharf (1)\fP button bar under the \fBafterstep (1)\fP
window manager.
+
+If you run Window Maker then you should use the "-dock" option:
+.nf
+
+ [user@host] ~% asclock -shape -12 -dock &
+
+.fi
+and then drag the icon to the dock.
.SH BUGS
we don't have bugs :)
.SH COPYRIGHTS

5
time/bbdate/DESCR Normal file
View File

@@ -0,0 +1,5 @@
This tool displays the date in an decorated window, simulating the
look of the Blackbox toolbar (Blackbox is a Windowmanager for X11).
To copy this look a great deal of the code is taken from Blackbox.
You can find blackbox in pkgsrc/wm/blackbox.

17
time/bbdate/Makefile Normal file
View File

@@ -0,0 +1,17 @@
# $NetBSD: Makefile,v 1.14 2012/10/08 13:04:17 asau Exp $
#
DISTNAME= bbdate-0.2.4
PKGREVISION= 1
CATEGORIES= time
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bbtools/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://bbtools.sourceforge.net/download.php?file=3
COMMENT= Display the current date
GNU_CONFIGURE= YES
USE_LANGUAGES= c c++
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

6
time/bbdate/PLIST Normal file
View File

@@ -0,0 +1,6 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 21:38:07 joerg Exp $
bin/bbdate
share/bbtools/README.bbdate
share/bbtools/bbdate.conf
share/bbtools/bbdate.nobb
share/bbtools/bbdate.style

7
time/bbdate/distinfo Normal file
View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.3 2005/02/23 19:14:53 wiz Exp $
SHA1 (bbdate-0.2.4.tar.gz) = c48052eec337dfdca5fdfe6b87cd2bccf3a03921
RMD160 (bbdate-0.2.4.tar.gz) = a6af9817069f09fe359679feb6128be8b7096d0d
Size (bbdate-0.2.4.tar.gz) = 60644 bytes
SHA1 (patch-aa) = f3dcd43ff15b065b2e4e63a07743178490c1634d
SHA1 (patch-ab) = 4ba9c43992b476e8d515fb56fb18dad586533a3a

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-aa,v 1.2 2004/08/27 06:29:10 jlam Exp $
--- Makefile.in.orig Fri Jul 18 11:31:51 2003
+++ Makefile.in Fri Jul 18 11:32:49 2003
@@ -80,7 +80,7 @@
DEFS = @DEFS@ -I. -I$(srcdir)
-LDFLAGS = @LDFLAGS@
+LDFLAGS = @LDFLAGS@ ${COMPILER_RPATH_FLAG}${X11PREFIX}/lib
LIBS = @LIBS@
X_CFLAGS = @X_CFLAGS@
X_LIBS = @X_LIBS@

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.1.1.1 2003/07/18 15:53:15 jschauma Exp $
--- data/Makefile.in.orig Fri Jul 18 11:46:28 2003
+++ data/Makefile.in Fri Jul 18 11:46:55 2003
@@ -67,7 +67,7 @@
configdir = $(datadir)/bbtools
CLEANFILES = bbtoolsrc
-config_DATA = bbtoolsrc.in bbdate.conf bbdate.style bbdate.nobb README.bbdate
+config_DATA = bbdate.conf bbdate.style bbdate.nobb README.bbdate
EXTRA_DIST = $(config_DATA)

4
time/cairo-clock/DESCR Normal file
View File

@@ -0,0 +1,4 @@
MacSlow's Cairo-Clock is an analog clock displaying the system time.
It leverages the visual features offered by Xorg 6.9/7.0 in combination with
a compositing manager (e.g. xcompmgr), GTK+ 2.8.x, and Cairo 1.0.2
to produce a time display with pretty pixels.

24
time/cairo-clock/Makefile Normal file
View File

@@ -0,0 +1,24 @@
# $NetBSD: Makefile,v 1.33 2013/06/06 12:55:07 wiz Exp $
#
DISTNAME= cairo-clock_0.3.3-1
PKGNAME= cairo-clock-0.3.3
PKGREVISION= 25
CATEGORIES= time
MASTER_SITES= http://macslow.thepimp.net/projects/cairo-clock/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://macslow.thepimp.net/?page_id=23
COMMENT= Analog clock drawn with vector-graphics
WRKSRC= ${WRKDIR}/cairo-clock-0.3.3
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= intltool pkg-config msgfmt
.include "../../x11/gtk2/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../graphics/librsvg/buildlink3.mk"
.include "../../devel/libglade/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"

251
time/cairo-clock/PLIST Normal file
View File

@@ -0,0 +1,251 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:17:57 joerg Exp $
bin/cairo-clock
man/man1/cairo-clock.1
share/applications/cairo-clock.desktop
share/cairo-clock/glade/cairo-clock.glade
share/cairo-clock/pixmaps/cairo-clock-logo.png
share/cairo-clock/themes/antique/clock-drop-shadow.svg
share/cairo-clock/themes/antique/clock-face-shadow.svg
share/cairo-clock/themes/antique/clock-face.svg
share/cairo-clock/themes/antique/clock-frame.svg
share/cairo-clock/themes/antique/clock-glass.svg
share/cairo-clock/themes/antique/clock-hour-hand-shadow.svg
share/cairo-clock/themes/antique/clock-hour-hand.svg
share/cairo-clock/themes/antique/clock-marks.svg
share/cairo-clock/themes/antique/clock-minute-hand-shadow.svg
share/cairo-clock/themes/antique/clock-minute-hand.svg
share/cairo-clock/themes/antique/clock-second-hand-shadow.svg
share/cairo-clock/themes/antique/clock-second-hand.svg
share/cairo-clock/themes/default-24/clock-drop-shadow.svg
share/cairo-clock/themes/default-24/clock-face-shadow.svg
share/cairo-clock/themes/default-24/clock-face.svg
share/cairo-clock/themes/default-24/clock-frame.svg
share/cairo-clock/themes/default-24/clock-glass.svg
share/cairo-clock/themes/default-24/clock-hour-hand-shadow.svg
share/cairo-clock/themes/default-24/clock-hour-hand.svg
share/cairo-clock/themes/default-24/clock-marks.svg
share/cairo-clock/themes/default-24/clock-minute-hand-shadow.svg
share/cairo-clock/themes/default-24/clock-minute-hand.svg
share/cairo-clock/themes/default-24/clock-second-hand-shadow.svg
share/cairo-clock/themes/default-24/clock-second-hand.svg
share/cairo-clock/themes/default/clock-drop-shadow.svg
share/cairo-clock/themes/default/clock-face-shadow.svg
share/cairo-clock/themes/default/clock-face.svg
share/cairo-clock/themes/default/clock-frame.svg
share/cairo-clock/themes/default/clock-glass.svg
share/cairo-clock/themes/default/clock-hour-hand-shadow.svg
share/cairo-clock/themes/default/clock-hour-hand.svg
share/cairo-clock/themes/default/clock-marks.svg
share/cairo-clock/themes/default/clock-minute-hand-shadow.svg
share/cairo-clock/themes/default/clock-minute-hand.svg
share/cairo-clock/themes/default/clock-second-hand-shadow.svg
share/cairo-clock/themes/default/clock-second-hand.svg
share/cairo-clock/themes/fdo/clock-drop-shadow.svg
share/cairo-clock/themes/fdo/clock-face-shadow.svg
share/cairo-clock/themes/fdo/clock-face.svg
share/cairo-clock/themes/fdo/clock-frame.svg
share/cairo-clock/themes/fdo/clock-glass.svg
share/cairo-clock/themes/fdo/clock-hour-hand-shadow.svg
share/cairo-clock/themes/fdo/clock-hour-hand.svg
share/cairo-clock/themes/fdo/clock-marks.svg
share/cairo-clock/themes/fdo/clock-minute-hand-shadow.svg
share/cairo-clock/themes/fdo/clock-minute-hand.svg
share/cairo-clock/themes/fdo/clock-second-hand-shadow.svg
share/cairo-clock/themes/fdo/clock-second-hand.svg
share/cairo-clock/themes/funky/clock-drop-shadow.svg
share/cairo-clock/themes/funky/clock-face-shadow.svg
share/cairo-clock/themes/funky/clock-face.svg
share/cairo-clock/themes/funky/clock-frame.svg
share/cairo-clock/themes/funky/clock-glass.svg
share/cairo-clock/themes/funky/clock-hour-hand-shadow.svg
share/cairo-clock/themes/funky/clock-hour-hand.svg
share/cairo-clock/themes/funky/clock-marks.svg
share/cairo-clock/themes/funky/clock-minute-hand-shadow.svg
share/cairo-clock/themes/funky/clock-minute-hand.svg
share/cairo-clock/themes/funky/clock-second-hand-shadow.svg
share/cairo-clock/themes/funky/clock-second-hand.svg
share/cairo-clock/themes/glassy/clock-drop-shadow.svg
share/cairo-clock/themes/glassy/clock-face-shadow.svg
share/cairo-clock/themes/glassy/clock-face.svg
share/cairo-clock/themes/glassy/clock-frame.svg
share/cairo-clock/themes/glassy/clock-glass.svg
share/cairo-clock/themes/glassy/clock-hour-hand-shadow.svg
share/cairo-clock/themes/glassy/clock-hour-hand.svg
share/cairo-clock/themes/glassy/clock-marks.svg
share/cairo-clock/themes/glassy/clock-minute-hand-shadow.svg
share/cairo-clock/themes/glassy/clock-minute-hand.svg
share/cairo-clock/themes/glassy/clock-second-hand-shadow.svg
share/cairo-clock/themes/glassy/clock-second-hand.svg
share/cairo-clock/themes/gremlin-24/clock-drop-shadow.svg
share/cairo-clock/themes/gremlin-24/clock-face-shadow.svg
share/cairo-clock/themes/gremlin-24/clock-face.svg
share/cairo-clock/themes/gremlin-24/clock-frame.svg
share/cairo-clock/themes/gremlin-24/clock-glass.svg
share/cairo-clock/themes/gremlin-24/clock-hour-hand-shadow.svg
share/cairo-clock/themes/gremlin-24/clock-hour-hand.svg
share/cairo-clock/themes/gremlin-24/clock-marks.svg
share/cairo-clock/themes/gremlin-24/clock-minute-hand-shadow.svg
share/cairo-clock/themes/gremlin-24/clock-minute-hand.svg
share/cairo-clock/themes/gremlin-24/clock-second-hand-shadow.svg
share/cairo-clock/themes/gremlin-24/clock-second-hand.svg
share/cairo-clock/themes/gremlin/clock-drop-shadow.svg
share/cairo-clock/themes/gremlin/clock-face-shadow.svg
share/cairo-clock/themes/gremlin/clock-face.svg
share/cairo-clock/themes/gremlin/clock-frame.svg
share/cairo-clock/themes/gremlin/clock-glass.svg
share/cairo-clock/themes/gremlin/clock-hour-hand-shadow.svg
share/cairo-clock/themes/gremlin/clock-hour-hand.svg
share/cairo-clock/themes/gremlin/clock-marks.svg
share/cairo-clock/themes/gremlin/clock-minute-hand-shadow.svg
share/cairo-clock/themes/gremlin/clock-minute-hand.svg
share/cairo-clock/themes/gremlin/clock-second-hand-shadow.svg
share/cairo-clock/themes/gremlin/clock-second-hand.svg
share/cairo-clock/themes/ipulse-24/clock-drop-shadow.svg
share/cairo-clock/themes/ipulse-24/clock-face-shadow.svg
share/cairo-clock/themes/ipulse-24/clock-face.svg
share/cairo-clock/themes/ipulse-24/clock-frame.svg
share/cairo-clock/themes/ipulse-24/clock-glass.svg
share/cairo-clock/themes/ipulse-24/clock-hour-hand-shadow.svg
share/cairo-clock/themes/ipulse-24/clock-hour-hand.svg
share/cairo-clock/themes/ipulse-24/clock-marks.svg
share/cairo-clock/themes/ipulse-24/clock-minute-hand-shadow.svg
share/cairo-clock/themes/ipulse-24/clock-minute-hand.svg
share/cairo-clock/themes/ipulse-24/clock-second-hand-shadow.svg
share/cairo-clock/themes/ipulse-24/clock-second-hand.svg
share/cairo-clock/themes/ipulse/clock-drop-shadow.svg
share/cairo-clock/themes/ipulse/clock-face-shadow.svg
share/cairo-clock/themes/ipulse/clock-face.svg
share/cairo-clock/themes/ipulse/clock-frame.svg
share/cairo-clock/themes/ipulse/clock-glass.svg
share/cairo-clock/themes/ipulse/clock-hour-hand-shadow.svg
share/cairo-clock/themes/ipulse/clock-hour-hand.svg
share/cairo-clock/themes/ipulse/clock-marks.svg
share/cairo-clock/themes/ipulse/clock-minute-hand-shadow.svg
share/cairo-clock/themes/ipulse/clock-minute-hand.svg
share/cairo-clock/themes/ipulse/clock-second-hand-shadow.svg
share/cairo-clock/themes/ipulse/clock-second-hand.svg
share/cairo-clock/themes/quartz-24/clock-drop-shadow.svg
share/cairo-clock/themes/quartz-24/clock-face-shadow.svg
share/cairo-clock/themes/quartz-24/clock-face.svg
share/cairo-clock/themes/quartz-24/clock-frame.svg
share/cairo-clock/themes/quartz-24/clock-glass.svg
share/cairo-clock/themes/quartz-24/clock-hour-hand-shadow.svg
share/cairo-clock/themes/quartz-24/clock-hour-hand.svg
share/cairo-clock/themes/quartz-24/clock-marks.svg
share/cairo-clock/themes/quartz-24/clock-minute-hand-shadow.svg
share/cairo-clock/themes/quartz-24/clock-minute-hand.svg
share/cairo-clock/themes/quartz-24/clock-second-hand-shadow.svg
share/cairo-clock/themes/quartz-24/clock-second-hand.svg
share/cairo-clock/themes/radium-24/clock-drop-shadow.svg
share/cairo-clock/themes/radium-24/clock-face-shadow.svg
share/cairo-clock/themes/radium-24/clock-face.svg
share/cairo-clock/themes/radium-24/clock-frame.svg
share/cairo-clock/themes/radium-24/clock-glass.svg
share/cairo-clock/themes/radium-24/clock-hour-hand-shadow.svg
share/cairo-clock/themes/radium-24/clock-hour-hand.svg
share/cairo-clock/themes/radium-24/clock-marks.svg
share/cairo-clock/themes/radium-24/clock-minute-hand-shadow.svg
share/cairo-clock/themes/radium-24/clock-minute-hand.svg
share/cairo-clock/themes/radium-24/clock-second-hand-shadow.svg
share/cairo-clock/themes/radium-24/clock-second-hand.svg
share/cairo-clock/themes/radium/clock-drop-shadow.svg
share/cairo-clock/themes/radium/clock-face-shadow.svg
share/cairo-clock/themes/radium/clock-face.svg
share/cairo-clock/themes/radium/clock-frame.svg
share/cairo-clock/themes/radium/clock-glass.svg
share/cairo-clock/themes/radium/clock-hour-hand-shadow.svg
share/cairo-clock/themes/radium/clock-hour-hand.svg
share/cairo-clock/themes/radium/clock-marks.svg
share/cairo-clock/themes/radium/clock-minute-hand-shadow.svg
share/cairo-clock/themes/radium/clock-minute-hand.svg
share/cairo-clock/themes/radium/clock-second-hand-shadow.svg
share/cairo-clock/themes/radium/clock-second-hand.svg
share/cairo-clock/themes/silvia-24/clock-drop-shadow.svg
share/cairo-clock/themes/silvia-24/clock-face-shadow.svg
share/cairo-clock/themes/silvia-24/clock-face.svg
share/cairo-clock/themes/silvia-24/clock-frame.svg
share/cairo-clock/themes/silvia-24/clock-glass.svg
share/cairo-clock/themes/silvia-24/clock-hour-hand-shadow.svg
share/cairo-clock/themes/silvia-24/clock-hour-hand.svg
share/cairo-clock/themes/silvia-24/clock-marks.svg
share/cairo-clock/themes/silvia-24/clock-minute-hand-shadow.svg
share/cairo-clock/themes/silvia-24/clock-minute-hand.svg
share/cairo-clock/themes/silvia-24/clock-second-hand-shadow.svg
share/cairo-clock/themes/silvia-24/clock-second-hand.svg
share/cairo-clock/themes/silvia/clock-drop-shadow.svg
share/cairo-clock/themes/silvia/clock-face-shadow.svg
share/cairo-clock/themes/silvia/clock-face.svg
share/cairo-clock/themes/silvia/clock-frame.svg
share/cairo-clock/themes/silvia/clock-glass.svg
share/cairo-clock/themes/silvia/clock-hour-hand-shadow.svg
share/cairo-clock/themes/silvia/clock-hour-hand.svg
share/cairo-clock/themes/silvia/clock-marks.svg
share/cairo-clock/themes/silvia/clock-minute-hand-shadow.svg
share/cairo-clock/themes/silvia/clock-minute-hand.svg
share/cairo-clock/themes/silvia/clock-second-hand-shadow.svg
share/cairo-clock/themes/silvia/clock-second-hand.svg
share/cairo-clock/themes/simple-24/clock-drop-shadow.svg
share/cairo-clock/themes/simple-24/clock-face-shadow.svg
share/cairo-clock/themes/simple-24/clock-face.svg
share/cairo-clock/themes/simple-24/clock-frame.svg
share/cairo-clock/themes/simple-24/clock-glass.svg
share/cairo-clock/themes/simple-24/clock-hour-hand-shadow.svg
share/cairo-clock/themes/simple-24/clock-hour-hand.svg
share/cairo-clock/themes/simple-24/clock-marks.svg
share/cairo-clock/themes/simple-24/clock-minute-hand-shadow.svg
share/cairo-clock/themes/simple-24/clock-minute-hand.svg
share/cairo-clock/themes/simple-24/clock-second-hand-shadow.svg
share/cairo-clock/themes/simple-24/clock-second-hand.svg
share/cairo-clock/themes/simple/clock-drop-shadow.svg
share/cairo-clock/themes/simple/clock-face-shadow.svg
share/cairo-clock/themes/simple/clock-face.svg
share/cairo-clock/themes/simple/clock-frame.svg
share/cairo-clock/themes/simple/clock-glass.svg
share/cairo-clock/themes/simple/clock-hour-hand-shadow.svg
share/cairo-clock/themes/simple/clock-hour-hand.svg
share/cairo-clock/themes/simple/clock-marks.svg
share/cairo-clock/themes/simple/clock-minute-hand-shadow.svg
share/cairo-clock/themes/simple/clock-minute-hand.svg
share/cairo-clock/themes/simple/clock-second-hand-shadow.svg
share/cairo-clock/themes/simple/clock-second-hand.svg
share/cairo-clock/themes/tango/clock-drop-shadow.svg
share/cairo-clock/themes/tango/clock-face-shadow.svg
share/cairo-clock/themes/tango/clock-face.svg
share/cairo-clock/themes/tango/clock-frame.svg
share/cairo-clock/themes/tango/clock-glass.svg
share/cairo-clock/themes/tango/clock-hour-hand-shadow.svg
share/cairo-clock/themes/tango/clock-hour-hand.svg
share/cairo-clock/themes/tango/clock-marks.svg
share/cairo-clock/themes/tango/clock-minute-hand-shadow.svg
share/cairo-clock/themes/tango/clock-minute-hand.svg
share/cairo-clock/themes/tango/clock-second-hand-shadow.svg
share/cairo-clock/themes/tango/clock-second-hand.svg
share/cairo-clock/themes/zen/clock-drop-shadow.svg
share/cairo-clock/themes/zen/clock-face-shadow.svg
share/cairo-clock/themes/zen/clock-face.svg
share/cairo-clock/themes/zen/clock-frame.svg
share/cairo-clock/themes/zen/clock-glass.svg
share/cairo-clock/themes/zen/clock-hour-hand-shadow.svg
share/cairo-clock/themes/zen/clock-hour-hand.svg
share/cairo-clock/themes/zen/clock-marks.svg
share/cairo-clock/themes/zen/clock-minute-hand-shadow.svg
share/cairo-clock/themes/zen/clock-minute-hand.svg
share/cairo-clock/themes/zen/clock-second-hand-shadow.svg
share/cairo-clock/themes/zen/clock-second-hand.svg
share/locale/da/LC_MESSAGES/cairo-clock.mo
share/locale/de/LC_MESSAGES/cairo-clock.mo
share/locale/en_GB/LC_MESSAGES/cairo-clock.mo
share/locale/es/LC_MESSAGES/cairo-clock.mo
share/locale/fi/LC_MESSAGES/cairo-clock.mo
share/locale/fr/LC_MESSAGES/cairo-clock.mo
share/locale/it/LC_MESSAGES/cairo-clock.mo
share/locale/nl/LC_MESSAGES/cairo-clock.mo
share/locale/pl/LC_MESSAGES/cairo-clock.mo
share/locale/pt_PT/LC_MESSAGES/cairo-clock.mo
share/locale/ru/LC_MESSAGES/cairo-clock.mo
share/locale/sl/LC_MESSAGES/cairo-clock.mo
share/locale/sv/LC_MESSAGES/cairo-clock.mo
share/locale/tr/LC_MESSAGES/cairo-clock.mo
share/locale/zh_CN/LC_MESSAGES/cairo-clock.mo
share/locale/zh_TW/LC_MESSAGES/cairo-clock.mo
share/pixmaps/cairo-clock.png

View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.3 2012/07/03 17:31:01 joerg Exp $
SHA1 (cairo-clock_0.3.3-1.tar.gz) = 921c1f6468c913ebbd692aeb5f2dde58be6b4006
RMD160 (cairo-clock_0.3.3-1.tar.gz) = c5fa101a51884a04ade0185672276d5a828063f8
Size (cairo-clock_0.3.3-1.tar.gz) = 1248398 bytes
SHA1 (patch-ab) = 4f5b453c7a2edfeb79a84a17b31ec46630c3539c
SHA1 (patch-src_Makefile.in) = 7c3d78243d382abf305c5fb16da30419b51733f7

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.2 2007/09/03 16:28:38 drochner Exp $
--- man/Makefile.in.orig 2007-08-20 06:24:15.000000000 +0200
+++ man/Makefile.in
@@ -208,7 +208,7 @@ sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
-manualdir = $(datadir)/man/man1
+manualdir = $(mandir)/man1
manual_DATA = cairo-clock.1.gz
EXTRA_DIST = $(manual_DATA)
all: all-am

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-src_Makefile.in,v 1.1 2012/07/03 17:30:41 joerg Exp $
--- src/Makefile.in.orig 2012-07-03 14:26:11.000000000 +0000
+++ src/Makefile.in
@@ -221,7 +221,7 @@ sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
-cairo_clock_LDFLAGS = -Wl, --export-dynamic
+cairo_clock_LDFLAGS = -Wl,--export-dynamic
cairo_clock_LDADD = \
$(GLIB_LIBS) \
$(GTK_LIBS) \

24
time/cal/DESCR Normal file
View File

@@ -0,0 +1,24 @@
CAL is a nicely-enhanced version of the unix `cal' command. Features:
* Hilights today's date when displaying a monthly calendar.
* Displays an optional user-definable list of `special day' descriptions (like
appointments) to the right of the monthly calendar display. Cal can be set
optionally to ignore appointments older than the current day. Next month's
appointments are shown if there is room to do so. Multiple appointment data
files may also be specified on the commandline.
* You can specify your own appointment and color definition files on the
commandline, or use the defaults.
* Date descriptions can display "years since" a given year, useful for
birthdays and anniversaries.
* Completely configurable colors - eight separate color attributes.
* No ANSI driver needed for colors, and the output may be redirected anywhere,
just like the unix version. However, ANSI color control may be enabled (e.g.
for unix) with a #define in the source code.
* Commandline-compatible with unix `cal' command with enhanced switch settings.
Requests, bug reports, suggestions, donations, and so forth may be sent to:
Attn: Alex Matulich
Unicorn Research Corporation
4621 N. Landmark Drive
Orlando, FL 32817-1235
USA
407-657-4974 FAX 407-657-6149
or send e-mail to matulich_a@seaa.navsea.navy.mil.

28
time/cal/Makefile Normal file
View File

@@ -0,0 +1,28 @@
# $NetBSD: Makefile,v 1.17 2012/10/08 13:04:17 asau Exp $
DISTNAME= cal-3.5
PKGREVISION= 1
CATEGORIES= time
MASTER_SITES= ${MASTER_SITE_SUNSITE:=utils/shell/}
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Enhanced color version of standard calendar utility
WRKSRC= ${WRKDIR}/cal-3.5/source
MAKE_FILE= makefile.unx
BUILD_TARGET= cal
PKG_SYSCONFSUBDIR= cal
CFLAGS+= -DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\""
EGDIR= ${PREFIX}/share/examples/cal
# CONF_FILES not used as calcol and caldat are optional.
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${EGDIR}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cal ${DESTDIR}${PREFIX}/bin/cal
${INSTALL_MAN} ${WRKSRC}/cal.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/cal.1
${INSTALL_DATA} ${WRKDIR}/cal-3.5/cal.col ${DESTDIR}${EGDIR}/calcol
${INSTALL_DATA} ${WRKDIR}/cal-3.5/cal.dat ${DESTDIR}${EGDIR}/caldat
.include "../../mk/bsd.pkg.mk"

5
time/cal/PLIST Normal file
View File

@@ -0,0 +1,5 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:17:57 joerg Exp $
bin/cal
man/man1/cal.1
share/examples/cal/calcol
share/examples/cal/caldat

7
time/cal/distinfo Normal file
View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.7 2005/02/23 19:14:53 wiz Exp $
SHA1 (cal-3.5.tar.gz) = 4be982ce4576db6e2db8f8006b7bffa016d6af9d
RMD160 (cal-3.5.tar.gz) = 85063624b66d93c5dbc41c2cd88e2b21ddffb32d
Size (cal-3.5.tar.gz) = 47645 bytes
SHA1 (patch-aa) = 59faa366d366cf9ed265c7f0664b5d09e1c671d1
SHA1 (patch-ab) = 7d7da6560743f1163b0524bbd47755437bd4776c

15
time/cal/patches/patch-aa Normal file
View File

@@ -0,0 +1,15 @@
$NetBSD: patch-aa,v 1.3 2003/09/24 10:53:36 jmmv Exp $
--- makefile.unx.orig Mon Mar 4 21:36:27 1996
+++ makefile.unx Wed Sep 24 11:37:37 2003
@@ -7,8 +7,8 @@
# To use, enter "make -f makefile.unx"
RM=rm -f
-CC=gcc
-CFLAGS=-O -Wall -DUNIX -DUSE_REMINDER
+#CC=gcc
+CFLAGS+=-DUNIX -DUSE_REMINDER
BINDIR=/usr/bin
MANDIR=/usr/man

34
time/cal/patches/patch-ab Normal file
View File

@@ -0,0 +1,34 @@
$NetBSD: patch-ab,v 1.5 2005/01/25 03:37:29 tv Exp $
--- cal.c.orig 1996-07-11 15:36:33.000000000 -0400
+++ cal.c
@@ -122,6 +122,7 @@ BASIC DATA STRUCTURE:
#include <ctype.h>
#include <string.h>
#include <sys/types.h>
+#include <sys/param.h> /*NetBSD*/
#ifndef max
#define max(a,b) (((a)>(b))?(a):(b))
@@ -130,6 +131,10 @@ BASIC DATA STRUCTURE:
/* Note: Other unix systems may require this next re-define to work. */
/* I believe that SCO is one such system. Please send in any fixes */
/* needed to get your system running. */
+#if (defined(BSD) && BSD >= 199306) || defined (sun) || defined(__sgi) || defined(__INTERIX)
+#define stricmp(a,b) strcasecmp(a,b) /* case-insensitive string comparison */
+#endif
+
#ifdef __linux__ /* Make linux compatible with stricmp() */
#define stricmp(a,b) strcasecmp(a,b) /* case-insensitive string comparison */
#endif
@@ -1401,8 +1406,8 @@ FILE *efopen(const char *file, const cha
strcpy(str, ".");
strcpy(str, file);
if ((fp = fopen(str, mode)) == NULL) {
- /* If still not found then look in a lib directory */
- strcpy(str, "/usr/lib/");
+ /* If still not found then look in config directory */
+ strcpy(str, PKG_SYSCONFDIR "/");
strcat(str,file);
fp = fopen(str, mode);
}

View File

@@ -0,0 +1,10 @@
Cardboard Schedule is a project management package implemented in
Java using the Swing UI toolkit. It allows for tracking of tasks
and resources related to a number of projects.
Although originally distributed for Windows, Cardboard Schedule is
implemented in Java and runs fine under Unix.
This package installs a 30-day demo version of Cardboard Schedule.
You can contact Cardboard Nu at their website. http://cardboard.nu
to purchase a full license.

View File

@@ -0,0 +1,9 @@
===========================================================================
$NetBSD: MESSAGE,v 1.4 2005/05/09 20:40:07 kristerw Exp $
A demo version of Cardboard Schedule has been installed.
Please read ${PREFIX}/lib/cardboard-schedule/license.txt
before using Cardboard Schedule.
===========================================================================

View File

@@ -0,0 +1,67 @@
# $NetBSD: Makefile,v 1.29 2013/04/06 12:04:02 rodent Exp $
#
DISTNAME= cs113ins
PKGNAME= cardboard-schedule-1.13
PKGREVISION= 1
CATEGORIES= time x11
MASTER_SITES= http://cardboard.nu/downloads/
EXTRACT_SUFX= .exe
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://cardboard.nu/docs/software.html
COMMENT= Project and resource management software implemented in Java/Swing
LICENSE= cardboard-schedule-license
RESTRICTED= Distribution permitted only of unmodified distfile at no charge.
NO_BIN_ON_FTP= ${RESTRICTED}
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
USE_X11BASE= yes
USE_TOOLS+= pax gtar
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
BUILD_DEPENDS+= unzip-[0-9]*:../../archivers/unzip
UNZIP_CMD?= unzip
.else
USE_TOOLS+= unzip
.endif
WRKSRC= ${WRKDIR}
EXTRACT_CMD= cd ${WRKDIR:Q} && { \
${UNZIP_CMD} $$extract_file \
|| ${TEST} -f InstallerData/Installer.zip; \
}
NO_BUILD= yes
CSFILES= cs/images/Logo2.gif \
cs/images/Logo.gif \
stage/cs.jar \
stage/readme.txt \
stage/jhbasic.jar \
stage/license.txt \
stage/CsHelp.jar
INSTALLATION_DIRS= bin lib/cardboard-schedule
SUBST_CLASSES+= cs
SUBST_STAGE.cs= do-configure
SUBST_FILES.cs= csched.sh
SUBST_SED.cs+= -e 's,@PREFIX@,${PREFIX},g'
SUBST_SED.cs+= -e 's,@LOCALBASE@,${LOCALBASE},g'
SUBST_SED.cs+= -e 's,@JAVA_HOME@,${PKG_JAVA_HOME},g'
post-extract:
cd ${WRKDIR} && ${UNZIP_CMD} InstallerData/Installer.zip
${CP} ${FILESDIR:Q}/csched.sh ${WRKDIR:Q}
do-install:
cd ${WRKDIR}/C:/projects && pax -rw ${CSFILES} ${DESTDIR}${PREFIX}/lib/cardboard-schedule
${INSTALL_SCRIPT} ${WRKDIR:Q}/csched.sh ${DESTDIR}${PREFIX}/bin/csched
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,9 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:17:57 joerg Exp $
bin/csched
lib/cardboard-schedule/cs/images/Logo.gif
lib/cardboard-schedule/cs/images/Logo2.gif
lib/cardboard-schedule/stage/CsHelp.jar
lib/cardboard-schedule/stage/cs.jar
lib/cardboard-schedule/stage/jhbasic.jar
lib/cardboard-schedule/stage/license.txt
lib/cardboard-schedule/stage/readme.txt

View File

@@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.3 2005/02/23 19:14:53 wiz Exp $
SHA1 (cs113ins.exe) = 79c6c35176a4ea79d109906e24fd5fcd93543051
RMD160 (cs113ins.exe) = 43f103255382187ffcd0bf6d683de524f031afc5
Size (cs113ins.exe) = 3258086 bytes

View File

@@ -0,0 +1,2 @@
#!/bin/sh
@JAVA_HOME@/bin/java -cp @PREFIX@/lib/cardboard-schedule/stage/cs.jar:@PREFIX@/lib/cardboard-schedule/stage/CsHelp.jar:@PREFIX@/lib/cardboard-schedule/stage/jhbasic.jar:@LOCALBASE@/lib/java/swingall.jar:${CLASSPATH} avg.cs.gui.CsMainApp

7
time/catclock/DESCR Normal file
View File

@@ -0,0 +1,7 @@
This version of xclock is a Motif-based variant of the MIT xclock
program, with an alarm feature, and a new "cat" mode, in addition to
the analog and digital modes. The cat image was based on the famous
"Kit-Cat" (R) plastic wall clock, and was designed by Deanna Hohn of
DEC Advanced Technology Development. The Motif interface, eyes,
tails, and the general state of the program now are a product of
Philip Schneider of DEC.

22
time/catclock/Makefile Normal file
View File

@@ -0,0 +1,22 @@
# $NetBSD: Makefile,v 1.21 2012/10/08 13:04:17 asau Exp $
#
DISTNAME= catclock
PKGNAME= catclock-0.0
PKGREVISION= 6
CATEGORIES= x11 time
MASTER_SITES= ${MASTER_SITE_BACKUP}
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Variant of the MIT xclock with a "cat" mode
USE_IMAKE= yes
post-patch:
${RM} ${WRKSRC}/makefile ${WRKSRC}/pwd.h
${MV} ${WRKSRC}/xclock.man ${WRKSRC}/catclock.man
${SED} 's/^XClock/Catclock/g' <${WRKSRC}/xclock.ad >${WRKSRC}/Catclock.ad
.include "../../mk/motif.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

4
time/catclock/PLIST Normal file
View File

@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.2 2003/03/03 03:23:23 jschauma Exp $
bin/catclock
lib/X11/app-defaults/Catclock
${IMAKE_MAN_DIR}/catclock.${IMAKE_MANNEWSUFFIX}

9
time/catclock/distinfo Normal file
View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.12 2012/07/03 17:29:19 joerg Exp $
SHA1 (catclock.zip) = 0e977f080968067c4232072aa88d919e3f5daf84
RMD160 (catclock.zip) = 6caf81ec08f5c237902aaf9999e642300e4517c2
Size (catclock.zip) = 180008 bytes
SHA1 (patch-aa) = 74594a6a41e6eae4f70d85cf74e32ba49af0546a
SHA1 (patch-ab) = 43e732c0068cbf814dc73942e2a10a20fb1f2f24
SHA1 (patch-ac) = 3d115c8b0cf110f40f2322c5bc5cce37ad57089c
SHA1 (patch-ad) = e95d3e380eb25cb945e561dd601989912233d8f2

View File

@@ -0,0 +1,30 @@
$NetBSD: patch-aa,v 1.5 2012/01/29 15:52:34 marino Exp $
--- imakefile.orig Sun Dec 20 21:24:08 1992
+++ imakefile
@@ -2,18 +2,17 @@
SRCS = xclock.c alarm.c
OBJS = xclock.o alarm.o
- MOTIF = /usr/lib/DXM
-MOTIF_LIBS = $(MOTIF)/lib/Xm/libXm.a $(MOTIF)/lib/Xt/libXt.a
-MOTIF_INCS = -I$(MOTIF)/lib -I$(MOTIF)/lib/Xt
- INCLUDES = -I. $(MOTIF_INCS) -I$(TOP)
+ MOTIF = ${BUILDLINK_DIR}
+MOTIF_LIBS = ${MOTIFLIB} -lSM -lICE -lXt
+MOTIF_INCS = -I$(MOTIF)/include
+ INCLUDES = -I. $(MOTIF_INCS) $(TOP_X_INCLUDES)
DEFINES = -DHAS_GNU_EMACS
- CFLAGS = $(DEFINES) $(INCLUDES)
LOCAL_LIBRARIES = $(MOTIF_LIBS)
SYS_LIBRARIES = -lX11 -lm
-all:: xclock
-
-ComplexProgramTarget(xclock)
+all:: catclock
+ComplexProgramTarget(catclock)
+InstallAppDefaults(Catclock)

View File

@@ -0,0 +1,287 @@
$NetBSD: patch-ab,v 1.4 2012/07/03 17:29:20 joerg Exp $
--- xclock.c.orig 1995-05-22 13:47:42.000000000 +0000
+++ xclock.c
@@ -17,9 +17,7 @@
* 1990
*/
#include <stdio.h>
-#ifndef VMS
-#include <malloc.h>
-#endif
+#include <stdlib.h>
#include <math.h>
#include <pwd.h>
#include <unistd.h>
@@ -264,10 +262,29 @@ static Boolean showSecondHand = False;
static Boolean iconified = False; /* Clock iconified? */
-
-
-
-
+static void ParseGeometry(Widget, int, int, int);
+static int Round(double);
+static void DigitalString(char *);
+static void Syntax(char *);
+static void InitializeCat(Pixel, Pixel, Pixel);
+static GC CreateTailGC(void);
+static GC CreateEyeGC(void);
+static Pixmap CreateTailPixmap(double);
+static Pixmap CreateEyePixmap(double);
+static void EraseHands(Widget, struct tm *);
+static void HandleExpose(Widget, XtPointer, XmDrawingAreaCallbackStruct *);
+static void HandleInput(Widget, XtPointer, XmDrawingAreaCallbackStruct *);
+static void HandleResize(Widget, XtPointer, XmDrawingAreaCallbackStruct *);
+static void Tick(Widget, int);
+static void AlarmSetCallback(Widget, XtPointer, XmToggleButtonCallbackStruct *);
+static void AlarmBellCallback(Widget, XtPointer, XmToggleButtonCallbackStruct *);
+static void ChimeCallback(Widget, XtPointer, XmToggleButtonCallbackStruct *);
+static void AckAlarmCallback(Widget, XtPointer, XmPushButtonCallbackStruct *);
+static void RereadAlarmCallback(Widget, Widget, XmPushButtonCallbackStruct *);
+static void EditAlarmCallback(Widget, Widget, XmPushButtonCallbackStruct *);
+static void ExitCallback(Widget, XtPointer, XmPushButtonCallbackStruct *);
+static void MapCallback(Widget, XtPointer, XEvent *);
+static void SetSeg(int, int, int, int);
main(argc, argv)
int argc;
@@ -281,7 +298,6 @@ main(argc, argv)
XGCValues gcv;
u_long valueMask;
XmFontList fontList = (XmFontList)NULL;
- extern void ParseGeometry();
static XtResource resources[] = {
@@ -351,7 +367,7 @@ main(argc, argv)
{ "mode", "Mode", XtRString, sizeof(char *),
XtOffset(ApplicationDataPtr, modeString),
- XtRImmediate, (XtPointer)"analog"},
+ XtRImmediate, (XtPointer)"cat"},
{ "help", "Help", XtRBoolean, sizeof(Boolean),
XtOffset(ApplicationDataPtr, help),
@@ -391,7 +407,6 @@ main(argc, argv)
{ "-help", "*help", XrmoptionNoArg, (XtPointer)"on" },
};
- extern XtEventHandler MapCallback();
/*
@@ -403,7 +418,7 @@ main(argc, argv)
/*
* Open up the system
*/
- topLevel = XtAppInitialize(&appContext, "XClock",
+ topLevel = XtAppInitialize(&appContext, "Catclock",
(XrmOptionDescList)(&options[0]),
XtNumber(options),
(unsigned int *)&argc, argv, NULL,
@@ -418,7 +433,6 @@ main(argc, argv)
* Print help message and exit if asked
*/
if (appData.help) {
- extern void Syntax();
Syntax(argv[0]);
}
@@ -568,7 +582,6 @@ main(argc, argv)
time_t timeValue;
int stringDir;
XCharStruct xCharStr;
- extern void DigitalString();
/*
* Padding is around time text
@@ -794,7 +807,6 @@ main(argc, argv)
* Create cat pixmaps, etc. if in CAT_CLOCK mode
*/
if (clockMode == CAT_CLOCK) {
- extern void InitializeCat();
InitializeCat(appData.catColor,
appData.detailColor,
@@ -806,9 +818,6 @@ main(argc, argv)
* Finally, install necessary callbacks
*/
{
- extern XtCallbackProc HandleExpose(),
- HandleResize(),
- HandleInput();
XtAddCallback(canvas, XmNexposeCallback, HandleExpose, NULL);
XtAddCallback(canvas, XmNresizeCallback, HandleResize, NULL);
@@ -1191,7 +1200,6 @@ static void DrawLine(blankLength, length
double fractionOfACircle;
{
double angle, cosAngle, sinAngle;
- extern void SetSeg();
/*
* A full circle is 2 M_PI radians.
@@ -1288,7 +1296,6 @@ static void DrawSecond(length, width, of
double ms, mc, ws, wc;
int mid;
int x, y;
- extern void SetSeg();
/*
* A full circle is 2 PI radians.
@@ -1477,8 +1484,6 @@ static void InitializeCat(catColor, deta
XGCValues gcv;
unsigned long valueMask;
GC gc1, gc2;
- extern GC CreateTailGC();
- extern GC CreateEyeGC();
catPix = XCreatePixmap(dpy, root, winWidth, winHeight,
@@ -1562,8 +1567,6 @@ static void InitializeCat(catColor, deta
eyePixmap = (Pixmap *)malloc((appData.nTails + 1) * sizeof(Pixmap));
for (i = 0; i <= appData.nTails; i++) {
- static Pixmap CreateTailPixmap();
- static Pixmap CreateEyePixmap();
tailPixmap[i] = CreateTailPixmap(i * M_PI/(appData.nTails));
eyePixmap[i] = CreateEyePixmap(i * M_PI/(appData.nTails));
@@ -1929,12 +1932,11 @@ static Widget CreatePushButton(label, p
-static XtCallbackProc HandleExpose(w, clientData, callData)
+static void HandleExpose(w, clientData, callData)
Widget w;
XtPointer clientData;
XmDrawingAreaCallbackStruct *callData;
{
- extern XtTimerCallbackProc Tick();
/*
* Ignore if more expose events for this window in the queue
@@ -1979,7 +1981,7 @@ static XtCallbackProc HandleExpose(w, cl
-static XtTimerCallbackProc Tick(w, add)
+static void Tick(w, add)
Widget w;
int add;
{
@@ -2168,7 +2170,7 @@ static XtTimerCallbackProc Tick(w, add)
-static XtCallbackProc HandleInput(w, clientData, callData)
+static void HandleInput(w, clientData, callData)
Widget w;
XtPointer clientData;
XmDrawingAreaCallbackStruct *callData;
@@ -2180,13 +2182,6 @@ static XtCallbackProc HandleInput(w, cli
ackW, rereadW, editW, exitW;
static Widget sepW1, sepW2;
- extern XtCallbackProc AlarmSetCallback(),
- AlarmBellCallback(),
- ChimeCallback(),
- AckAlarmCallback(),
- RereadAlarmCallback(),
- EditAlarmCallback(),
- ExitCallback();
if (callData->event->type != ButtonPress) {
return;
@@ -2262,7 +2257,7 @@ static XtCallbackProc HandleInput(w, cli
-static XtCallbackProc AlarmSetCallback(w, clientData, callData)
+static void AlarmSetCallback(w, clientData, callData)
Widget w;
XtPointer clientData;
XmToggleButtonCallbackStruct *callData;
@@ -2280,7 +2275,7 @@ static XtCallbackProc AlarmSetCallback(w
-static XtCallbackProc AlarmBellCallback(w, clientData, callData)
+static void AlarmBellCallback(w, clientData, callData)
Widget w;
XtPointer clientData;
XmToggleButtonCallbackStruct *callData;
@@ -2291,7 +2286,7 @@ static XtCallbackProc AlarmBellCallback(
-static XtCallbackProc ChimeCallback(w, clientData, callData)
+static void ChimeCallback(w, clientData, callData)
Widget w;
XtPointer clientData;
XmToggleButtonCallbackStruct *callData;
@@ -2301,7 +2296,7 @@ static XtCallbackProc ChimeCallback(w, c
-static XtCallbackProc AckAlarmCallback(w, clientData, callData)
+static void AckAlarmCallback(w, clientData, callData)
Widget w;
XtPointer clientData;
XmPushButtonCallbackStruct *callData;
@@ -2315,7 +2310,7 @@ static XtCallbackProc AckAlarmCallback(w
-static XtCallbackProc RereadAlarmCallback(w, setW, callData)
+static void RereadAlarmCallback(w, setW, callData)
Widget w;
Widget setW;
XmPushButtonCallbackStruct *callData;
@@ -2340,7 +2335,7 @@ static XtCallbackProc RereadAlarmCallbac
-static XtCallbackProc EditAlarmCallback(w, setW, callData)
+static void EditAlarmCallback(w, setW, callData)
Widget w;
Widget setW;
XmPushButtonCallbackStruct *callData;
@@ -2383,7 +2378,7 @@ static XtCallbackProc EditAlarmCallback(
-static XtCallbackProc ExitCallback(w, clientData, callData)
+static void ExitCallback(w, clientData, callData)
Widget w;
XtPointer clientData;
XmPushButtonCallbackStruct *callData;
@@ -2394,7 +2389,7 @@ static XtCallbackProc ExitCallback(w, cl
-static XtCallbackProc HandleResize(w, clientData, callData)
+static void HandleResize(w, clientData, callData)
Widget w;
XtPointer clientData;
XmDrawingAreaCallbackStruct *callData;
@@ -2527,7 +2522,7 @@ static void EraseHands(w, tm)
}
-static XtEventHandler PropertyChangeCallback(w, clientData,
+static void PropertyChangeCallback(w, clientData,
event, continueToDispatch)
Widget w;
XtPointer clientData;
@@ -2583,7 +2578,7 @@ static XtEventHandler PropertyChangeCall
}
-static XtEventHandler MapCallback(w, clientData, event)
+static void MapCallback(w, clientData, event)
Widget w;
XtPointer clientData;
XEvent *event;

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ac,v 1.1 2004/04/20 19:41:35 minskim Exp $
--- xclock.ad.orig 1992-12-20 21:24:20.000000000 -0600
+++ xclock.ad
@@ -2,7 +2,7 @@
# XClock
#
XClock*font : 9x15
-XClock*foreground : black
+XClock*foreground : black
XClock*background : blue
XClock*highlight : black
XClock*hands : red

View File

@@ -0,0 +1,56 @@
$NetBSD: patch-ad,v 1.3 2009/10/21 18:08:10 drochner Exp $
--- alarm.c.orig 1995-05-21 16:07:00.000000000 +0200
+++ alarm.c
@@ -1,7 +1,5 @@
#include <stdio.h>
-#ifndef VMS
-#include <malloc.h>
-#endif
+#include <stdlib.h>
#include <signal.h>
#ifndef VMS
@@ -11,6 +9,7 @@
#endif
#include <ctype.h>
#include <sys/time.h>
+#include <time.h>
#ifdef VMS
#include "unix_time.h"
@@ -92,7 +91,9 @@ extern GC gc;
static XmFontList xmFontList;
-
+static void HideBell(void);
+static void TextScroll(void);
+static void Set_Alarm(void);
void InitBellAlarm(win, width, height, fontInfo, fontList, fg, bg, state, on)
Window win;
@@ -159,7 +160,6 @@ void DrawBell(flash)
bell_width, bell_height,
bellX, bellY, 0x1);
} else {
- extern void HideBell();
HideBell();
}
@@ -181,7 +181,6 @@ static void AlarmAnnounce()
int i, w;
char buf[BUFSIZ];
struct itimerval tv;
- extern void TextScroll();
strcpy(buf, nextAlarm.alarmAnnounce ? nextAlarm.alarmAnnounce : "alarm");
strcat(buf, " ... ");
@@ -442,7 +441,6 @@ void SetAlarm(file)
static void ResetAlarm()
{
- extern void Set_Alarm();
if (!*alarmFile) {
return;

2
time/dclock/DESCR Normal file
View File

@@ -0,0 +1,2 @@
Dclock is a digital clock for X. It has support for one alarm. Other than
that, it's a pretty bare-bones clock.

22
time/dclock/Makefile Normal file
View File

@@ -0,0 +1,22 @@
# $NetBSD: Makefile,v 1.18 2012/10/08 13:04:17 asau Exp $
#
DISTNAME= dclock
PKGNAME= dclock-4
PKGREVISION= 1
CATEGORIES= x11 time
MASTER_SITES= ${MASTER_SITE_XCONTRIB:S/contrib/R5contrib/}
EXTRACT_SUFX= .shar.Z
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Digital clock for X
CONFLICTS+= ivtools-*
WRKSRC= ${WRKDIR}
USE_X11BASE= yes
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

3
time/dclock/PLIST Normal file
View File

@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/12 19:09:39 rillig Exp $
bin/dclock
man/man1/dclock.1

8
time/dclock/distinfo Normal file
View File

@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.8 2009/07/07 20:27:10 joerg Exp $
SHA1 (dclock.shar.Z) = 1e9dac79e11f7075fd216e90d45218f499c9b035
RMD160 (dclock.shar.Z) = 772bded334477537f39f2a492d0bea69afff71a8
Size (dclock.shar.Z) = 23855 bytes
SHA1 (patch-aa) = 4631e0b7777edcc0f6d5c998207d02d8fa712367
SHA1 (patch-ab) = 0dea1f8d07d70521706ea88f0daf0772d3de5120
SHA1 (patch-ac) = 71ea6994b2466ca69a2e5a0b23bd944f94f182be

View File

@@ -0,0 +1,35 @@
$NetBSD: patch-aa,v 1.4 2009/07/07 20:27:10 joerg Exp $
--- Makefile.orig 2005-01-24 22:41:08.000000000 -0500
+++ Makefile
@@ -3,12 +3,27 @@ SRCS= Dclock.c dclock.c
OBJS= Dclock.o dclock.o
HFILES= Dclock.h DclockP.h patchlevel.h
-CFLAGS= -O
-LDFLAGS=
+CFLAGS= -O -I$(X11BASE)/include
+LDFLAGS= -L$(X11BASE)/lib -Wl,-R$(X11BASE)/lib
LIBS= -lXt -lX11
+# Make this link properly on Solaris
+OPSYS!= uname -s
+
+.if ${OPSYS} == "SunOS"
+LIBS+= -lSM -lICE -lsocket -lnsl
+.elif ${OPSYS} == "Interix"
+LIBS+= -lSM -lICE
+.endif
+
+all: dclock
+
dclock: ${OBJS}
- cc ${LDFLAGS} ${OBJS} ${LIBS} -o dclock
+ ${LINK.c} -o dclock ${OBJS} ${LIBS}
+
+install: dclock
+ ${BSD_INSTALL_PROGRAM} dclock ${DESTDIR}$(PREFIX)/bin
+ ${BSD_INSTALL_MAN} dclock.man ${DESTDIR}$(PREFIX)/man/man1/dclock.1
clean: ; rm -f ${OBJS} core dclock

View File

@@ -0,0 +1,234 @@
$NetBSD: patch-ab,v 1.3 2007/04/19 18:27:59 drochner Exp $
--- Dclock.c.orig 2007-04-19 18:51:51.000000000 +0200
+++ Dclock.c
@@ -21,8 +21,6 @@ static void
#define CLOCK_WIDTH 256
#define CLOCK_HEIGHT 80
#define DATE_FMT "%W, %M %d"
-#define when break;case
-#define otherwise break;default
static Boolean SetValues(), show_time();
@@ -367,8 +365,8 @@ DclockWidget w;
if (w->dclock.interval_id != (XtIntervalId)NULL)
XtRemoveTimeOut(w->dclock.interval_id);
- XtReleaseGC (w, w->dclock.foreGC);
- XtReleaseGC (w, w->dclock.backGC);
+ XtReleaseGC ((Widget) w, w->dclock.foreGC);
+ XtReleaseGC ((Widget) w, w->dclock.backGC);
for (n = 0; n < 10; n++) {
XFreePixmap(XtDisplay(w), w->dclock.digits[n]);
XFreePixmap(XtDisplay(w), w->dclock.tiny_digits[n]);
@@ -388,7 +386,7 @@ DclockWidget w;
Pixmap pix;
GC gc = w->dclock.foreGC;
- if (!XtIsRealized(w))
+ if (!XtIsRealized((Widget) w))
return;
winwidth = w->core.width;
@@ -450,7 +448,7 @@ DclockWidget w;
make_number(w, w->dclock.tiny_digits[i], gc, i, tiny_segment_pts);
}
else
- w->dclock.tiny_digits[i] = NULL;
+ w->dclock.tiny_digits[i] = (Pixmap) NULL;
}
/* The colon[0] area is blank */
if (w->dclock.colon[0])
@@ -627,9 +625,9 @@ DclockWidget w;
{
Boolean save_scroll = w->dclock.scroll;
Boolean save_fade = w->dclock.fade;
- long t;
+ time_t t;
- if (!XtIsRealized(w))
+ if (!XtIsRealized((Widget) w))
return;
if (w->dclock.interval_id != (XtIntervalId)NULL) {
@@ -663,7 +661,7 @@ DclockWidget w;
{
char buf[11];
Boolean alarm_went_off = False;
- long t = time(0);
+ time_t t = time(0);
register struct tm *l_time = localtime(&t);
int digit_w = w->dclock.digit_w;
int digit_h = w->dclock.digit_h;
@@ -802,7 +800,7 @@ register char *p;
turn_off[i] = oldmask & ~newmask;
}
else
- tmp_pix[i] = NULL;
+ tmp_pix[i] = (Pixmap) NULL;
for (j = 1; j != FADE_ITER; ++j)
{
@@ -875,27 +873,36 @@ struct tm *now;
if (*p != '%')
*datep++ = *p;
else switch (*++p) {
- when 'M':
+ case 'M':
datep += strlen(strcpy(datep, Months[now->tm_mon]));
- when 'm':
+ break;
+ case 'm':
datep += strlen(strcpy(datep, months[now->tm_mon]));
- when 'W':
+ break;
+ case 'W':
datep += strlen(strcpy(datep, Days[now->tm_wday]));
- when 'w':
+ break;
+ case 'w':
datep += strlen(strcpy(datep, days[now->tm_wday]));
- when 'd':
+ break;
+ case 'd':
if (now->tm_mday >= 10)
*datep++ = (now->tm_mday / 10 + '0');
*datep++ = now->tm_mday % 10 + '0';
- when 'Y':
- *datep++ = '1', *datep++ = '9';
- /* fall thru */
+ break;
+ case 'Y':
+ *datep++ = (now->tm_year + 1900) / 1000 + '0';
+ *datep++ = (now->tm_year + 1900) % 1000 / 100 + '0';
+ /* FALLTHROUGH */
case 'y':
- *datep++ = now->tm_year / 10 + '0';
- *datep++ = now->tm_year % 10 + '0';
- when '%':
+ *datep++ = now->tm_year % 100 / 10 + '0';
+ *datep++ = now->tm_year % 10 + '0';
+ break;
+ case '%':
*datep++ = *p;
- otherwise: ; /* nothing */
+ break;
+ default:
+ break; /* nothing */
}
}
*datep = 0;
@@ -906,7 +913,7 @@ struct tm *now;
/* remove what was there in case the whole thing isn't overwritten */
XFillRectangle(XtDisplay(w), XtWindow(w), w->dclock.backGC,
- 0, winheight - (w->dclock.font->ascent + w->dclock.font->descent),
+ 0, winheight - (w->dclock.font->ascent + BORDER),
winwidth, w->dclock.font->ascent + w->dclock.font->descent);
XDrawString(XtDisplay(w), XtWindow(w), w->dclock.foreGC,
@@ -924,7 +931,8 @@ XtIntervalId *id;
{
Boolean alarm_went_off = show_time(w);
w->dclock.interval_id =
- XtAddTimeOut((unsigned long)((alarm_went_off || w->dclock.seconds)? 1000 : 60000),
+ XtAddTimeOut((unsigned long)((alarm_went_off || w->dclock.seconds) ?
+ 1000 : 60000 - ((time(0L) % 60) * 1000)),
timeout, (XtPointer)w);
}
@@ -960,8 +968,8 @@ DclockWidget current, request, new;
|| new->dclock.tails != current->dclock.tails
|| new->dclock.fade != current->dclock.fade
|| new->dclock.miltime != current->dclock.miltime) {
- XtReleaseGC (current, current->dclock.foreGC);
- XtReleaseGC (current, current->dclock.backGC);
+ XtReleaseGC ((Widget) current, current->dclock.foreGC);
+ XtReleaseGC ((Widget) current, current->dclock.backGC);
GetGC(new);
Resize(new); /* pixmaps need to be redrawn */
do_redraw = True;
@@ -1024,7 +1032,7 @@ DclockWidget w;
Arg arg;
XtSetArg(arg, XtNreverseVideo, !w->dclock.reverse);
- XtSetValues(w, &arg, 1);
+ XtSetValues((Widget) w, &arg, 1);
}
static void
@@ -1038,7 +1046,7 @@ DclockWidget w;
return;
}
XtSetArg(arg, XtNmilitaryTime, !w->dclock.miltime);
- XtSetValues(w, &arg, 1);
+ XtSetValues((Widget) w, &arg, 1);
}
static void
@@ -1052,7 +1060,7 @@ DclockWidget w;
return;
}
XtSetArg(arg, XtNseconds, !w->dclock.seconds);
- XtSetValues(w, &arg, 1);
+ XtSetValues((Widget) w, &arg, 1);
}
static void
@@ -1062,7 +1070,7 @@ DclockWidget w;
Arg arg;
XtSetArg(arg, XtNfade, !w->dclock.fade);
- XtSetValues(w, &arg, 1);
+ XtSetValues((Widget) w, &arg, 1);
if (w->dclock.fade && w->dclock.scroll)
toggle_scroll(w);
}
@@ -1074,7 +1082,7 @@ DclockWidget w;
Arg arg;
XtSetArg(arg, XtNtails, !w->dclock.tails);
- XtSetValues(w, &arg, 1);
+ XtSetValues((Widget) w, &arg, 1);
}
static void
@@ -1084,7 +1092,7 @@ DclockWidget w;
Arg arg;
XtSetArg(arg, XtNalarm, !w->dclock.alarm);
- XtSetValues(w, &arg, 1);
+ XtSetValues((Widget) w, &arg, 1);
}
static void
@@ -1124,20 +1132,24 @@ XButtonEvent *event;
int digit = w->dclock.alarm_time[i>1?i+1:i] - '0';
int mod;
switch (i) {
- when 0:
+ case 0:
if (Alarm.hrs > 13 && digit == 1)
digit++;
mod = 3;
before.tm_hour = -1;
- when 1 :
+ break;
+ case 1 :
mod = (Alarm.hrs < 20)? 10 : 4;
before.tm_hour = -1;
- when 2:
+ break;
+ case 2:
mod = 6;
before.tm_min = -1;
- when 3 :
+ break;
+ case 3 :
mod = 10;
before.tm_min = -1;
+ break;
}
if (event->button == 1)
digit = (digit + 1) % mod;

View File

@@ -0,0 +1,19 @@
$NetBSD: patch-ac,v 1.1.1.1 2000/12/17 23:32:17 wiz Exp $
As pointed out by Robert Elz, the resource name is wrong, and despite
the concerns expressed by Robert that "military time" is an
incorrectly-used term, it's outwith the scope of pkgsrc to modify
arguments to the program such as -m to comply. Modify the
documentation to show the correct resource name.
--- dclock.man 1999/10/20 10:52:06 1.1
+++ dclock.man 1999/10/20 10:52:33
@@ -168,7 +168,7 @@
.B font (\fPclass\fB Font)
Specifies the font to be used for the date.
.TP 8
-.B miltime (\fPclass\fB Boolean)
+.B militaryTime (\fPclass\fB Boolean)
Specifies whether the military (24hr) time format should be used.
.TP 8
.B reverseVideo (\fPclass\fB ReverseVideo)

1
time/deforaos-todo/DESCR Normal file
View File

@@ -0,0 +1 @@
DeforaOS desktop todo list

View File

@@ -0,0 +1,26 @@
# $NetBSD: Makefile,v 1.5 2013/06/06 12:55:07 wiz Exp $
#
DISTNAME= Todo-0.1.2
PKGNAME= deforaos-todo-0.1.2
PKGREVISION= 4
CATEGORIES= time
MASTER_SITES= http://www.defora.org/os/download/download/3506/
MAINTAINER= khorben@defora.org
HOMEPAGE= http://www.defora.org/
COMMENT= DeforaOS desktop todo list
LICENSE= gnu-gpl-v3
USE_TOOLS+= pkg-config
MAKE_FLAGS+= DESTDIR=${DESTDIR}
MAKE_FLAGS+= PREFIX=${PREFIX}
.include "options.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/deforaos-libdesktop/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"

7
time/deforaos-todo/PLIST Normal file
View File

@@ -0,0 +1,7 @@
@comment $NetBSD: PLIST,v 1.1 2012/12/17 02:05:05 khorben Exp $
bin/todo
share/applications/todo.desktop
share/icons/hicolor/16x16/apps/todo.png
share/icons/hicolor/24x24/apps/todo.png
share/icons/hicolor/48x48/apps/todo.png
share/locale/fr/LC_MESSAGES/Todo.mo

View File

@@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2012/12/17 02:05:05 khorben Exp $
SHA1 (Todo-0.1.2.tar.gz) = 4a9c006720a984caf4d281d4d84c007d3719426a
RMD160 (Todo-0.1.2.tar.gz) = 636c726d6f9c55f353159aefb742292c79c84f06
Size (Todo-0.1.2.tar.gz) = 33195 bytes

View File

@@ -0,0 +1,10 @@
# $NetBSD: options.mk,v 1.1 2012/12/17 02:05:05 khorben Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.deforaos-todo
PKG_SUPPORTED_OPTIONS= embedded
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Membedded)
MAKE_FLAGS+= CPPFLAGS=-DEMBEDDED
.endif

9
time/devtodo/DESCR Normal file
View File

@@ -0,0 +1,9 @@
todo is a program aimed specifically at programmers (but usable by
anybody at the terminal) to aid in day-to-day development.
It maintains a list of items that have yet to be completed. This
allows the programmer to track outstanding bugs or items that need
to be completed with very little effort.
Items can be prioritised and can also be displayed in a hierarchy,
so that one item may depend on another.

34
time/devtodo/Makefile Normal file
View File

@@ -0,0 +1,34 @@
# $NetBSD: Makefile,v 1.31 2013/04/06 13:24:20 rodent Exp $
DISTNAME= devtodo-0.1.20
PKGREVISION= 3
CATEGORIES= time
MASTER_SITES= http://swapoff.org/files/devtodo/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://swapoff.org/DevTodo
COMMENT= Display and manage a list of items that are outstanding
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_GNU_READLINE= # uses rl_startup_hook()
GNU_CONFIGURE= yes
EGDIR= ${PREFIX}/share/examples/devtodo
INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR}
post-install:
.for cfile in changelog2html \
changelog2todo \
tdrec \
todo-nodone-html.xslt \
todo2html-2.xslt \
todo2html.xslt \
todo2pdf.README \
todo2pdf.sh \
todo2pdf.xslt
${INSTALL_DATA} ${WRKSRC}/contrib/${cfile} ${DESTDIR}${EGDIR}
.endfor
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

25
time/devtodo/PLIST Normal file
View File

@@ -0,0 +1,25 @@
@comment $NetBSD: PLIST,v 1.4 2009/06/14 18:17:57 joerg Exp $
bin/devtodo
bin/tda
bin/tdd
bin/tde
bin/tdl
bin/tdr
bin/todo
man/man1/devtodo.1
man/man1/tda.1
man/man1/tdd.1
man/man1/tde.1
man/man1/tdl.1
man/man1/tdr.1
man/man1/todo.1
share/examples/devtodo/changelog2html
share/examples/devtodo/changelog2todo
share/examples/devtodo/tdrec
share/examples/devtodo/todo-nodone-html.xslt
share/examples/devtodo/todo2html-2.xslt
share/examples/devtodo/todo2html.xslt
share/examples/devtodo/todo2pdf.README
share/examples/devtodo/todo2pdf.sh
share/examples/devtodo/todo2pdf.xslt
share/examples/devtodo/todorc

8
time/devtodo/distinfo Normal file
View File

@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.14 2011/11/25 22:19:23 joerg Exp $
SHA1 (devtodo-0.1.20.tar.gz) = 003067a12139d712dbb3706069e0950a93ecaaf4
RMD160 (devtodo-0.1.20.tar.gz) = 389201318faa5ff6d302bd5f8c8f8b094664b45c
Size (devtodo-0.1.20.tar.gz) = 390935 bytes
SHA1 (patch-ab) = 8fa0d35008ed159c4536234b4cc366855055a4e5
SHA1 (patch-ae) = 5f5ffb9571e73656eecdd3cb6cf72e26c193847e
SHA1 (patch-af) = b2f475c73a534d49fb3e7cb668f3ee9b885b38e5

View File

@@ -0,0 +1,18 @@
$NetBSD: patch-ab,v 1.5 2011/11/25 22:19:24 joerg Exp $
--- src/todoterm.cc.orig 2007-06-28 13:04:36.000000000 +0000
+++ src/todoterm.cc
@@ -4,9 +4,11 @@
#ifdef USETERMCAP
#include <iostream>
#include <string>
+#include <cstdlib>
#include <stdexcept>
-#include <curses.h>
-#include <term.h>
+
+extern "C" int tgetent(char *, const char *);
+extern "C" int tgetnum(const char *);
static char info[2048];
static bool term_initialized;

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ae,v 1.1 2003/12/28 15:40:14 zuntum Exp $
--- util/CommandArgs.h.orig 2001-07-10 19:11:47.000000000 +0200
+++ util/CommandArgs.h
@@ -2,6 +2,7 @@
#define CRASH_COMMANDARGS
#include <stdexcept>
+#include <cassert>
#include <string>
#include <vector>
#include <iostream>

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-af,v 1.1 2008/11/24 08:23:39 obache Exp $
http://swapoff.org/ticket/54
--- util/XML.cc.orig 2007-06-28 12:52:04.000000000 +0000
+++ util/XML.cc
@@ -49,7 +49,7 @@ void XML::init() {
// Only initialise scanners once
if (!initialised) {
// <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- xmlScan.addPattern(XmlDecl, "<\\?xml.*?>[[:space:]]*");
+ xmlScan.addPattern(XmlDecl, "<\\?xml.*\\?>[[:space:]]*");
xmlScan.addPattern(XmlCommentBegin, "<!--");
xmlScan.addPattern(XmlBegin, "<[a-zA-Z0-9_-]+"
"([[:space:]]+[a-zA-Z_0-9-]+=(([/a-zA-Z_0-9,.]+)|(\"[^\"]*\")|('[^']*')))"

1
time/emiclock/DESCR Normal file
View File

@@ -0,0 +1 @@
Shaped, analog clock with alarm functionality

39
time/emiclock/Makefile Normal file
View File

@@ -0,0 +1,39 @@
# $NetBSD: Makefile,v 1.26 2013/01/15 16:21:35 morr Exp $
#
DISTNAME= emiclock-2.0.2
PKGREVISION= 6
CATEGORIES= x11 time
MASTER_SITES= ${MASTER_SITE_FREEBSD}
MAINTAINER= minoura@NetBSD.org
COMMENT= Analog clock with image in the middle
LICENSE= emiclock-license
RESTRICTED= Do not distribute
NO_SRC_ON_FTP=${RESTRICTED}
NO_BIN_ON_FTP=${RESTRICTED}
NO_SRC_ON_CDROM=${RESTRICTED}
NO_BIN_ON_CDROM=${RESTRICTED}
USE_IMAKE= yes
.include "../../mk/bsd.prefs.mk"
.if defined(XAW_TYPE) && (${XAW_TYPE} == "3d" || ${XAW_TYPE} == "xpm")
post-patch:
${ECHO} "#define USE_XAW3D" > ${WRKSRC}/xawconfig.h
.else
post-patch:
${ECHO} "#undef USE_XAW3D" > ${WRKSRC}/xawconfig.h
.endif
INSTALLATION_DIRS= lib/X11/ja_JP.eucJP/app-defaults
post-install:
${INSTALL_DATA} ${WRKSRC}/resources/R6/EUC/EmiClock.ad \
${DESTDIR}${PREFIX}/lib/X11/ja_JP.eucJP/app-defaults/EmiClock
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/xaw.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

6
time/emiclock/PLIST Normal file
View File

@@ -0,0 +1,6 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:17:57 joerg Exp $
bin/emiclock
lib/X11/EmiClock/myu.au
lib/X11/app-defaults/EmiClock
lib/X11/ja_JP.eucJP/app-defaults/EmiClock
${IMAKE_MAN_DIR}/emiclock.${IMAKE_MANNEWSUFFIX}

13
time/emiclock/distinfo Normal file
View File

@@ -0,0 +1,13 @@
$NetBSD: distinfo,v 1.10 2013/01/15 16:21:35 morr Exp $
SHA1 (emiclock-2.0.2.tar.gz) = e1c042d600faf59ecdb11f1199f1793282db90c1
RMD160 (emiclock-2.0.2.tar.gz) = 25a753aaefbd9b8b57c16fbfe13678a002ab8179
Size (emiclock-2.0.2.tar.gz) = 308682 bytes
SHA1 (patch-aa) = a5eea083c1a05bacd2605ac8e0ecbef9310a8cfd
SHA1 (patch-ab) = 8c83e056bd03b0f493f91afd33ce572ed673511b
SHA1 (patch-ac) = 4b020ac03c958d1ca44968c17b7d657edda77690
SHA1 (patch-ad) = 3cde51980c8802a225a6a91291297176fc9dba69
SHA1 (patch-ae) = ecbc4f169c0fd249ba1cc0c3031922c02f7a6bb2
SHA1 (patch-af) = f5b6c40f42136ee8953bf259a78fa0d8be048503
SHA1 (patch-ag) = 43c750de300cbda8cb89917894bbc73b18974c5d
SHA1 (patch-ah) = 227494794d7c28620d11800fa6087ab765dd5562

View File

@@ -0,0 +1,64 @@
$NetBSD: patch-aa,v 1.2 2011/03/23 14:09:31 obache Exp $
--- include/sound.h.orig 1999-09-02 14:34:10.000000000 +0000
+++ include/sound.h
@@ -215,7 +215,7 @@ struct SoundCacheBufferTag {
* FreeBSD
*/
-#if defined(__FreeBSD__) && defined(USE_SOUND)
+#if (defined(__FreeBSD__) || defined(__DragonFly__)) && defined(USE_SOUND)
/* FreeBSD with SoundBlaster Pro */
@@ -233,10 +233,50 @@ struct SoundCacheBufferTag {
};
#define SoundCacheBuffer struct SoundCacheBufferTag
+#ifdef __DragonFly__
+#define AUDIO_DEVICE "/dev/dsp"
+#else
#define AUDIO_DEVICE "/dev/audio"
+#endif
#endif /* FreeBSD */
+/*
+ * NetBSD
+ */
+
+#if defined(__NetBSD__) && defined(USE_SOUND)
+
+/* NetBSD with MB6258V */
+
+#include <errno.h>
+#include <unistd.h>
+#include <sys/ioctl.h>
+#include <sys/types.h>
+#include <sys/file.h>
+#include <sys/stat.h>
+#include <sys/audioio.h>
+#include <machine/bswap.h>
+
+#define AUDIO_DEVICE "/dev/audio"
+#define AUDIO_CTLDEVICE "/dev/audioctl"
+#define AUDIOMAGICNUMBER (0x2e736e64) /* ".snd" */
+#ifndef AUDIO_ENCODING_LINEAR
+#define AUDIO_ENCODING_LINEAR (3) /* Linear PCM encoding */
+#endif
+
+#undef O_RDWR
+#define O_RDWR O_WRONLY /* audio $B%G%P%$%9$OF1;~%*!<%W%s$G$-$J$$!)(B */
+
+struct SoundCacheBufferTag {
+ char *soundCacheBuffer;
+ int soundLength;
+ audio_info_t soundBParam;
+};
+
+#define SoundCacheBuffer struct SoundCacheBufferTag
+
+#endif /* NetBSD */
#else /* USE_NETAUDIO */

View File

@@ -0,0 +1,303 @@
$NetBSD: patch-ab,v 1.2 2000/12/18 00:03:38 wiz Exp $
--- sys/NetBSD/audio.c.orig Sun May 23 10:29:13 1999
+++ sys/NetBSD/audio.c Sun May 23 10:55:39 1999
@@ -0,0 +1,298 @@
+/*
+ * NetBSD $B%5%&%s%I=hM}(B
+ */
+
+/*
+ * Copyright (c) 1994 Kazuhiko Ishii.
+ * Copyright (c) 1995 Masanobu Saitoh.
+ *
+ * $BK\%=%U%H%&%'%"$N%=!<%9$d%P%$%J%j$r:FG[I[$9$k>l9g$O!"<!$N>r7o$r=e<i$7$F(B
+ * $B2<$5$$!#(B
+ *
+ * 1. $BK\%=%U%H%&%'%"$rF~<j$7$?J}$K$O!"(BX11$BHG(B Emi Clock $B$N;HMQ8"$H!"Bh;0<T(B
+ * $B$X$N:FG[I[8"$,G'$a$i$l$^$9!#$?$@$7!":FG[I[$K4X$7$F$O!"F~<j;~$N%*%j(B
+ * $B%8%J%k$N$^$^2~JQ$;$:$K9T$&$3$H$,>r7o$G$9!#(B
+ * 2. $BK\%=%U%H%&%'%"$N0lIt$^$?$OA4It$rCx:n8"<T$KL5CG$G2~JQ$7$FG[I[$9$k$3(B
+ * $B$H$O$G$-$^$;$s!#(B
+ * 3. $BK\%=%U%H%&%'%"$N0lIt$^$?$OA4It$rCx:n8"<T$KL5CG$GFs<!MxMQ$9$k$3$H$O(B
+ * $B$G$-$^$;$s!#(B
+ * 4. $BK\%=%U%H%&%'%"$r%7%9%F%`$K%P%s%I%k$7$?$j!"%7%9%F%`$NDI2C%Q%C%1!<%8(B
+ * $B$H$7$FBh;0<T$K:FG[I[$7$?$j$9$k>l9g$O!";vA0$KCx:n8"<T$K5v2D$,I,MW$G(B
+ * $B$9!#(B
+ * 5. $BK\%=%U%H%&%'%"$r>&MQ$K;HMQ$9$k>l9g(B($B6bA,E*Mx1W$rF@$k>l9g(B)$B$O!";vA0$K(B
+ * $BCx:n8"<T$K5v2D$,I,MW$G$9!#$3$N>l9g!"4pK\E*$KM-=~$H$J$j$^$9!#(B
+ * 6. $BK\%=%U%H%&%'%"$rMxMQ$9$k$3$H$K$h$C$FH/@8$7$?$$$+$J$kB;32$b!"Cx:n8"(B
+ * $B<T$OIi$o$J$$$b$N$H$7$^$9!#$3$l$K9g0U$G$-$J$$>l9g$O!";HMQ8"$,$J$$$b(B
+ * $B$N$H$7$^$9!#(B
+ * 7. $B!H(BEmi Clock$B!I$N>&I8$*$h$SK\%=%U%H%&%'%"$N2hA|$d%G%6%$%s$K4X$9$kCx:n(B
+ * $B8"$O!"(BMotosoft $B$3$H!HK\(B $B=SLi!I;a$,M-$7$^$9!#(B
+ * 8. $B!H(BEmi Clock$B!I$N>&I8$*$h$S2hA|$d%G%6%$%s$O!"(BX11$BHG(B Emi Clock $B3+H/$N$?(B
+ * $B$a!"(BMotosoft $B$h$j!H8E>l(B $B@59T!I$X8D?ME*$K%i%$%;%s%96!M?$5$l$F$^$9!#(B
+ * $BBh;0<T$XFs<!%i%$%;%s%96!M?$9$k$3$H$OG'$a$i$l$F$*$j$^$;$s!#(B
+ * 9. Motosoft $B$H8E>l$KL5CG$G!"K\%=%U%H%&%'%"$N2hA|%G!<%?$rFs<!MxMQ$9$k$3(B
+ * $B$H$r6X;_$7$^$9!#(B
+ * 10. $B$3$3$K5-=R$7$?0J30$N8"Mx$K$D$$$F$O!"F|K\9q$NCx:n8"K!$K$h$k$b$N$H$7(B
+ * $B$^$9!#(B
+ */
+
+
+/* $BDj?t(B */
+#define HAS_SOUND_CODE /* $B%5%&%s%I4X78$N%3!<%I$OM-8z!*(B */
+
+/* RCS ID */
+rcsId(audioId, "Id: audio.c,v 1.5 1994/05/31 06:28:21 masa-k Rel ")
+
+static int S_AuFileHeader();
+static void S_PlayInterval();
+
+static int AudioDevice;
+static audio_info_t AudioSaveConfig;
+static int SoundLeft;
+static int SoundPlayed;
+static int SoundTimeBytes;
+static char *SoundBufPtr;
+static char *SoundTmpBuffer = NULL;
+static struct timeval SoundStart;
+
+/*
+ * $B%5%&%s%I4D6-$N=i4|2=(B
+ */
+static void
+S_SoundEnvInit()
+{
+ /* $B2?$b$7$J$$(B */
+}
+
+
+/*
+ * $B%5%&%s%I%G%P%$%9$NB8:_H=Dj(B
+ */
+static Boolean
+S_IsSoundAvailable()
+{
+ struct stat st;
+
+ /* $B%*!<%G%#%*#I!?#F$N%A%'%C%/(B */
+ if (stat(AUDIO_DEVICE, &st) < 0)
+ return False;
+ if (!S_ISCHR(st.st_mode))
+ return False;
+
+ return True;
+}
+
+
+/*
+ * $B%5%&%s%I:F@8(B
+ */
+static int
+S_PlaySound(filename)
+char *filename;
+{
+ SoundCacheBuffer localCache;
+ int ret;
+
+ if ((ret = S_CacheSound(filename, &localCache)) != SOUND_NO_ERROR)
+ return ret;
+ SoundTmpBuffer = localCache.soundCacheBuffer;
+ if ((ret = S_PlayCacheSound(&localCache)) != SOUND_NO_ERROR) {
+ S_FreeCacheSound(&localCache);
+ return ret;
+ }
+ return SOUND_NO_ERROR;
+}
+
+
+/*
+ * $B%5%&%s%I$N%-%c%C%7%e2=2DG=!?IT2DG=H=Dj(B
+ */
+static Boolean
+S_IsSoundCacheAvailable()
+{
+ return True;
+}
+
+
+/*
+ * $B%5%&%s%I$N%-%c%C%7%e2=(B
+ */
+static int
+S_CacheSound(filename, cacheBufferPtr)
+char *filename;
+SoundCacheBuffer *cacheBufferPtr;
+{
+ int soundFile;
+
+ if ((soundFile = open(filename, O_RDONLY)) < 0)
+ return SOUND_OPEN_ERROR;
+ AUDIO_INITINFO(&(cacheBufferPtr->soundBParam));
+ if ((cacheBufferPtr->soundLength = S_AuFileHeader(soundFile,
+ &(cacheBufferPtr->soundBParam))) < 0) {
+ close(soundFile);
+ return SOUND_FILE_INVALID;
+ }
+ cacheBufferPtr->soundCacheBuffer =
+ (char *)XtMalloc(cacheBufferPtr->soundLength);
+ read(soundFile, cacheBufferPtr->soundCacheBuffer,
+ cacheBufferPtr->soundLength);
+ close(soundFile);
+ return SOUND_NO_ERROR;
+}
+
+
+/*
+ * $B%-%c%C%7%e2=$5$l$?%5%&%s%I$N:F@8(B
+ */
+static int
+S_PlayCacheSound(cacheBufferPtr)
+SoundCacheBuffer *cacheBufferPtr;
+{
+ int tmpfd;
+ if ((tmpfd = open(AUDIO_DEVICE, O_WRONLY)) < 0) {
+ if (errno == EBUSY)
+ return SOUND_DEVICE_BUSY;
+ return SOUND_DEVICE_ERROR;
+ }
+ AudioDevice = tmpfd;
+ ioctl(AudioDevice, AUDIO_GETINFO, &AudioSaveConfig);
+ /* $B%*!<%G%#%*%U%!%$%k$K9g$o$;$F%G%P%$%9$r%;%C%H$9$k(B
+ $B%G%P%$%9L$%5%]!<%H$N7A<0$N%*!<%G%#%*%U%!%$%k$O%(%i!<(B */
+ if (ioctl(AudioDevice, AUDIO_SETINFO,
+ &(cacheBufferPtr->soundBParam)) < 0) {
+ close(AudioDevice);
+ return SOUND_DEVICE_ERROR;
+ }
+ /* $B%*!<%G%#%*%G%P%$%9$r%N%s%V%m%C%-%s%0%b!<%I$K@_Dj(B */
+ fcntl(AudioDevice, F_SETFL, fcntl(AudioDevice, F_GETFL, 0) | O_NDELAY);
+ SoundBufPtr = cacheBufferPtr->soundCacheBuffer;
+ SoundLeft = cacheBufferPtr->soundLength;
+ SoundPlayed = 0;
+ SoundTimeBytes = (cacheBufferPtr->soundBParam.play.precision / 8) *
+ cacheBufferPtr->soundBParam.play.channels *
+ cacheBufferPtr->soundBParam.play.sample_rate;
+ signal(SIGALRM, S_PlayInterval);
+ gettimeofday(&SoundStart, NULL);
+ S_PlayInterval();
+ return SOUND_NO_ERROR;
+}
+
+
+/*
+ * $B%-%c%C%7%e2=$5$l$?%5%&%s%I$N3+J|(B
+ */
+static void
+S_FreeCacheSound(cacheBufferPtr)
+SoundCacheBuffer *cacheBufferPtr;
+{
+ XtFree(cacheBufferPtr->soundCacheBuffer);
+}
+
+
+/*
+ * $B%5%&%s%I4D6-$N8e;OKv(B
+ */
+static void
+S_SoundEnvDispose()
+{
+ /* $B2?$b$7$J$$(B */
+}
+
+/*
+ * SIGALRM$B$G8F$P$l$k4X?t(B
+ */
+static void
+S_PlayInterval()
+{
+ int nbytes, timer;
+ struct itimerval t;
+ struct timeval now;
+
+ if (SoundLeft > 0) {
+ if ((nbytes = write(AudioDevice, SoundBufPtr, SoundLeft)) > 0) {
+ SoundPlayed += nbytes;
+ SoundLeft -= nbytes;
+ SoundBufPtr += nbytes;
+ timer = ((double)SoundPlayed / (double)SoundTimeBytes)
+ * 1000000;
+ gettimeofday(&now, NULL);
+ timer -= (now.tv_sec - SoundStart.tv_sec) * 1000000
+ + now.tv_usec - SoundStart.tv_usec;
+ if (timer <= 0)
+ timer = 1;
+ } else {
+ timer = 1;
+ if (nbytes < 0 && errno != EBUSY)
+ SoundLeft = 0;
+ }
+ t.it_interval.tv_sec = 0;
+ t.it_interval.tv_usec = 0;
+ t.it_value.tv_sec = timer / 1000000;
+ t.it_value.tv_usec = timer % 1000000;
+ setitimer(ITIMER_REAL, &t, NULL);
+ } else {
+ if (close(AudioDevice) == -1)
+ perror("nazo\n");
+ if (SoundTmpBuffer != NULL) {
+ XtFree(SoundTmpBuffer);
+ SoundTmpBuffer = NULL;
+ }
+ signal(SIGALRM, SIG_IGN);
+ }
+}
+
+#if BYTE_ORDER == LITTLE_ENDIAN
+# define BSWAP32(x) x = bswap32(x)
+#endif
+#if BYTE_ORDER == BIG_ENDIAN
+# define BSWAP32(x)
+#endif
+#if BYTE_ORDER == PDP_ENDIAN
+# error lose.
+#endif
+
+/*
+ * .au$B%U%!%$%k$N%X%C%@>pJs$rJV$94X?t(B
+ * $B%U%!%$%k0LCV$O%G!<%?It$N@hF,$K%;%C%H$5$l$k!#(B
+ */
+static int
+S_AuFileHeader(file, audio)
+int file;
+audio_info_t *audio;
+{
+ static int formattable[] = {
+ 0, 0, /* Not defined */
+ AUDIO_ENCODING_ULAW, 8, /* 8-bit ISDN u-law */
+ AUDIO_ENCODING_LINEAR, 8, /* 8-bit linear PCM */
+ AUDIO_ENCODING_LINEAR, 16, /* 16-bit linear PCM */
+ AUDIO_ENCODING_LINEAR, 24, /* 24-bit linear PCM */
+ AUDIO_ENCODING_LINEAR, 32 /* 32-bit linear PCM */
+ };
+
+ long magic, pos, size, format, rate, chan;
+ struct stat st;
+
+ read(file, &magic, sizeof(long));
+ BSWAP32(magic);
+ if (magic != AUDIOMAGICNUMBER)
+ return -1;
+ read(file, &pos, sizeof(long));
+ BSWAP32(pos);
+ read(file, &size, sizeof(long));
+ BSWAP32(size);
+ read(file, &format, sizeof(long));
+ BSWAP32(format);
+ read(file, &rate, sizeof(long));
+ BSWAP32(rate);
+ read(file, &chan, sizeof(long));
+ BSWAP32(chan);
+ if (format < 1 || format > 5)
+ return -1;
+ format = format * 2;
+ audio->play.encoding = formattable[format];
+ audio->play.precision = formattable[format + 1];
+ audio->play.sample_rate = rate;
+ audio->play.channels = chan;
+ lseek(file, pos, SEEK_SET);
+ fstat(file, &st);
+ return st.st_size - pos;
+}

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-ac,v 1.1.1.1 2000/12/17 23:32:18 wiz Exp $
--- config.h.orig Sat Jan 11 11:35:43 1997
+++ config.h Sun May 23 10:17:24 1999
@@ -43,7 +43,7 @@
* $B#G#U#I$N@_Dj(B
*/
-#undef USE_XAW3D /* Xaw3d $B$r;H$&!)(B */
+#include "xawconfig.h"
#undef USE_XAWI18N /* X11R5 $B$N(B Xaw I18N $B$r;H$&!)(B */
@@ -51,7 +51,7 @@
* $B%5%&%s%I4X78$N@_Dj(B
*/
-#undef USE_SOUND /* $B%5%&%s%I$r;H$&!)(B */
+#define USE_SOUND /* $B%5%&%s%I$r;H$&!)(B */
/* #define EmiClockLib /usr/local/lib/X11/EmiClock */
/* $(LIBDIR)/EmiClock $B0J30$N>l=j$K%5%&%s%I%U%!%$%k$r%$%s%9%H!<%k(B */

View File

@@ -0,0 +1,48 @@
$NetBSD: patch-ad,v 1.7 2013/01/15 16:21:35 morr Exp $
--- Imakefile.orig 1999-09-02 14:33:47.000000000 +0000
+++ Imakefile
@@ -102,9 +102,14 @@ XCOMM
#endif /* LinuxArchitecture */
/* FreeBSD */
-#if defined(i386BsdArchitecture) && (defined(i386FreeBsd) || defined(FreeBSDArchitecture))
+#if defined(i386BsdArchitecture) && defined(i386FreeBsd) || defined(FreeBSDArchitecture)
#define StartupSound myu.au
-#endif /* i386BsdArchitecture && (i386FreeBsd || FreeBSDArchitecture) */
+#endif /* i386BsdArchitecture && i386FreeBsd || FreeBSDArchitecture */
+
+/* NetBSD */
+#if defined(NetBSDArchitecture)
+#define StartupSound myu.au
+#endif /* NetBSDArchitecture */
#else /* USE_NETAUDIO */
@@ -143,7 +148,7 @@ XCOMM
LOCAL_LIBRARIES = XawClientLibs
# ifdef USE_XAW3D
DEPXAWLIB = $(USRLIBDIR)/libXaw3d.a
- XAWLIB = -lXaw3d
+ XAWLIB = -lXaw
# endif /* USE_XAW3D */
SYS_LIBRARIES = SoundLibrary -lm
@@ -219,6 +224,8 @@ XCOMM
#define ResourceDir resources/Xaw3d
#endif /* !USE_XAW3D */
+AllTarget(EmiClock.ad)
+
EmiClock.ad:: ResourceDir/EmiClock.ad
$(CP) ResourceDir/EmiClock.ad .
@@ -234,6 +241,6 @@ XCOMM
#ifdef USE_SOUND
install:: sounds/StartupSound
- MakeDir(EmiClockLib)
- $(INSTALL) -c $(INSTAPPFLAGS) sounds/StartupSound EmiClockLib/StartupSound
+ MakeDir(${DESTDIR}EmiClockLib)
+ $(INSTALL) -c $(INSTAPPFLAGS) sounds/StartupSound ${DESTDIR}EmiClockLib/StartupSound
#endif /* USE_SOUND */

Some files were not shown because too many files have changed in this diff Show More