[Midnightbsd-cvs] mports: audio/wavpack: Add audio/wavpack
ctriv at midnightbsd.org
ctriv at midnightbsd.org
Fri Apr 11 22:27:13 EDT 2008
Log Message:
-----------
Add audio/wavpack
Added Files:
-----------
mports/audio/wavpack:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
pkg-plist (r1.1)
mports/audio/wavpack/files:
patch-wavpack.c (r1.1)
patch-wvunpack.c (r1.1)
-------------- next part --------------
--- /dev/null
+++ audio/wavpack/pkg-descr
@@ -0,0 +1,15 @@
+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
+sampling rates. Like other lossless compression schemes the data reduction
+varies with the source, but it is generally between 25% and 50% for typical
+popular music and somewhat better than that for classical music and other
+sources with greater dynamic range.
+
+WavPack also incorporates a unique "hybrid" mode that provides all the
+advantages of lossless compression with an additional bonus. Instead of
+creating a single file, this mode creates both a relatively small, high-quality
+lossy file that can be used all by itself, and a "correction" file that (when
+combined with the lossy file) provides full lossless restoration. For some
+users, this means never having to choose between lossless and lossy compression.
+
+WWW: http://www.wavpack.com/
--- /dev/null
+++ audio/wavpack/pkg-plist
@@ -0,0 +1,10 @@
+bin/wavpack
+bin/wvgain
+bin/wvunpack
+include/wavpack/wavpack.h
+lib/libwavpack.a
+lib/libwavpack.la
+lib/libwavpack.so
+lib/libwavpack.so.1
+libdata/pkgconfig/wavpack.pc
+ at dirrm include/wavpack
--- /dev/null
+++ audio/wavpack/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: wavpack
+# Date created: Fri Jun 24 20:30:04 CEST 2005
+# Whom: Koop Mast <kwm at FreeBSD.org>
+#
+# $FreeBSD: ports/audio/wavpack/Makefile,v 1.12 2007/06/27 17:33:17 ahze Exp $
+# $MidnightBSD: mports/audio/wavpack/Makefile,v 1.1 2008/04/12 02:27:11 ctriv Exp $
+#
+
+PORTNAME= wavpack
+PORTVERSION= 4.41.0
+CATEGORIES= audio
+MASTER_SITES= http://www.wavpack.com/
+
+MAINTAINER= mports at MidnightBSD.org
+COMMENT= Compress (and restore) both 16 and 24-bit audio files in .wav format
+LICENSE= bsd3
+
+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
+
+post-patch:
+.for i in ${FILES}
+ @cd ${WRKSRC} && ${CP} ${i} ${i}.orig && \
+ col < ${i}.orig > ${i}
+.endfor
+
+.include <bsd.port.mk>
--- /dev/null
+++ audio/wavpack/distinfo
@@ -0,0 +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
--- /dev/null
+++ audio/wavpack/files/patch-wvunpack.c
@@ -0,0 +1,20 @@
+--- 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);
--- /dev/null
+++ audio/wavpack/files/patch-wavpack.c
@@ -0,0 +1,22 @@
+
+$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);
More information about the Midnightbsd-cvs
mailing list