diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-06-15 16:27:00 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-06-15 16:27:00 +0300 |
commit | f7d135cd88f1fa426b7ba8a7acebfc3225675d54 (patch) | |
tree | 39af233de91abe20585332b7075e8f5cdb27a1dc /media-libs | |
parent | f128924afb17ffb46f7176f214f68e2ff8283e5d (diff) |
new file: mac/files/gcc4.4.patch
new file: mac/mac-3.99.4.5-r2.ebuild
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/mac/files/gcc4.4.patch | 18 | ||||
-rw-r--r-- | media-libs/mac/mac-3.99.4.5-r2.ebuild | 33 |
2 files changed, 51 insertions, 0 deletions
diff --git a/media-libs/mac/files/gcc4.4.patch b/media-libs/mac/files/gcc4.4.patch new file mode 100644 index 0000000..751e2f1 --- /dev/null +++ b/media-libs/mac/files/gcc4.4.patch @@ -0,0 +1,18 @@ +diff -Naur original//mac-3.99-u4-b5/src/MACLib/APELink.cpp patched//mac-3.99-u4-b5/src/MACLib/APELink.cpp +--- original//mac-3.99-u4-b5/src/MACLib/APELink.cpp 2006-06-01 12:00:57.000000000 +0300 ++++ patched//mac-3.99-u4-b5/src/MACLib/APELink.cpp 2010-06-15 16:14:29.000000000 +0300 +@@ -63,10 +63,10 @@ + if (pData != NULL) + { + // parse out the information +- char * pHeader = strstr(pData, APE_LINK_HEADER); +- char * pImageFile = strstr(pData, APE_LINK_IMAGE_FILE_TAG); +- char * pStartBlock = strstr(pData, APE_LINK_START_BLOCK_TAG); +- char * pFinishBlock = strstr(pData, APE_LINK_FINISH_BLOCK_TAG); ++ char * pHeader = strstr((char*)pData, (char*)APE_LINK_HEADER); ++ char * pImageFile = strstr((char*)pData, (char*)APE_LINK_IMAGE_FILE_TAG); ++ char * pStartBlock = strstr((char*)pData, (char*)APE_LINK_START_BLOCK_TAG); ++ char * pFinishBlock = strstr((char*)pData, (char*)APE_LINK_FINISH_BLOCK_TAG); + + if (pHeader && pImageFile && pStartBlock && pFinishBlock) + { diff --git a/media-libs/mac/mac-3.99.4.5-r2.ebuild b/media-libs/mac/mac-3.99.4.5-r2.ebuild new file mode 100644 index 0000000..a0175d4 --- /dev/null +++ b/media-libs/mac/mac-3.99.4.5-r2.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils versionator + +MY_P="${PN}-$(get_version_component_range 1-2)" +MY_P="${MY_P}-u$(get_version_component_range 3)" +MY_P="${MY_P}-b$(get_version_component_range 4)" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="Unix port of Monkey's Audio codec" +HOMEPAGE="http://www.monkeysaudio.com/" +SRC_URI="http://www.genoetigt.de/ape//${MY_P}.tar.gz" + +# License status is unclear, see discussion in +# https://bugs.gentoo.org/94477 and 52882 +LICENSE="monkeysaudio" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="dev-lang/yasm" + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/gcc4.4.patch +} + +src_install() { + make DESTDIR=${D} install || die "make install failed" + dodoc AUTHORS INSTALL NEWS README TODO + dohtml ${S}/src/Readme.htm +} |