summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-06-07 03:33:04 +0000
committerMike Frysinger <vapier@gentoo.org>2005-06-07 03:33:04 +0000
commitfa864198a65d8e4065d70c3f788b6bb20f289e66 (patch)
tree64b779a4d47a424b048b5b9b0b15e7097bd8da82 /dev-games
parentdisable editor for now since it doesn't build for me. (diff)
downloadgentoo-2-fa864198a65d8e4065d70c3f788b6bb20f289e66.tar.gz
gentoo-2-fa864198a65d8e4065d70c3f788b6bb20f289e66.tar.bz2
gentoo-2-fa864198a65d8e4065d70c3f788b6bb20f289e66.zip
Version bump #87015 by Timm Murray & Chris Statzer.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'dev-games')
-rw-r--r--dev-games/irrlicht/ChangeLog10
-rw-r--r--dev-games/irrlicht/files/digest-irrlicht-0.10.01
-rw-r--r--dev-games/irrlicht/files/irrlicht-0.10.0-opengl.patch20
-rw-r--r--dev-games/irrlicht/irrlicht-0.10.0.ebuild61
4 files changed, 90 insertions, 2 deletions
diff --git a/dev-games/irrlicht/ChangeLog b/dev-games/irrlicht/ChangeLog
index cf08eb871eb5..30db5259c782 100644
--- a/dev-games/irrlicht/ChangeLog
+++ b/dev-games/irrlicht/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-games/irrlicht
-# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-games/irrlicht/ChangeLog,v 1.10 2005/01/01 18:00:28 eradicator Exp $
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-games/irrlicht/ChangeLog,v 1.11 2005/06/07 03:33:04 vapier Exp $
+
+*irrlicht-0.10.0 (07 Jun 2005)
+
+ 07 Jun 2005; Mike Frysinger <vapier@gentoo.org>
+ +files/irrlicht-0.10.0-opengl.patch, +irrlicht-0.10.0.ebuild:
+ Version bump #87015 by Timm Murray & Chris Statzer.
*irrlicht-0.7.1 (30 Dec 2004)
diff --git a/dev-games/irrlicht/files/digest-irrlicht-0.10.0 b/dev-games/irrlicht/files/digest-irrlicht-0.10.0
new file mode 100644
index 000000000000..6688111c1ec9
--- /dev/null
+++ b/dev-games/irrlicht/files/digest-irrlicht-0.10.0
@@ -0,0 +1 @@
+MD5 027244998de45944aa80f81f3f7fde55 irrlicht-0.10.0.zip 13540616
diff --git a/dev-games/irrlicht/files/irrlicht-0.10.0-opengl.patch b/dev-games/irrlicht/files/irrlicht-0.10.0-opengl.patch
new file mode 100644
index 000000000000..1b642f6e1ab2
--- /dev/null
+++ b/dev-games/irrlicht/files/irrlicht-0.10.0-opengl.patch
@@ -0,0 +1,20 @@
+Fix compiling error:
+COpenGLDriver.cpp: In member function `void irr::video::COpenGLDriver::loadExtensions()':
+COpenGLDriver.cpp:357: error: `glXGetProcAddress' undeclared (first use this function)
+COpenGLDriver.cpp:357: error: (Each undeclared identifier is reported only once for each function it appears in.)
+make: *** [COpenGLDriver.o] Error 1
+
+Patch by Chris Statzer.
+
+http://bugs.gentoo.org/87015
+
+--- COpenGLDriver.cpp
++++ COpenGLDriver.cpp
+@@ -2,6 +2,7 @@
+
+ #include "IrrCompileConfig.h"
+ #ifdef _IRR_COMPILE_WITH_OPENGL_
++#define glXGetProcAddress glXGetProcAddressARB
+
+ #include "COpenGLTexture.h"
+ #include "COpenGLMaterialRenderer.h"
diff --git a/dev-games/irrlicht/irrlicht-0.10.0.ebuild b/dev-games/irrlicht/irrlicht-0.10.0.ebuild
new file mode 100644
index 000000000000..732f18ebb032
--- /dev/null
+++ b/dev-games/irrlicht/irrlicht-0.10.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-games/irrlicht/irrlicht-0.10.0.ebuild,v 1.1 2005/06/07 03:33:04 vapier Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="open source high performance realtime 3D engine written in C++"
+HOMEPAGE="http://irrlicht.sourceforge.net/"
+SRC_URI="mirror://sourceforge/irrlicht/${P}.zip
+ mirror://sourceforge/irrlicht/${P}.zip"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+IUSE="doc"
+
+RDEPEND="media-libs/jpeg
+ media-libs/libpng
+ sys-libs/zlib
+ virtual/opengl
+ virtual/x11"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"/source
+ unzip -qo source.zip || die "unpacking source.zip"
+ rm -f source.zip
+ cd Irrlicht
+ rm -r zlib jpeglib libpng
+ sed -i -e 's:zlib.zlib\.h:zlib.h:' CZipReader.cpp || die "zlib sed"
+ sed -i -e '/include/s:jpeglib/::' CImageLoaderJPG.h || die "jpeg sed"
+ sed -i -e '/include/s:libpng/::' CImageLoaderPNG.cpp || die "png sed"
+ sed -i -r \
+ -e '/^CXXFLAGS/s:=:+=:' \
+ -e '/^LINKOBJ/s:(zlib|jpeglib|libpng)/[^.]+\.o::g' \
+ Makefile || die "sed objs"
+
+ # stupid nvidia / xorg GL differences
+ if echo -e '#include <GL/glx.h>\nglXGetProcAddress blah;' | \
+ $(tc-getCC) -E - | \
+ grep -q glXGetProcAddressARB
+ then
+ epatch "${FILESDIR}"/${P}-opengl.patch
+ fi
+}
+
+src_compile() {
+ emake -C source/Irrlicht || die "emake failed"
+}
+
+src_install() {
+ dolib.a lib/Linux/libIrrlicht.a || die "dolib.a failed"
+ insinto /usr/include/${PN}
+ doins include/* || die "doins failed"
+ dodoc changes.txt readme.txt
+ if use doc ; then
+ cp -r examples media "${D}"/usr/share/doc/${PF}/ || die "cp failed"
+ fi
+}