summaryrefslogtreecommitdiff
path: root/x11/emiclock
diff options
context:
space:
mode:
Diffstat (limited to 'x11/emiclock')
-rw-r--r--x11/emiclock/Makefile29
-rw-r--r--x11/emiclock/files/md53
-rw-r--r--x11/emiclock/files/patch-sum7
-rw-r--r--x11/emiclock/patches/patch-aa47
-rw-r--r--x11/emiclock/patches/patch-ab303
-rw-r--r--x11/emiclock/patches/patch-ac22
-rw-r--r--x11/emiclock/patches/patch-ad16
-rw-r--r--x11/emiclock/patches/patch-ae16
-rw-r--r--x11/emiclock/pkg/COMMENT1
-rw-r--r--x11/emiclock/pkg/DESCR1
-rw-r--r--x11/emiclock/pkg/PLIST7
11 files changed, 0 insertions, 452 deletions
diff --git a/x11/emiclock/Makefile b/x11/emiclock/Makefile
deleted file mode 100644
index ec0c41a33a1..00000000000
--- a/x11/emiclock/Makefile
+++ /dev/null
@@ -1,29 +0,0 @@
-# $NetBSD: Makefile,v 1.9 2000/09/03 13:45:21 wiz Exp $
-#
-
-DISTNAME= emiclock-2.0.2
-CATEGORIES= x11
-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/x11/emiclock/files/md5 b/x11/emiclock/files/md5
deleted file mode 100644
index 7f5ac16252e..00000000000
--- a/x11/emiclock/files/md5
+++ /dev/null
@@ -1,3 +0,0 @@
-$NetBSD: md5,v 1.2 1999/10/11 15:32:17 minoura Exp $
-
-MD5 (emiclock-2.0.2.tar.gz) = 8815b24b928afe4601b8d6ff4c8fc9af
diff --git a/x11/emiclock/files/patch-sum b/x11/emiclock/files/patch-sum
deleted file mode 100644
index 33e10bf418e..00000000000
--- a/x11/emiclock/files/patch-sum
+++ /dev/null
@@ -1,7 +0,0 @@
-$NetBSD: patch-sum,v 1.2 2000/07/14 05:06:38 minoura Exp $
-
-MD5 (patch-aa) = 302715f78ebff837c6bd218d53844ef2
-MD5 (patch-ab) = eedb71b88afd0febd167b163605af3c3
-MD5 (patch-ac) = dbccf2f3a23b57cd96b05fd2773a0d5d
-MD5 (patch-ad) = 1c05c23f1ef6c4dcd4bb63669c51712d
-MD5 (patch-ae) = c8ca5c29838bb408cb36235e67091262
diff --git a/x11/emiclock/patches/patch-aa b/x11/emiclock/patches/patch-aa
deleted file mode 100644
index 12b230e5ed3..00000000000
--- a/x11/emiclock/patches/patch-aa
+++ /dev/null
@@ -1,47 +0,0 @@
-$NetBSD: patch-aa,v 1.1 1999/06/10 00:16:25 hubertf 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/x11/emiclock/patches/patch-ab b/x11/emiclock/patches/patch-ab
deleted file mode 100644
index a08af98c3b6..00000000000
--- a/x11/emiclock/patches/patch-ab
+++ /dev/null
@@ -1,303 +0,0 @@
-$NetBSD: patch-ab,v 1.1 1999/06/10 00:16:25 hubertf 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$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(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 1999/06/10 00:16:25 hubertf 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/x11/emiclock/patches/patch-ac b/x11/emiclock/patches/patch-ac
deleted file mode 100644
index e4e84582b9b..00000000000
--- a/x11/emiclock/patches/patch-ac
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-ac,v 1.2 2000/07/14 05:06:38 minoura 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/x11/emiclock/patches/patch-ad b/x11/emiclock/patches/patch-ad
deleted file mode 100644
index 217415d354a..00000000000
--- a/x11/emiclock/patches/patch-ad
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-ad,v 1.1 1999/06/10 00:16:25 hubertf 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/x11/emiclock/patches/patch-ae b/x11/emiclock/patches/patch-ae
deleted file mode 100644
index 23b3d44db2f..00000000000
--- a/x11/emiclock/patches/patch-ae
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-ae,v 1.1 1999/06/10 00:16:25 hubertf 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/x11/emiclock/pkg/COMMENT b/x11/emiclock/pkg/COMMENT
deleted file mode 100644
index 1c501469b0f..00000000000
--- a/x11/emiclock/pkg/COMMENT
+++ /dev/null
@@ -1 +0,0 @@
-Analog clock with image in the middle
diff --git a/x11/emiclock/pkg/DESCR b/x11/emiclock/pkg/DESCR
deleted file mode 100644
index ab3b4da9a20..00000000000
--- a/x11/emiclock/pkg/DESCR
+++ /dev/null
@@ -1 +0,0 @@
-Shaped, analog clock with alarm functionality
diff --git a/x11/emiclock/pkg/PLIST b/x11/emiclock/pkg/PLIST
deleted file mode 100644
index d1634d22b76..00000000000
--- a/x11/emiclock/pkg/PLIST
+++ /dev/null
@@ -1,7 +0,0 @@
-@comment $NetBSD: PLIST,v 1.3 2000/05/23 18:58:02 dmcmahill 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