diff options
author | wiz <wiz> | 2000-12-17 23:32:09 +0000 |
---|---|---|
committer | wiz <wiz> | 2000-12-17 23:32:09 +0000 |
commit | fb54ca6e79512b331f6c65b3efaf08d4e7219b5b (patch) | |
tree | 73288b5bb97270ccddd92731e20bbfff8858d306 /time/emiclock | |
parent | 143076fe6de60fa3d2351ac4e46ccb0b17a83ce5 (diff) | |
download | pkgsrc-fb54ca6e79512b331f6c65b3efaf08d4e7219b5b.tar.gz |
New category: time. Move many packages here:
misc/cal, misc/cardboard-schedule, misc/ical, misc/plan, misc/py-mxDateTime,
misc/remind, sysutils/logtime, and 19 more from x11.
Diffstat (limited to 'time/emiclock')
-rw-r--r-- | time/emiclock/Makefile | 29 | ||||
-rw-r--r-- | time/emiclock/files/md5 | 3 | ||||
-rw-r--r-- | time/emiclock/files/patch-sum | 7 | ||||
-rw-r--r-- | time/emiclock/patches/patch-aa | 47 | ||||
-rw-r--r-- | time/emiclock/patches/patch-ab | 303 | ||||
-rw-r--r-- | time/emiclock/patches/patch-ac | 22 | ||||
-rw-r--r-- | time/emiclock/patches/patch-ad | 16 | ||||
-rw-r--r-- | time/emiclock/patches/patch-ae | 16 | ||||
-rw-r--r-- | time/emiclock/pkg/COMMENT | 1 | ||||
-rw-r--r-- | time/emiclock/pkg/DESCR | 1 | ||||
-rw-r--r-- | time/emiclock/pkg/PLIST | 7 |
11 files changed, 452 insertions, 0 deletions
diff --git a/time/emiclock/Makefile b/time/emiclock/Makefile new file mode 100644 index 00000000000..69fc1b2875f --- /dev/null +++ b/time/emiclock/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/12/17 23:32:17 wiz Exp $ +# + +DISTNAME= emiclock-2.0.2 +CATEGORIES= x11 time +MASTER_SITES= ftp://ftp.noge.com/pub/EmiClock/X11/ + +MAINTAINER= minoura@netbsd.org + +USE_X11BASE= yes +USE_IMAKE= yes +USE_XAW= 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 + +post-install: + ${MKDIR} ${PREFIX}/lib/X11/ja_JP.eucJP/app-defaults + ${INSTALL_DATA} ${WRKSRC}/resources/R6/EUC/EmiClock.ad \ + ${PREFIX}/lib/X11/ja_JP.eucJP/app-defaults/EmiClock + +.include "../../mk/bsd.pkg.mk" diff --git a/time/emiclock/files/md5 b/time/emiclock/files/md5 new file mode 100644 index 00000000000..b9d27641c8b --- /dev/null +++ b/time/emiclock/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2000/12/17 23:32:17 wiz Exp $ + +MD5 (emiclock-2.0.2.tar.gz) = 8815b24b928afe4601b8d6ff4c8fc9af diff --git a/time/emiclock/files/patch-sum b/time/emiclock/files/patch-sum new file mode 100644 index 00000000000..56334f43eaa --- /dev/null +++ b/time/emiclock/files/patch-sum @@ -0,0 +1,7 @@ +$NetBSD: patch-sum,v 1.1.1.1 2000/12/17 23:32:17 wiz Exp $ + +MD5 (patch-aa) = 302715f78ebff837c6bd218d53844ef2 +MD5 (patch-ab) = eedb71b88afd0febd167b163605af3c3 +MD5 (patch-ac) = dbccf2f3a23b57cd96b05fd2773a0d5d +MD5 (patch-ad) = 1c05c23f1ef6c4dcd4bb63669c51712d +MD5 (patch-ae) = c8ca5c29838bb408cb36235e67091262 diff --git a/time/emiclock/patches/patch-aa b/time/emiclock/patches/patch-aa new file mode 100644 index 00000000000..af715b8beba --- /dev/null +++ b/time/emiclock/patches/patch-aa @@ -0,0 +1,47 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/12/17 23:32:17 wiz Exp $ + +--- include/sound.h.orig Sat Jan 11 12:12:55 1997 ++++ include/sound.h Sun May 23 10:48:03 1999 +@@ -237,6 +237,42 @@ + + #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 */ + diff --git a/time/emiclock/patches/patch-ab b/time/emiclock/patches/patch-ab new file mode 100644 index 00000000000..1e06020a546 --- /dev/null +++ b/time/emiclock/patches/patch-ab @@ -0,0 +1,303 @@ +$NetBSD: patch-ab,v 1.1.1.1 2000/12/17 23:32:18 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;HMQ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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: patch-ab,v 1.1.1.1 2000/12/17 23:32:18 wiz Exp $") ++ ++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; ++} diff --git a/time/emiclock/patches/patch-ac b/time/emiclock/patches/patch-ac new file mode 100644 index 00000000000..98eea0c4ec5 --- /dev/null +++ b/time/emiclock/patches/patch-ac @@ -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 */ diff --git a/time/emiclock/patches/patch-ad b/time/emiclock/patches/patch-ad new file mode 100644 index 00000000000..c35034d96d6 --- /dev/null +++ b/time/emiclock/patches/patch-ad @@ -0,0 +1,16 @@ +$NetBSD: patch-ad,v 1.1.1.1 2000/12/17 23:32:18 wiz Exp $ + +--- Imakefile.orig Sat Jan 11 11:35:42 1997 ++++ Imakefile Sun May 23 10:21:04 1999 +@@ -108,6 +108,11 @@ + #define StartupSound myu.au + #endif /* i386BsdArchitecture && (i386FreeBsd || FreeBSDArchitecture) */ + ++/* NetBSD */ ++#if defined(NetBSDArchitecture) ++#define StartupSound myu.au ++#endif /* NetBSDArchitecture */ ++ + #else /* USE_NETAUDIO */ + + /* netaudio (NCDaudio) */ diff --git a/time/emiclock/patches/patch-ae b/time/emiclock/patches/patch-ae new file mode 100644 index 00000000000..14fb9a075ac --- /dev/null +++ b/time/emiclock/patches/patch-ae @@ -0,0 +1,16 @@ +$NetBSD: patch-ae,v 1.1.1.1 2000/12/17 23:32:18 wiz Exp $ + +--- sound.c.orig Sat Jan 11 11:35:52 1997 ++++ sound.c Sun May 23 10:24:16 1999 +@@ -108,6 +108,11 @@ + #include "sys/FreeBSD/audio.c" + #endif /* FreeBSD */ + ++/* NetBSD */ ++#ifdef __NetBSD__ ++#include "sys/NetBSD/audio.c" ++#endif /* NetBSD */ ++ + #else /* USE_NETAUDIO */ + + /* netaudio (NCDaudio) */ diff --git a/time/emiclock/pkg/COMMENT b/time/emiclock/pkg/COMMENT new file mode 100644 index 00000000000..1c501469b0f --- /dev/null +++ b/time/emiclock/pkg/COMMENT @@ -0,0 +1 @@ +Analog clock with image in the middle diff --git a/time/emiclock/pkg/DESCR b/time/emiclock/pkg/DESCR new file mode 100644 index 00000000000..ab3b4da9a20 --- /dev/null +++ b/time/emiclock/pkg/DESCR @@ -0,0 +1 @@ +Shaped, analog clock with alarm functionality diff --git a/time/emiclock/pkg/PLIST b/time/emiclock/pkg/PLIST new file mode 100644 index 00000000000..8d7606147df --- /dev/null +++ b/time/emiclock/pkg/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/12/17 23:32:18 wiz Exp $ +bin/emiclock +lib/X11/EmiClock/myu.au +lib/X11/app-defaults/EmiClock +lib/X11/ja_JP.eucJP/app-defaults/EmiClock +man/cat1/emiclock.0 +@dirrm lib/X11/EmiClock |