diff options
author | Simon Stelling <blubb@gentoo.org> | 2005-03-23 14:33:10 +0000 |
---|---|---|
committer | Simon Stelling <blubb@gentoo.org> | 2005-03-23 14:33:10 +0000 |
commit | d5dafd42be53b91e32c85e699c48d19141e206f6 (patch) | |
tree | 8b6727a30c790445d6ef4508c3878ae4a24b833b /media-video/sswf | |
parent | Bump to stable. See #84074 (diff) | |
download | historical-d5dafd42be53b91e32c85e699c48d19141e206f6.tar.gz historical-d5dafd42be53b91e32c85e699c48d19141e206f6.tar.bz2 historical-d5dafd42be53b91e32c85e699c48d19141e206f6.zip |
#83996
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'media-video/sswf')
-rw-r--r-- | media-video/sswf/ChangeLog | 6 | ||||
-rw-r--r-- | media-video/sswf/Manifest | 16 | ||||
-rw-r--r-- | media-video/sswf/files/bitsize.patch | 57 | ||||
-rw-r--r-- | media-video/sswf/files/sound_wave_t.patch | 14 | ||||
-rw-r--r-- | media-video/sswf/sswf-1.7.1.ebuild | 13 |
5 files changed, 91 insertions, 15 deletions
diff --git a/media-video/sswf/ChangeLog b/media-video/sswf/ChangeLog index f205c3311603..cdd777dc6f52 100644 --- a/media-video/sswf/ChangeLog +++ b/media-video/sswf/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-video/sswf # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/sswf/ChangeLog,v 1.1 2005/01/28 05:56:27 chriswhite Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/sswf/ChangeLog,v 1.2 2005/03/23 14:33:10 blubb Exp $ + + 23 Mar 2005; <blubb@gentoo.org> +files/bitsize.patch, + +files/sound_wave_t.patch, sswf-1.7.1.ebuild: + added Adam Polkosnik's patches to fix bug #83996 *sswf-1.7.1 (28 Jan 2005) diff --git a/media-video/sswf/Manifest b/media-video/sswf/Manifest index 5a09fa11b3e1..6e86ee30d817 100644 --- a/media-video/sswf/Manifest +++ b/media-video/sswf/Manifest @@ -1,14 +1,6 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 14ce890ce2a266096089444b3fddb13a ChangeLog 437 +MD5 879e979979ffbf65d9e9f83de468e842 sswf-1.7.1.ebuild 926 +MD5 2e81f831b4e538f1a38b746690ccc4f4 ChangeLog 588 MD5 9ef4af14dad87b03fde8e43f19e08d26 metadata.xml 225 -MD5 58cb63b3420f4ad83ef5d2950a83b69d sswf-1.7.1.ebuild 793 MD5 c392e1bf9a9d255e7ee4063fdd0a94f4 files/digest-sswf-1.7.1 135 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.1 (GNU/Linux) - -iD8DBQFCO3yaI1lqEGTUzyQRAudBAJ0c1V7Jwt00TrqPao0fL0vob55gwgCfe0YO -hKUARpugC63FvkbcrmABjNM= -=khsb ------END PGP SIGNATURE----- +MD5 2f1d64349330efef29feb4f3488fbedb files/sound_wave_t.patch 927 +MD5 58facf820044cbb63f8205e5623b251a files/bitsize.patch 820 diff --git a/media-video/sswf/files/bitsize.patch b/media-video/sswf/files/bitsize.patch new file mode 100644 index 000000000000..132a5102ac83 --- /dev/null +++ b/media-video/sswf/files/bitsize.patch @@ -0,0 +1,57 @@ +--- src.old/lib/libsswf_tags.c++ 2005-01-14 03:27:39.000000000 -0500 ++++ src/lib/libsswf_tags.c++ 2005-03-04 17:04:50.536424560 -0500 +@@ -3211,27 +3211,13 @@ + + if(value < 0) { + // a special case +- if(value == -1) { +- return 1; +- } +- cnt = 33; +- do { +- cnt--; +- value *= 2; +- } while(value < 0); ++ value =~ value; + } +- else { +- // a special case +- if(value == 0) { +- return 1; +- } +- cnt = 33; +- do { +- cnt--; +- value *= 2; +- } while(value > 0); ++ cnt = 1; ++ while(value >0){ ++ cnt++; ++ value = value / 2; + } +- + return cnt; + } + +@@ -3240,16 +3226,11 @@ + { + long cnt; + +- // a special case +- if(value == 0) { +- return 1; +- } +- cnt = 32; +- while((long) value > 0) { +- cnt--; +- value *= 2; +- } +- ++ cnt = 0; ++ do { ++ cnt++; ++ value = value / 2; ++ }while( value > 0); + return cnt; + } + diff --git a/media-video/sswf/files/sound_wave_t.patch b/media-video/sswf/files/sound_wave_t.patch new file mode 100644 index 000000000000..f504656f1464 --- /dev/null +++ b/media-video/sswf/files/sound_wave_t.patch @@ -0,0 +1,14 @@ +--- include/sswf/libsswf.h.old 2005-01-14 03:27:39.000000000 -0500 ++++ include/sswf/libsswf.h 2005-03-08 23:38:40.524934320 -0500 +@@ -2157,8 +2157,9 @@ + struct sound_wave_t { + short format; // the data format (we only support PCM) + short channels; // number of channels (1 - mono, 2 - stereo) +- long rate; // exact sample rate to play the sound at +- long avarage_rate; // average rate for the entire set of samples (this may vary in compressed files) ++/* rate and average_rate are 4 bytes each, long on some platforms is 8 bytes */ ++ int rate; // exact sample rate to play the sound at ++ int avarage_rate; // average rate for the entire set of samples (this may vary in compressed files) + short align; // byte alignment of the samples (every char, short, long...) + /* the following is format dependent, but at this time doesn't vary for us */ + short width; // width of the samples (8 or 16) diff --git a/media-video/sswf/sswf-1.7.1.ebuild b/media-video/sswf/sswf-1.7.1.ebuild index 89e3cbec3eef..709b31d46145 100644 --- a/media-video/sswf/sswf-1.7.1.ebuild +++ b/media-video/sswf/sswf-1.7.1.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/sswf/sswf-1.7.1.ebuild,v 1.2 2005/03/19 01:12:52 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/sswf/sswf-1.7.1.ebuild,v 1.3 2005/03/23 14:33:10 blubb Exp $ + +inherit eutils DESCRIPTION="A C++ Library and a script language tool to create Flash (SWF) movies up to version 6." HOMEPAGE="http://sswf.sourceforge.net" @@ -9,7 +11,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2 LICENSE="as-is" SLOT="0" -KEYWORDS="~x86 ~ppc" +KEYWORDS="~x86 ~ppc ~amd64" IUSE="doc debug" DEPEND="sys-libs/zlib media-libs/jpeg @@ -17,6 +19,13 @@ DEPEND="sys-libs/zlib sys-devel/flex sys-devel/bison" +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/bitsize.patch + epatch ${FILESDIR}/sound_wave_t.patch +} + src_compile() { econf \ $(use_enable debug) \ |