From 940239c6779bf29ecc6bad943177e912082bdd7c Mon Sep 17 00:00:00 2001 From: fgsch Date: Fri, 7 Jun 2002 18:38:45 +0000 Subject: [PATCH] update to eboard 0.5.2. remove sound diffs that are now in the distro. --- games/eboard/Makefile | 6 +- games/eboard/distinfo | 6 +- games/eboard/patches/patch-config_h_in | 13 ----- games/eboard/patches/patch-configure_in | 11 ---- games/eboard/patches/patch-sound_cc | 76 ++----------------------- 5 files changed, 10 insertions(+), 102 deletions(-) delete mode 100644 games/eboard/patches/patch-config_h_in delete mode 100644 games/eboard/patches/patch-configure_in diff --git a/games/eboard/Makefile b/games/eboard/Makefile index d43caf21b77..e6bd29f0b66 100644 --- a/games/eboard/Makefile +++ b/games/eboard/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.13 2002/05/13 12:31:07 fgsch Exp $ +# $OpenBSD: Makefile,v 1.14 2002/06/07 18:38:45 fgsch Exp $ COMMENT= "gtk+ chess board interface" -DISTNAME= eboard-0.5.1 +DISTNAME= eboard-0.5.2 CATEGORIES= games NEED_VERSION= 1.528 @@ -20,7 +20,7 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=eboard/} LIB_DEPENDS= Imlib.19,gdk_imlib::graphics/imlib USE_X11= Yes -CONFIGURE_STYLE= autoconf +CONFIGURE_STYLE= gnu DOCS= Crafty.txt FICS-Timeseal.txt GNUChess4.txt GNUChess5.txt \ Scripts.txt Sjeng.txt Themes.txt diff --git a/games/eboard/distinfo b/games/eboard/distinfo index 9090bbfd7a5..7fb43d4dc41 100644 --- a/games/eboard/distinfo +++ b/games/eboard/distinfo @@ -1,3 +1,3 @@ -MD5 (eboard-0.5.1.tar.gz) = da501b3e4a8445a2e6c4194832565975 -RMD160 (eboard-0.5.1.tar.gz) = ddd7dafdf69733bfde87d0fbd5ec4328496853db -SHA1 (eboard-0.5.1.tar.gz) = 17e1f839ddb7613f5f1e2305676ca0fa34e770c7 +MD5 (eboard-0.5.2.tar.gz) = abb91d9681352d185015efc2deabdcd9 +RMD160 (eboard-0.5.2.tar.gz) = a1a156e6ae60c3cbeaf580329125e7b59818b56a +SHA1 (eboard-0.5.2.tar.gz) = 8a6e6e553c4a64040ca1a227eda5dea8bfa129b8 diff --git a/games/eboard/patches/patch-config_h_in b/games/eboard/patches/patch-config_h_in deleted file mode 100644 index 8c7bd3c78c9..00000000000 --- a/games/eboard/patches/patch-config_h_in +++ /dev/null @@ -1,13 +0,0 @@ -$OpenBSD: patch-config_h_in,v 1.1 2002/05/02 07:46:24 fgsch Exp $ ---- config.h.in.orig Wed May 1 21:57:53 2002 -+++ config.h.in Wed May 1 21:58:20 2002 -@@ -17,6 +17,9 @@ - /* Define if you have the header file. */ - #undef HAVE_SYS_SOUNDCARD_H - -+/* Define if you have the header file. */ -+#undef HAVE_SYS_AUDIOIO_H -+ - /* Define if you have the header file. */ - #undef HAVE_VECTOR - diff --git a/games/eboard/patches/patch-configure_in b/games/eboard/patches/patch-configure_in deleted file mode 100644 index 318b03d60d6..00000000000 --- a/games/eboard/patches/patch-configure_in +++ /dev/null @@ -1,11 +0,0 @@ -$OpenBSD: patch-configure_in,v 1.1 2002/05/02 07:46:24 fgsch Exp $ ---- configure.in.orig Wed May 1 21:57:45 2002 -+++ configure.in Wed May 1 21:58:31 2002 -@@ -37,6 +37,7 @@ AC_CHECK_HEADERS(vector) - AC_CHECK_HEADERS(string) - - AC_CHECK_HEADERS(sys/soundcard.h) -+AC_CHECK_HEADERS(sys/audioio.h) - - AC_PATH_PROGS(GTKCONFIG,gtk-config gtk12-config gtk13-config,no) - diff --git a/games/eboard/patches/patch-sound_cc b/games/eboard/patches/patch-sound_cc index 9c013a548ea..05361177298 100644 --- a/games/eboard/patches/patch-sound_cc +++ b/games/eboard/patches/patch-sound_cc @@ -1,16 +1,7 @@ -$OpenBSD: patch-sound_cc,v 1.2 2002/05/02 09:38:10 fgsch Exp $ ---- sound.cc.orig Tue Apr 23 22:16:33 2002 -+++ sound.cc Thu May 2 05:33:34 2002 -@@ -45,6 +45,8 @@ - - #ifdef HAVE_SYS_SOUNDCARD_H - #include -+#elif defined HAVE_SYS_AUDIOIO_H -+#include - #endif - - SoundEvent::SoundEvent() { -@@ -52,7 +54,7 @@ SoundEvent::SoundEvent() { +$OpenBSD: patch-sound_cc,v 1.3 2002/06/07 18:38:45 fgsch Exp $ +--- sound.cc.orig Fri Jun 7 03:24:53 2002 ++++ sound.cc Fri Jun 7 03:25:34 2002 +@@ -65,7 +65,7 @@ SoundEvent::SoundEvent() { Pitch=800; Duration=250; Count=1; @@ -19,62 +10,3 @@ $OpenBSD: patch-sound_cc,v 1.2 2002/05/02 09:38:10 fgsch Exp $ ExtraData[0]=0; } -@@ -219,6 +221,58 @@ void SoundEvent::sine_beep(char *device, - i+=::write(fd,&wave[i],ts-i); - - ioctl(fd,SNDCTL_DSP_POST,0); -+ -+ leave1: -+ close(fd); -+ leave2: -+ free(wave); -+#elif defined HAVE_SYS_AUDIOIO_H -+ audio_info_t ai; -+ int rate=11025; // Hz -+ int interval; -+ -+ unsigned char *wave; -+ int bl,fd,i,ts; -+ double r,s; -+ -+ interval=120*rate/1000; // 120 msec -+ -+ wave=(unsigned char *)malloc(ts = (Count*(bl=(rate*duration)/1000) + (Count-1)*interval) ); -+ -+ if (!wave) -+ /* return; */ -+ memset(wave,127,ts); -+ -+ for(i=0;i