summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-04-20 21:43:30 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-04-20 21:43:30 +0000
commit48f363021d2dc5de1aafb69b1df11ed27fc73450 (patch)
tree8fe09aeb81f8ea40f79cccf2d9c634bfcc606b29 /media-sound/wavpack
parentAdd DEPEND on unzip. (diff)
downloadhistorical-48f363021d2dc5de1aafb69b1df11ed27fc73450.tar.gz
historical-48f363021d2dc5de1aafb69b1df11ed27fc73450.tar.bz2
historical-48f363021d2dc5de1aafb69b1df11ed27fc73450.zip
Fix building with GCC 4.3, thanks to Peter Alfredsen in bug #217828. Also add a new revision with a patch to mark more stuff constant in a new revision.
Package-Manager: portage-2.1.5_rc5
Diffstat (limited to 'media-sound/wavpack')
-rw-r--r--media-sound/wavpack/ChangeLog11
-rw-r--r--media-sound/wavpack/Manifest16
-rw-r--r--media-sound/wavpack/files/wavpack-4.41.0-constant.patch53
-rw-r--r--media-sound/wavpack/wavpack-4.41.0-r1.ebuild36
-rw-r--r--media-sound/wavpack/wavpack-4.41.0.ebuild7
5 files changed, 118 insertions, 5 deletions
diff --git a/media-sound/wavpack/ChangeLog b/media-sound/wavpack/ChangeLog
index 589994aca84e..889b7f94fd92 100644
--- a/media-sound/wavpack/ChangeLog
+++ b/media-sound/wavpack/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for media-sound/wavpack
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/wavpack/ChangeLog,v 1.35 2008/03/07 07:39:15 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/wavpack/ChangeLog,v 1.36 2008/04/20 21:43:29 flameeyes Exp $
+
+*wavpack-4.41.0-r1 (20 Apr 2008)
+
+ 20 Apr 2008; Diego Pettenò <flameeyes@gentoo.org>
+ +files/wavpack-4.41.0-constant.patch, wavpack-4.41.0.ebuild,
+ +wavpack-4.41.0-r1.ebuild:
+ Fix building with GCC 4.3, thanks to Peter Alfredsen in bug #217828. Also
+ add a new revision with a patch to mark more stuff constant in a new
+ revision.
16 Nov 2007; nixnut <nixnut@gentoo.org> wavpack-4.41.0.ebuild:
Stable on ppc wrt bug 198823
diff --git a/media-sound/wavpack/Manifest b/media-sound/wavpack/Manifest
index 9a825b59b3b9..61c79414a64f 100644
--- a/media-sound/wavpack/Manifest
+++ b/media-sound/wavpack/Manifest
@@ -1,4 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX wavpack-4.41.0-constant.patch 2222 RMD160 4252544b23701a76d8acee3e512b3fbfdb543a81 SHA1 4eaa6b90128123306c13de56f4efb9db588d5f30 SHA256 66fd3491b2e5286d1b7e2fda7f903bbd5aa324b366e2c3f879f7310b4b6fc73f
DIST wavpack-4.41.0.tar.bz2 329241 RMD160 8a96d8de6182254472183f8e828244d5e5674f75 SHA1 ddc19302d934bf48ebb8f185441d19e5d3c5bdec SHA256 7a40748e07a18f86438eb79ebbb0b6e321d0374f683c6cad91f04c5251e7203c
-EBUILD wavpack-4.41.0.ebuild 711 RMD160 98c04202b4587d3688e690ad87b80b12b514b244 SHA1 ae411a2d06dca445c19837f20e97badcacd312fb SHA256 b56efbcffa3262ab3cdbd2771c5664d6810230976149650d07edaae7c57dbb18
-MISC ChangeLog 3978 RMD160 ebc36b8019819b899566086b684850f3c69d3cb2 SHA1 0eb346156acf3bb6b43a2493a3094151bd5e3a2b SHA256 3bb9f717f08fda07d47307ac546e16e10add3015059e019b11a5ab7f8f7dd89c
+EBUILD wavpack-4.41.0-r1.ebuild 877 RMD160 6b42a376b1b47dcf5b9e2f0cc32822b6821722f7 SHA1 33c43e23ee551d03c8cd2e22c63b61a0c656915f SHA256 9b7d71c115cb5456b97a466ebcf80468cc4eaf1b9bfde3806edf5709e0311b31
+EBUILD wavpack-4.41.0.ebuild 815 RMD160 71369d081abea7c6f26d11a0bff9a2917f3a3f1a SHA1 f970cfc3acd67152a2bb66820410cdb903d31a24 SHA256 9ec3e8777300b900401f4b658155dedc01e050d42290c224d94903381cf5838a
+MISC ChangeLog 4322 RMD160 f7055639ea6280d20bbef3dfa1c62745c7b5c1cc SHA1 f2da3ca242fe4c2f29d6fe8dfe1c475ab201f93d SHA256 4c2902c259535e088cdef1c1b8568cd955ec826f9358a480b467c46a4049d0af
MISC metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e SHA1 703cea5a2109d41f7c87993c1f01d418a4c85174 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAkgLuQcACgkQAiZjviIA2XiGmwCgthEBcFLULYW2NvqpmkQWfUI/
+QT8AoMhf2R3M0yLF9g36z4uU3Qx0iJsc
+=thEH
+-----END PGP SIGNATURE-----
diff --git a/media-sound/wavpack/files/wavpack-4.41.0-constant.patch b/media-sound/wavpack/files/wavpack-4.41.0-constant.patch
new file mode 100644
index 000000000000..8591f1dc8b5f
--- /dev/null
+++ b/media-sound/wavpack/files/wavpack-4.41.0-constant.patch
@@ -0,0 +1,53 @@
+Index: wavpack-4.41.0/src/pack.c
+===================================================================
+--- wavpack-4.41.0.orig/src/pack.c
++++ wavpack-4.41.0/src/pack.c
+@@ -38,7 +38,7 @@ int32_t dump_alloc (void);
+ // 17 & 18 are special functions using the previous 2 samples, and negative
+ // values indicate cross channel decorrelation (in stereo only).
+
+-static WavpackDecorrSpec fast_specs [] = {
++static const WavpackDecorrSpec fast_specs [] = {
+ { 1, 2,18,17 }, // 0
+ { 1, 1,17,17 }, // 1
+ { 0, 2,18,17 }, // 2
+@@ -297,7 +297,7 @@ static WavpackDecorrSpec fast_specs [] =
+ { 0, 2,18,17 }, // 255
+ };
+
+-static WavpackDecorrSpec default_specs [] = {
++static const WavpackDecorrSpec default_specs [] = {
+ { 1, 2,18,18, 2,17, 3 }, // 0
+ { 0, 2,18,17,-1, 3, 2 }, // 1
+ { 1, 1,17,18,18,-2, 2 }, // 2
+@@ -556,7 +556,7 @@ static WavpackDecorrSpec default_specs [
+ { 0, 2,18,18,-2,18, 2 }, // 255
+ };
+
+-static WavpackDecorrSpec high_specs [] = {
++static const WavpackDecorrSpec high_specs [] = {
+ { 1, 2,18,18,18,-2, 2, 3, 5,-1,17, 4 }, // 0
+ { 0, 1,18,17,-2, 2,18, 3, 7, 2, 5, 4 }, // 1
+ { 1, 2, 1,18, 3, 6,-2,18, 2, 3, 4, 5 }, // 2
+@@ -815,7 +815,7 @@ static WavpackDecorrSpec high_specs [] =
+ { 0, 1,-1,18,18, 2,18, 3, 5,18, 2, 8 }, // 255
+ };
+
+-static WavpackDecorrSpec very_high_specs [] = {
++static const WavpackDecorrSpec very_high_specs [] = {
+ { 1, 2,18,18, 2, 3,-2,18, 2, 4, 7, 5, 3, 6, 8,-1,18, 2 }, // 0
+ { 0, 1,18,18,-1,18, 2, 3, 4, 6, 5, 7,18,-3, 8, 2,-1, 3 }, // 1
+ { 1, 2, 1,18,-2, 4,18, 2, 3, 6,-1, 7, 5,-2,18, 8, 2, 4 }, // 2
+Index: wavpack-4.41.0/src/wputils.c
+===================================================================
+--- wavpack-4.41.0.orig/src/wputils.c
++++ wavpack-4.41.0/src/wputils.c
+@@ -126,7 +126,7 @@ static int32_t write_bytes (void *id, vo
+ return (int32_t) fwrite (data, 1, bcount, (FILE*) id);
+ }
+
+-static WavpackStreamReader freader = {
++static const WavpackStreamReader freader = {
+ read_bytes, get_pos, set_pos_abs, set_pos_rel, push_back_byte, get_length, can_seek,
+ write_bytes
+ };
diff --git a/media-sound/wavpack/wavpack-4.41.0-r1.ebuild b/media-sound/wavpack/wavpack-4.41.0-r1.ebuild
new file mode 100644
index 000000000000..26f9d0bb9be2
--- /dev/null
+++ b/media-sound/wavpack/wavpack-4.41.0-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/wavpack/wavpack-4.41.0-r1.ebuild,v 1.1 2008/04/20 21:43:29 flameeyes Exp $
+
+inherit libtool eutils flag-o-matic
+
+DESCRIPTION="WavPack audio compression tools"
+HOMEPAGE="http://www.wavpack.com"
+SRC_URI="http://www.wavpack.com/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="mmx"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-constant.patch"
+
+ elibtoolize
+}
+
+src_compile() {
+ test-flags-CC -flax-vector-conversions && \
+ append-flags -flax-vector-conversions
+
+ econf $(use_enable mmx)
+ emake || die "emake failed."
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install || die "emake install failed."
+ dodoc ChangeLog README
+}
diff --git a/media-sound/wavpack/wavpack-4.41.0.ebuild b/media-sound/wavpack/wavpack-4.41.0.ebuild
index c8754dc952cb..a2b849fed979 100644
--- a/media-sound/wavpack/wavpack-4.41.0.ebuild
+++ b/media-sound/wavpack/wavpack-4.41.0.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/wavpack/wavpack-4.41.0.ebuild,v 1.12 2008/03/07 07:39:15 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/wavpack/wavpack-4.41.0.ebuild,v 1.13 2008/04/20 21:43:29 flameeyes Exp $
-inherit libtool
+inherit libtool flag-o-matic
DESCRIPTION="WavPack audio compression tools"
HOMEPAGE="http://www.wavpack.com"
@@ -20,6 +20,9 @@ src_unpack() {
}
src_compile() {
+ test-flags-CC -flax-vector-conversions && \
+ append-flags -flax-vector-conversions
+
econf $(use_enable mmx)
emake || die "emake failed."
}