From 539c74caa81e51b3fdde7a43916c6a50193be406 Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Tue, 18 Apr 2006 14:42:28 +0000 Subject: Replace malloc.h inclusions with stdlib.h inclusions to build on FreeBSD and OSX. Bug #130340. (Portage version: 2.1_pre7-r5) --- media-libs/gle/ChangeLog | 8 ++++++-- media-libs/gle/gle-3.0.1-r2.ebuild | 13 +++++++++++-- 2 files changed, 17 insertions(+), 4 deletions(-) (limited to 'media-libs/gle') diff --git a/media-libs/gle/ChangeLog b/media-libs/gle/ChangeLog index 19417fb1a757..dda6940aeeb4 100644 --- a/media-libs/gle/ChangeLog +++ b/media-libs/gle/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-libs/gle -# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/gle/ChangeLog,v 1.16 2005/07/02 01:09:07 hardave Exp $ +# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/gle/ChangeLog,v 1.17 2006/04/18 14:42:28 flameeyes Exp $ + + 18 Apr 2006; Diego Pettenò gle-3.0.1-r2.ebuild: + Replace malloc.h inclusions with stdlib.h inclusions to build on FreeBSD and + OSX. Bug #130340. 02 Jul 2005; Hardave Riar gle-3.0.1-r2.ebuild: Stable on mips diff --git a/media-libs/gle/gle-3.0.1-r2.ebuild b/media-libs/gle/gle-3.0.1-r2.ebuild index 62cc6cc15acc..ad19caaafb97 100644 --- a/media-libs/gle/gle-3.0.1-r2.ebuild +++ b/media-libs/gle/gle-3.0.1-r2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/gle/gle-3.0.1-r2.ebuild,v 1.28 2005/07/02 01:09:07 hardave Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/gle/gle-3.0.1-r2.ebuild,v 1.29 2006/04/18 14:42:28 flameeyes Exp $ DESCRIPTION="GL extrusion library" HOMEPAGE="http://www.linas.org/gle" @@ -15,6 +15,15 @@ DEPEND="virtual/opengl virtual/glu virtual/glut" +src_unpack() { + unpack ${A} + cd "${S}" + + # Replace inclusion of malloc.h with stdlib.h as needed by Mac OS X and + # FreeBSD. + sed -i -e 's:malloc.h:stdlib.h:g' ${S}/src/* +} + src_compile() { econf --with-x || die emake || die -- cgit v1.2.3-65-gdbad