1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

-Update to 4.40.0.

-Use USE_DOS2UNIX and get rid of ^M in our files/patch-*.
-INSTALLS_SHLIB -> USE_LDCONFIG.
This commit is contained in:
Jeremy Messenger 2007-01-03 02:19:22 +00:00
parent b8f166a70d
commit 004280ba11
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=181309
5 changed files with 48 additions and 49 deletions

View File

@ -6,21 +6,23 @@
#
PORTNAME= wavpack
PORTVERSION= 4.32
PORTVERSION= 4.40.0
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
GNU_CONFIGURE= yes
USE_ICONV= yes
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"
USE_GNOME= gnomehack gnometarget
INSTALLS_SHLIB= yes
FILES= wavpack.h unpack3.c words.c md5.c
FILES= include/wavpack.h src/unpack3.c src/words.c cli/md5.c
post-patch:
.for i in ${FILES}

View File

@ -1,3 +1,3 @@
MD5 (wavpack-4.32.tar.bz2) = e40ff238477c0007155bce4ada3f7eba
SHA256 (wavpack-4.32.tar.bz2) = bb6374deb9b1091481c84d6bde57eb333a52bfbbb8ad002c11c17492c3faefa9
SIZE (wavpack-4.32.tar.bz2) = 275586
MD5 (wavpack-4.40.0.tar.bz2) = d41daa63926ad731df2a2922626819e9
SHA256 (wavpack-4.40.0.tar.bz2) = f2d167842cbc92262ee5541ef1c0d87d46a6b9fe14cc298b625547720c82beca
SIZE (wavpack-4.40.0.tar.bz2) = 320445

View File

@ -1,22 +1,22 @@
$FreeBSD$
--- wavpack.c.orig
+++ wavpack.c
--- 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;
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);
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);

View File

@ -1,20 +1,20 @@
--- wvunpack.c.orig Thu Apr 6 05:48:33 2006
+++ wvunpack.c Mon May 15 03:42:14 2006
@@ -1040,6 +1040,8 @@
static UTF8ToAnsi (char *string, int len)
{
int max_chars = strlen (string);
--- 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);
@@ -1066,7 +1068,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);
#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);

View File

@ -1,13 +1,10 @@
bin/wavpack
bin/wvunpack
bin/wvgain
include/wavpack/md5.h
include/wavpack/unpack3.h
bin/wvunpack
include/wavpack/wavpack.h
include/wavpack/wputils.h
lib/libwavpack.a
lib/libwavpack.la
lib/libwavpack.so
lib/libwavpack.so.0
lib/libwavpack.so.1
libdata/pkgconfig/wavpack.pc
@dirrm include/wavpack