Hi ports --

Attached is an update to libmikmod to 3.2.0 - needed for my upcoming port of mikmod.

OK?

~Brian
? libmikmod320.diff
Index: Makefile
===================================================================
RCS file: /cvs/ports/audio/libmikmod/Makefile,v
retrieving revision 1.22
diff -u -p -r1.22 Makefile
--- Makefile    10 Aug 2012 20:11:41 -0000      1.22
+++ Makefile    11 Jan 2013 03:23:59 -0000
@@ -2,25 +2,24 @@
 
 COMMENT=       mikmod sound library
 
-VERSION=       3.1.10
+VERSION=       3.2.0
 DISTNAME=      libmikmod-${VERSION}
-REVISION=      9
-SHARED_LIBS += mikmod               2.4      # .2.4
+SHARED_LIBS += mikmod               2.5      # .2.5
 CATEGORIES=            audio devel
 
-HOMEPAGE=      http://mikmod.raphnet.net/
+HOMEPAGE=      http://mikmod.shlomifish.org/
 
 MAINTAINER=    Peter Valchev <[email protected]>
 
+# LGPLv2.1
 PERMIT_PACKAGE_CDROM=  Yes
 PERMIT_PACKAGE_FTP=    Yes
 PERMIT_DISTFILES_CDROM=        Yes
 PERMIT_DISTFILES_FTP=  Yes
 
-MASTER_SITES=  ${HOMEPAGE}/files/libmikmod/ \
-               ${MASTER_SITE_SUNSITE:=apps/sound/libs/}
+MASTER_SITES=  ${HOMEPAGE}/files/
 
-WANTLIB=       sndio
+WANTLIB=       sndio m
 
 SEPARATE_BUILD=        Yes
 CONFIGURE_STYLE= gnu
