Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Sep 2008 11:44:42 GMT
From:      bf <bf2006a@yahoo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/127468: [PATCH]audio/wavpack: update to 4.50.1
Message-ID:  <200809181144.m8IBigxk072448@www.freebsd.org>
Resent-Message-ID: <200809181150.m8IBo1KD024699@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         127468
>Category:       ports
>Synopsis:       [PATCH]audio/wavpack: update to 4.50.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 18 11:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     bf
>Release:        7-STABLE i386
>Organization:
-
>Environment:
>Description:
Changes:

Library
 ----------------------------------
  fixed: alignment fault when manipulating APEv2 tags (non-x86 only)
  fixed: build on UNIX via elimination of non-standard strnlen()
  added: dynamic noise shaping for improved hybrid quality
  added: option to merge blocks of similar redundancy
  added: ability to store and retrieve extra mode level
  fixed: alignment fault on some big-endian machines
  fixed: compiling with enable-mmx on gcc 4.3.x (thanks Joachim)
  improved: allow bitrate to be calculated for files down to 1/10 second
  improved: decoding of corrupt files (prevents heap overrun crashes)

command-line encoder
 -----------------------------------------
  added: dynamic noise shaping for improved hybrid quality
  added: --channel-order option to reorder nonconforming multichannel files
  added: --merge-blocks option to optimize storage of LossyWAV output files
  added: ignore -o on Windows for compatibility with Linux version
  fixed: alignment fault on some big-endian machines
  improved: reformatted and expanded --help display

command-line decoder
 ------------------------------------------
  fixed: don't ignore fractions of seconds in --skip option
  added: show extra level and dns status for newer files (-s command)
  added: ignore -o on Windows for compatibility with Linux version
  improved: decoding of corrupt files (prevents heap overrun crashes)
  improved: display bitrate for files down to 1/10 second

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN wavpack.orig/Makefile wavpack/Makefile
--- wavpack.orig/Makefile	2008-09-18 01:55:46.051936565 -0400
+++ wavpack/Makefile	2008-09-18 03:32:47.071400212 -0400
@@ -6,28 +6,29 @@
 #
 
 PORTNAME=	wavpack
-PORTVERSION=	4.41.0
+PORTVERSION=	4.50.1
 CATEGORIES=	audio
 MASTER_SITES=	http://www.wavpack.com/
 
 MAINTAINER=	multimedia@FreeBSD.org
-COMMENT=	Compress (and restore) both 16 and 24-bit audio files in .wav format
+COMMENT=	Compress and restore 8-32 bit uncompressed PCM .wav files
 
 USE_BZIP2=	yes
 USE_GNOME=	gnomehack gnometarget pkgconfig
 USE_ICONV=	yes
