summaryrefslogtreecommitdiff
path: root/audio/libmikmod/patches
diff options
context:
space:
mode:
authormycroft <mycroft>2002-07-13 01:03:35 +0000
committermycroft <mycroft>2002-07-13 01:03:35 +0000
commitacf9e07faa074e4b8553c1e2e4552cab63f88695 (patch)
treea33be5bc848f7ca43450e75e8e70021504a8d09d /audio/libmikmod/patches
parenta6eacc38ab95ef00510b80a870cdbc67828e294e (diff)
downloadpkgsrc-acf9e07faa074e4b8553c1e2e4552cab63f88695.tar.gz
Update to libmikmod 3.1.10. Numerous bug fixes across the board; output is
noticably better. Tested with all the pkgs that use it: mikmod, xmms, xpuyopuyo, xscorch.
Diffstat (limited to 'audio/libmikmod/patches')
-rw-r--r--audio/libmikmod/patches/patch-ac16
-rw-r--r--audio/libmikmod/patches/patch-ad70
2 files changed, 14 insertions, 72 deletions
diff --git a/audio/libmikmod/patches/patch-ac b/audio/libmikmod/patches/patch-ac
index 4119f50ca4c..b88db973800 100644
--- a/audio/libmikmod/patches/patch-ac
+++ b/audio/libmikmod/patches/patch-ac
@@ -1,8 +1,8 @@
-$NetBSD: patch-ac,v 1.4 2001/06/19 16:00:06 jlam Exp $
+$NetBSD: patch-ac,v 1.5 2002/07/13 01:03:35 mycroft Exp $
---- configure.orig Mon Feb 14 15:20:17 2000
-+++ configure
-@@ -1862,6 +1862,7 @@
+--- configure.orig Tue Jan 22 01:21:19 2002
++++ configure Thu Jul 11 02:05:35 2002
+@@ -1865,6 +1865,7 @@
fi
@@ -10,15 +10,15 @@ $NetBSD: patch-ac,v 1.4 2001/06/19 16:00:06 jlam Exp $
# Check if makeinfo support html output. If it doesn't, pretend it's missing
# rather than failing rebuilding the documentation.
echo $ac_n "checking if makeinfo supports html output""... $ac_c" 1>&6
-@@ -1882,6 +1883,7 @@
- then
- MAKEINFO="$missing_dir/missing makeinfo"
+@@ -1887,6 +1888,7 @@
+ else
+ MAKEINFO="$MAKEINFO --no-split"
fi
+fi
# ====================
# Check for libraries.
-@@ -2447,7 +2449,7 @@
+@@ -2667,7 +2669,7 @@
if eval "test \"`echo '$''{'libmikmod_cv_esd_needs_alsa'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
diff --git a/audio/libmikmod/patches/patch-ad b/audio/libmikmod/patches/patch-ad
index b7301959636..a26023f7b11 100644
--- a/audio/libmikmod/patches/patch-ad
+++ b/audio/libmikmod/patches/patch-ad
@@ -1,74 +1,16 @@
-$NetBSD: patch-ad,v 1.4 2001/03/31 03:03:09 mycroft Exp $
+$NetBSD: patch-ad,v 1.5 2002/07/13 01:03:35 mycroft Exp $
---- drivers/drv_sun.c.orig Mon Feb 14 22:10:21 2000
-+++ drivers/drv_sun.c Sat Mar 31 03:01:36 2001
-@@ -61,7 +61,7 @@
- #include <sys/audioio.h>
- #endif
-
--#define DEFAULT_FRAGSIZE 12
-+#define DEFAULT_FRAGSIZE 13
-
- #if !defined __NetBSD__ && !defined __OpenBSD__
- #ifdef HAVE_SUN_AUDIOIO_H
-@@ -72,26 +72,12 @@
+--- drivers/drv_sun.c.orig Sun Jan 13 00:58:57 2002
++++ drivers/drv_sun.c Thu Jul 11 02:12:04 2002
+@@ -79,9 +79,9 @@
#endif
/* Sound device to open */
-#ifdef SUNOS4
+#ifndef SOLARIS /* SunOS, NetBSD */
#define SOUNDDEVICE "/dev/sound"
- #else /* Solaris, *BSD */
+-#else /* Solaris, *BSD */
++#else /* Solaris */
#define SOUNDDEVICE "/dev/audio"
#endif
--/* Compatibility defines, for old *BSD or SunOS systems */
--#ifndef AUDIO_ENCODING_PCM16
--#define AUDIO_ENCODING_PCM16 AUDIO_ENCODING_LINEAR
--#endif
--#ifndef AUDIO_ENCODING_PCM8
--#define AUDIO_ENCODING_PCM8 AUDIO_ENCODING_LINEAR8
--#endif
--#ifndef AUDIO_ENCODING_SLINEAR_LE
--#define AUDIO_ENCODING_SLINEAR_LE AUDIO_ENCODING_PCM16
--#endif
--#ifndef AUDIO_ENCODING_ULINEAR_LE
--#define AUDIO_ENCODING_ULINEAR_LE AUDIO_ENCODING_PCM8
--#endif
--
- /* Compatibility defines, for old *BSD systems */
- #ifndef AUDIO_SPEAKER
- #define AUDIO_SPEAKER 0x01
-@@ -262,7 +248,7 @@
- md_mode |= (DMODE_STEREO | DMODE_16BITS);
- play_precision = 16;
- play_stereo = 2;
-- play_encoding = AUDIO_ENCODING_SLINEAR_LE;
-+ play_encoding = AUDIO_ENCODING_LINEAR;
- }
- #endif
- }
-@@ -273,13 +259,7 @@
- if ((play_precision == 8) && (play_stereo == 1) &&
- (play_rate <= 8000)) play_encoding = AUDIO_ENCODING_ULAW;
- else
--#ifdef SUNOS4
- play_encoding = AUDIO_ENCODING_LINEAR;
--#else
-- play_encoding =
-- (play_precision ==
-- 16) ? AUDIO_ENCODING_SLINEAR_LE : AUDIO_ENCODING_ULINEAR_LE;
--#endif
- }
-
- /* get current audio settings if we want to keep the playback output
-@@ -319,7 +299,9 @@
- }
- if ((audioinfo.play.precision != play_precision) ||
- (audioinfo.play.channels != play_stereo) ||
-+#if 0
- (audioinfo.play.encoding != play_encoding) ||
-+#endif
- (audioinfo.play.sample_rate != play_rate)) {
- _mm_errno = MMERR_SUN_INIT;
- return 1;