diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-12-10 19:49:45 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-12-10 19:49:45 +0000 |
commit | 918deb2dfaa6350e26a1361dea3ff09a11d188d6 (patch) | |
tree | 553ee14bb2014846da77c8af3fe7b944f6d74551 /media-libs/sdl-gfx | |
parent | old (diff) | |
download | gentoo-2-918deb2dfaa6350e26a1361dea3ff09a11d188d6.tar.gz gentoo-2-918deb2dfaa6350e26a1361dea3ff09a11d188d6.tar.bz2 gentoo-2-918deb2dfaa6350e26a1361dea3ff09a11d188d6.zip |
Fix build error with newer versions of gcc #115087 by charly.
(Portage version: 2.0.53)
Diffstat (limited to 'media-libs/sdl-gfx')
-rw-r--r-- | media-libs/sdl-gfx/ChangeLog | 10 | ||||
-rw-r--r-- | media-libs/sdl-gfx/files/digest-sdl-gfx-2.0.13-r1 | 1 | ||||
-rw-r--r-- | media-libs/sdl-gfx/files/sdl-gfx-2.0.13-gcc34.patch | 26 | ||||
-rw-r--r-- | media-libs/sdl-gfx/sdl-gfx-2.0.13-r1.ebuild | 39 |
4 files changed, 74 insertions, 2 deletions
diff --git a/media-libs/sdl-gfx/ChangeLog b/media-libs/sdl-gfx/ChangeLog index 06a153cb4120..019241c40a7c 100644 --- a/media-libs/sdl-gfx/ChangeLog +++ b/media-libs/sdl-gfx/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-libs/sdl-gfx -# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-gfx/ChangeLog,v 1.28 2005/04/21 19:09:31 mr_bones_ Exp $ +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-gfx/ChangeLog,v 1.29 2005/12/10 19:49:45 vapier Exp $ + +*sdl-gfx-2.0.13-r1 (10 Dec 2005) + + 10 Dec 2005; Mike Frysinger <vapier@gentoo.org> + +files/sdl-gfx-2.0.13-gcc34.patch, +sdl-gfx-2.0.13-r1.ebuild: + Fix build error with newer versions of gcc #115087 by charly. 21 Apr 2005; Michael Sterrett <mr_bones_@gentoo.org> sdl-gfx-2.0.13.ebuild: diff --git a/media-libs/sdl-gfx/files/digest-sdl-gfx-2.0.13-r1 b/media-libs/sdl-gfx/files/digest-sdl-gfx-2.0.13-r1 new file mode 100644 index 000000000000..3ccaca51fcbd --- /dev/null +++ b/media-libs/sdl-gfx/files/digest-sdl-gfx-2.0.13-r1 @@ -0,0 +1 @@ +MD5 b1ce778232db0b1979695f0a5a945a13 SDL_gfx-2.0.13.tar.gz 598297 diff --git a/media-libs/sdl-gfx/files/sdl-gfx-2.0.13-gcc34.patch b/media-libs/sdl-gfx/files/sdl-gfx-2.0.13-gcc34.patch new file mode 100644 index 000000000000..ff39f9aed239 --- /dev/null +++ b/media-libs/sdl-gfx/files/sdl-gfx-2.0.13-gcc34.patch @@ -0,0 +1,26 @@ +Fix build error with newer gcc + +http://bugs.gentoo.org/115087 + +--- SDL_gfxPrimitives.h ++++ SDL_gfxPrimitives.h +@@ -187,7 +187,7 @@ + + /* Ends C function definitions when using C++ */ + #ifdef __cplusplus +-}; ++} + #endif + + #endif /* _SDL_gfxPrimitives_h */ +--- SDL_imageFilter.h ++++ SDL_imageFilter.h +@@ -186,7 +186,7 @@ + + /* Ends C function definitions when using C++ */ + #ifdef __cplusplus +-}; ++} + #endif + + #endif /* _SDL_imageFilter_h */ diff --git a/media-libs/sdl-gfx/sdl-gfx-2.0.13-r1.ebuild b/media-libs/sdl-gfx/sdl-gfx-2.0.13-r1.ebuild new file mode 100644 index 000000000000..073098aa2194 --- /dev/null +++ b/media-libs/sdl-gfx/sdl-gfx-2.0.13-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-gfx/sdl-gfx-2.0.13-r1.ebuild,v 1.1 2005/12/10 19:49:45 vapier Exp $ + +inherit eutils flag-o-matic + +MY_P="${P/sdl-/SDL_}" +DESCRIPTION="Graphics drawing primitives library for SDL" +HOMEPAGE="http://www.ferzkopp.net/~aschiffler/Software/SDL_gfx-2.0/index.html" +SRC_URI="http://www.ferzkopp.net/~aschiffler/Software/SDL_gfx-2.0/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 hppa ppc sparc x86" +IUSE="mmx" + +DEPEND=">=media-libs/libsdl-1.2" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-gcc34.patch +} + +src_compile() { + filter-flags -finline-functions -funroll-loops #26892 #89749 + replace-flags -O? -O2 + + econf $(use_enable mmx) || die + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + dodoc AUTHORS ChangeLog README + dohtml -r Docs/* +} |