-USE_DOS2UNIX=	cli/*.[ch] include/*.h src/*.[ch]
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib"
 
-FILES=		include/wavpack.h src/unpack3.c src/words.c cli/md5.c
+OPTIONS=	MMX "Enable MMX optimizations" Off
 
-post-patch:
-.for i in ${FILES}
-	@cd ${WRKSRC} && ${CP} ${i} ${i}.orig && \
-		col < ${i}.orig > ${i}
-.endfor
+.include <bsd.port.pre.mk>
 
-.include <bsd.port.mk>
+.ifdef(WITH_MMX)
+CONFIGURE_ARGS+=	--enable-mmx
+.else
+CONFIGURE_ARGS+=	--disable-mmx
+.endif
+
+.include <bsd.port.post.mk>
diff -ruN wavpack.orig/distinfo wavpack/distinfo
--- wavpack.orig/distinfo	2008-09-18 01:55:46.051936565 -0400
+++ wavpack/distinfo	2008-09-18 03:32:47.071400212 -0400
@@ -1,3 +1,3 @@
-MD5 (wavpack-4.41.0.tar.bz2) = 6a13edeae437498db78fe528d9e95144
-SHA256 (wavpack-4.41.0.tar.bz2) = 7a40748e07a18f86438eb79ebbb0b6e321d0374f683c6cad91f04c5251e7203c
-SIZE (wavpack-4.41.0.tar.bz2) = 329241
+MD5 (wavpack-4.50.1.tar.bz2) = 2c9d7e3672f60070d4fd2c86c924a3b4
+SHA256 (wavpack-4.50.1.tar.bz2) = 29c036d10fb8bcb6daa58718d112394291887fc0e9b108851017218184483954
+SIZE (wavpack-4.50.1.tar.bz2) = 375792
diff -ruN wavpack.orig/files/patch-wavpack.c wavpack/files/patch-wavpack.c
--- wavpack.orig/files/patch-wavpack.c	2008-09-18 01:55:46.041932221 -0400
+++ wavpack/files/patch-wavpack.c	1969-12-31 19:00:00.000000000 -0500
@@ -1,22 +0,0 @@
-
-$FreeBSD: ports/audio/wavpack/files/patch-wavpack.c,v 1.2 2007/01/03 02:19:22 mezz Exp $
-
---- cli/wavpack.c.orig
-+++ cli/wavpack.c
-@@ -1604,6 +1604,7 @@
-     MultiByteToWideChar (CP_ACP, 0, string, -1, temp, max_chars + 1);
-     WideCharToUTF8 (temp, (uchar *) string, len);
- #else
-+    iconv_t converter;
-     char *temp = malloc (len);
-     char *outp = temp;
-     char *inp = string;
-@@ -1614,7 +1615,7 @@
- 
-     memset(temp, 0, len);
-     old_locale = setlocale (LC_CTYPE, "");
--    iconv_t converter = iconv_open ("UTF-8", "");
-+    converter = iconv_open ("UTF-8", "");
-     err = iconv (converter, &inp, &insize, &outp, &outsize);
-     iconv_close (converter);
-     setlocale (LC_CTYPE, old_locale);
diff -ruN wavpack.orig/files/patch-wvunpack.c wavpack/files/patch-wvunpack.c
--- wavpack.orig/files/patch-wvunpack.c	2008-09-18 01:55:46.051936565 -0400
+++ wavpack/files/patch-wvunpack.c	1969-12-31 19:00:00.000000000 -0500
@@ -1,20 +0,0 @@
---- cli/wvunpack.c.orig	Thu Apr  6 05:48:33 2006
-+++ cli/wvunpack.c	Mon May 15 03:42:14 2006
-@@ -1374,6 +1374,8 @@
- static void UTF8ToAnsi (char *string, int len)
- {
-     int max_chars = (int) strlen (string);
-+
-+    iconv_t converter;
- #if defined (WIN32)
-     unsigned short *temp = malloc ((max_chars + 1) * 2);
-     int act_chars = UTF8ToWideChar (string, temp);
-@@ -1400,7 +1402,7 @@
- 
-     memset(temp, 0, len);
-     old_locale = setlocale (LC_CTYPE, "");
--    iconv_t converter = iconv_open ("", "UTF-8");
-+    converter = iconv_open ("", "UTF-8");
-     err = iconv (converter, &inp, &insize, &outp, &outsize);
-     iconv_close (converter);
-     setlocale (LC_CTYPE, old_locale);
diff -ruN wavpack.orig/pkg-descr wavpack/pkg-descr
--- wavpack.orig/pkg-descr	2008-09-18 01:55:46.051936565 -0400
+++ wavpack/pkg-descr	2008-09-18 03:32:47.091401357 -0400
@@ -1,7 +1,7 @@
-WavPack allows users to compress (and restore) both 16 and 24-bit audio files
-in the .WAV format. It also supports multichannel streams and high frequency
+WavPack allows users to compress (and restore) 8-32 bit uncompressed PCM
+.WAV audio files. It supports multichannel streams and high frequency
 sampling rates. Like other lossless compression schemes the data reduction
-varies with the source, but it is generally between 25% and 50% for typical
+varies with the source, but it is generally between 30% and 70% for typical
 popular music and somewhat better than that for classical music and other
 sources with greater dynamic range.
 


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809181144.m8IBigxk072448>