Index: distinfo
===================================================================
RCS file: /cvs/ports/audio/libmikmod/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo    5 Apr 2007 15:37:43 -0000       1.3
+++ distinfo    11 Jan 2013 03:23:59 -0000
@@ -1,5 +1,2 @@
-MD5 (libmikmod-3.1.10.tar.gz) = FL8/GM8Bh/XatG5Co93ahA==
-RMD160 (libmikmod-3.1.10.tar.gz) = lAqGyTHuyjhFYeruuIykSKgN7dA=
-SHA1 (libmikmod-3.1.10.tar.gz) = jU2uxmsX5Vbol3ywd8QYYRGAjg0=
-SHA256 (libmikmod-3.1.10.tar.gz) = bsVgmdzZcE53BANo+E50tpac5vKvxbSkvpAYrBwBdDg=
-SIZE (libmikmod-3.1.10.tar.gz) = 528929
+SHA256 (libmikmod-3.2.0.tar.gz) = c0yEkLv5sMWHkguSQU3Po8ImeDigzfaY1fH7a7qPZh4=
+SIZE (libmikmod-3.2.0.tar.gz) = 873258
Index: patches/patch-configure
===================================================================
RCS file: patches/patch-configure
diff -N patches/patch-configure
--- patches/patch-configure     11 Jan 2010 04:25:26 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-configure,v 1.1 2010/01/11 04:25:26 jakemsr Exp $
---- configure.orig     Sat Dec 19 01:48:17 2009
-+++ configure  Sat Dec 19 01:48:17 2009
-@@ -3682,7 +3682,7 @@ done
-                       libmikmod_driver_hp=yes
-               fi
-       ;;
--      NetBSD|OpenBSD)
-+      NetBSD)
-               for ac_hdr in sys/audioio.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Index: patches/patch-drivers_drv_wav_c
===================================================================
RCS file: patches/patch-drivers_drv_wav_c
diff -N patches/patch-drivers_drv_wav_c
--- patches/patch-drivers_drv_wav_c     16 Jun 2003 04:30:57 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,21 +0,0 @@
-$OpenBSD: patch-drivers_drv_wav_c,v 1.1 2003/06/16 04:30:57 pvalchev Exp $
---- drivers/drv_wav.c.orig     Sat Jan 12 18:00:14 2002
-+++ drivers/drv_wav.c  Sun Jun 15 22:26:13 2003
-@@ -148,6 +148,17 @@ static void WAV_Update(void)
-       ULONG done;
- 
-       done=VC_WriteBytes(audiobuffer,BUFFERSIZE);
-+#if BYTE_ORDER == BIG_ENDIAN
-+      if (md_mode & DMODE_16BITS) {
-+              ULONG i;
-+              SWORD *w = audiobuffer;
-+
-+              for (i = 0; i < done; i += 2) {
-+                      *w = ((*w & 0xff) << 8) | ((*w & 0xff00) >> 8);
-+                      w++;
-+              }
-+      }
-+#endif
-       _mm_write_UBYTES(audiobuffer,done,wavout);
-       dumpsize+=done;
- }
Index: patches/patch-include_mikmod_h_in
===================================================================
RCS file: patches/patch-include_mikmod_h_in
diff -N patches/patch-include_mikmod_h_in
--- patches/patch-include_mikmod_h_in   11 Jan 2010 04:25:26 -0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,20 +0,0 @@
-$OpenBSD: patch-include_mikmod_h_in,v 1.2 2010/01/11 04:25:26 jakemsr Exp $
---- include/mikmod.h.in.orig   Thu Jan 17 14:39:38 2002
-+++ include/mikmod.h.in        Fri Dec 18 23:53:46 2009
-@@ -85,7 +85,7 @@ typedef char CHAR;
- 
- @DOES_NOT_HAVE_SIGNED@
- 
--#if defined(__arch64__) || defined(__alpha)
-+#if defined(__arch64__) || defined(__alpha) || defined(__LP64__)
- /* 64 bit architectures */
- 
- typedef signed char     SBYTE;      /* 1 byte, signed */
-@@ -669,6 +669,7 @@ MIKMODAPI extern struct MDRIVER drv_hp;     /* HP-UX a
- MIKMODAPI extern struct MDRIVER drv_oss;    /* OpenSound System 
(Linux,FreeBSD...) */
- MIKMODAPI extern struct MDRIVER drv_sgi;    /* SGI audio library */
- MIKMODAPI extern struct MDRIVER drv_sun;    /* Sun/NetBSD/OpenBSD audio 
device */
-+MIKMODAPI extern struct MDRIVER drv_sndio;  /* sndio, baby! */
- 
- MIKMODAPI extern struct MDRIVER drv_dart;   /* OS/2 Direct Audio RealTime */
- MIKMODAPI extern struct MDRIVER drv_os2;    /* OS/2 MMPM/2 */
Index: patches/patch-include_mikmod_internals_h
===================================================================
RCS file: patches/patch-include_mikmod_internals_h
diff -N patches/patch-include_mikmod_internals_h
--- patches/patch-include_mikmod_internals_h    14 Sep 2004 22:42:30 -0000      
1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-include_mikmod_internals_h,v 1.1 2004/09/14 22:42:30 brad Exp $
---- include/mikmod_internals.h.orig    Wed Sep  1 15:32:26 2004
-+++ include/mikmod_internals.h Wed Sep  1 15:32:42 2004
-@@ -50,7 +50,7 @@ extern "C" {
- /*========== More type definitions */
- 
- /* SLONGLONG: 64bit, signed */
--#if defined (__arch64__) || defined(__alpha)
-+#if defined (__arch64__) || defined(__alpha) || defined(__LP64__)
- typedef long          SLONGLONG;
- #define NATIVE_64BIT_INT
- #elif defined(__WATCOMC__)
Index: patches/patch-libmikmod_Makefile_in
===================================================================
RCS file: patches/patch-libmikmod_Makefile_in
diff -N patches/patch-libmikmod_Makefile_in
--- patches/patch-libmikmod_Makefile_in 11 Jan 2010 04:25:26 -0000      1.3
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,29 +0,0 @@
-$OpenBSD: patch-libmikmod_Makefile_in,v 1.3 2010/01/11 04:25:26 jakemsr Exp $
---- libmikmod/Makefile.in.orig Wed Jan 23 14:15:14 2002
-+++ libmikmod/Makefile.in      Sat Dec 19 00:06:55 2009
-@@ -30,13 +30,13 @@ MKINSTALLDIRS=${top_srcdir}/mkinstalldirs
- 
- DEFS=@DEFS@
- CFLAGS=@CFLAGS@ -Dunix
--COMPILE=$(LIBTOOL) --silent --mode=compile $(CC) $(DEFS) $(CFLAGS) 
-I$(top_srcdir)/include -I$(top_builddir) -I$(top_builddir)/include 
-DMIKMOD_H=$(top_srcdir)/include/mikmod.h
-+COMPILE=$(LIBTOOL) --mode=compile $(CC) $(DEFS) $(CFLAGS) 
-I$(top_srcdir)/include -I$(top_builddir) -I$(top_builddir)/include 
-DMIKMOD_H=$(top_srcdir)/include/mikmod.h
- 
- LIB = libmikmod.la
- OBJ = $(LIBOBJS) $(DLOBJS) \
-       drv_AF.lo drv_aix.lo drv_alsa.lo drv_esd.lo drv_hp.lo drv_nos.lo \
-       drv_oss.lo drv_pipe.lo drv_raw.lo drv_sam9407.lo drv_sgi.lo \
--      drv_stdout.lo drv_sun.lo drv_ultra.lo drv_wav.lo \
-+      drv_stdout.lo drv_sun.lo drv_sndio.lo drv_ultra.lo drv_wav.lo \
-       load_669.lo load_amf.lo load_dsm.lo load_far.lo load_gdm.lo load_it.lo  
\
-       load_imf.lo load_m15.lo load_med.lo load_mod.lo load_mtm.lo load_okt.lo 
\
-       load_s3m.lo load_stm.lo load_stx.lo load_ult.lo load_uni.lo load_xm.lo \
-@@ -117,6 +117,9 @@ drv_stdout.lo:     $(top_srcdir)/drivers/drv_stdout.c \
- drv_sun.lo:   $(top_srcdir)/drivers/drv_sun.c \
-                       $(top_builddir)/include/mikmod.h 
$(top_srcdir)/include/mikmod_internals.h
-       $(COMPILE) -c $(top_srcdir)/drivers/drv_sun.c
-+drv_sndio.lo: $(top_srcdir)/drivers/drv_sndio.c \
-+                      $(top_builddir)/include/mikmod.h 
$(top_srcdir)/include/mikmod_internals.h
-+      $(COMPILE) -c $(top_srcdir)/drivers/drv_sndio.c
- drv_ultra.lo: $(top_srcdir)/drivers/drv_ultra.c \
-                       $(top_builddir)/include/mikmod.h 
$(top_srcdir)/include/mikmod_internals.h
-       $(COMPILE) -c $(top_srcdir)/drivers/drv_ultra.c
Index: patches/patch-libmikmod_m4
===================================================================
RCS file: patches/patch-libmikmod_m4
diff -N patches/patch-libmikmod_m4
--- patches/patch-libmikmod_m4  22 Dec 2008 20:28:18 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-libmikmod_m4,v 1.1 2008/12/22 20:28:18 naddy Exp $
---- libmikmod.m4.orig  Mon Dec 22 21:02:20 2008
-+++ libmikmod.m4       Mon Dec 22 21:02:37 2008
-@@ -8,7 +8,7 @@ dnl AM_PATH_LIBMIKMOD([MINIMUM-VERSION, [ACTION-IF-FOU
- dnl Test for libmikmod, and define LIBMIKMOD_CFLAGS, LIBMIKMOD_LIBS and
- dnl LIBMIKMOD_LDADD
- dnl
--AC_DEFUN(AM_PATH_LIBMIKMOD,
-+AC_DEFUN([AM_PATH_LIBMIKMOD],
- [dnl 
- dnl Get the cflags and libraries from the libmikmod-config script
- dnl
Index: patches/patch-playercode_mdreg_c
===================================================================
RCS file: patches/patch-playercode_mdreg_c
diff -N patches/patch-playercode_mdreg_c
--- patches/patch-playercode_mdreg_c    11 Jan 2010 04:25:26 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,13 +0,0 @@
-$OpenBSD: patch-playercode_mdreg_c,v 1.1 2010/01/11 04:25:26 jakemsr Exp $
---- playercode/mdreg.c.orig    Fri Dec 18 23:51:15 2009
-+++ playercode/mdreg.c Fri Dec 18 23:51:44 2009
-@@ -66,6 +66,9 @@ void _mm_registeralldrivers(void)
- #ifdef DRV_SUN
-       _mm_registerdriver(&drv_sun);
- #endif
-+#ifdef DRV_SNDIO
-+      _mm_registerdriver(&drv_sndio);
-+#endif
- #ifdef DRV_DART
-       _mm_registerdriver(&drv_dart);
- #endif
Index: patches/patch-playercode_mplayer_c
===================================================================
RCS file: patches/patch-playercode_mplayer_c
diff -N patches/patch-playercode_mplayer_c
--- patches/patch-playercode_mplayer_c  23 Oct 2008 22:06:28 -0000      1.5
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,57 +0,0 @@
-$OpenBSD: patch-playercode_mplayer_c,v 1.5 2008/10/23 22:06:28 miod Exp $
---- playercode/mplayer.c.orig  Mon Jan 21 21:23:56 2002
-+++ playercode/mplayer.c       Wed Oct 22 19:56:49 2008
-@@ -254,7 +254,7 @@ static int MP_FindEmptyChannel(MODULE *mod)
-                  Voice_Stopped_internal(t))
-                       return t;
- 
--      tvol=0xffffffUL;t=0;a=mod->voice;
-+      tvol=0xffffffUL;t=-1;a=mod->voice;
-       for (k=0;k<md_sngchn;k++,a++) {
-               /* allow us to take over a nonexisting sample */
-               if (!a->main.s)
-@@ -367,9 +367,9 @@ static SWORD StartEnvelope(ENVPR *t,UBYTE flg,UBYTE pt
-       }
- 
-       /* Fit in the envelope, still */
--      if (t->a >= t->pts)
-+      if (t->a >= t->pts && t->pts != 0)
-               t->a = t->pts - 1;
--      if (t->b >= t->pts)
-+      if (t->b >= t->pts && t->pts != 0)
-               t->b = t->pts-1;
- 
-       return t->env[t->a].val;
-@@ -442,24 +442,22 @@ static SWORD ProcessEnvelope(MP_VOICE *aout, ENVPR *t,
-                       } else
-                       /*
-                        * Non looping situations.
--                       * Start to fade if the volume envelope is finished.
-                        */
--                      if (p > t->env[t->pts - 1].pos) {
-+                      if (a != b)
-+                              v = InterpolateEnv(p, &t->env[a], &t->env[b]);
-+                      else
-                               v = t->env[a].val;
-+
-+                      /*
-+                       * Start to fade if the volume envelope is finished.
-+                       */
-+                      if (p >= t->env[t->pts - 1].pos) {
-                               if (t->flg & EF_VOLENV) {
-                                       aout->main.keyoff |= KEY_FADE;
-                                       if (!v)
-                                               aout->main.fadevol = 0;
-                               }
-                       } else {
--                              /*
--                               * Regular processing : compute value, progress 
one step.
--                               */
--                              if (a != b)
--                                      v = InterpolateEnv(p, &t->env[a], 
&t->env[b]);
--                              else
--                                      v = t->env[a].val;
--
-                               p++;
-                               /* did pointer reach point b? */
-                               if (p >= t->env[b].pos)

Reply via email to