mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
Merge pull request #28711 from danielfullmer/irrlicht-1.8.4
irrlicht: 1.8-svn-5104 -> 1.8.4
This commit is contained in:
commit
1160be027b
@ -1,15 +1,13 @@
|
||||
{ fetchsvn, stdenv, mesa, unzip, libXrandr, libX11, libXxf86vm }:
|
||||
{ stdenv, fetchzip, mesa, unzip, libXrandr, libX11, libXxf86vm }:
|
||||
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "irrlicht-${version}-svn-${revision}";
|
||||
version = "1.8";
|
||||
revision = "5104"; # newest revision as of 05-16-15
|
||||
name = "irrlicht-${version}";
|
||||
version = "1.8.4";
|
||||
|
||||
src = fetchsvn {
|
||||
url = "https://svn.code.sf.net/p/irrlicht/code/branches/releases/${version}"; # get 1.8 release (same regardless of rev)
|
||||
rev = "${revision}";
|
||||
sha256 = "18xvlrjf113mphf29iy24hmrkh7xff6j9cz0chrxjqbr9xk9h1yq";
|
||||
src = fetchzip {
|
||||
url = "mirror://sourceforge/irrlicht/${name}.zip";
|
||||
sha256 = "02sq067fn4xpf0lcyb4vqxmm43qg2nxx770bgrl799yymqbvih5f";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
|
@ -1,40 +0,0 @@
|
||||
From 244d00280c1b082ca164f92337773e9e4e1a3898 Mon Sep 17 00:00:00 2001
|
||||
From: hiker <henrichsjoerg@mgail.com>
|
||||
Date: Wed, 26 Feb 2014 11:13:03 +1100
|
||||
Subject: [PATCH] Applied patch from jpirie for fixing mesa 10 compilation
|
||||
problems.
|
||||
|
||||
--- irrlicht-1.8.1/source/Irrlicht/COpenGLExtensionHandler.h
|
||||
+++ irrlicht-1.8.1/source/Irrlicht/COpenGLExtensionHandler.h
|
||||
@@ -21,6 +21,7 @@
|
||||
#endif
|
||||
#include <GL/gl.h>
|
||||
#if defined(_IRR_OPENGL_USE_EXTPOINTER_)
|
||||
+ typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
|
||||
#include "glext.h"
|
||||
#endif
|
||||
#include "wglext.h"
|
||||
@@ -35,6 +36,7 @@
|
||||
#endif
|
||||
#include <OpenGL/gl.h>
|
||||
#if defined(_IRR_OPENGL_USE_EXTPOINTER_)
|
||||
+ typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
|
||||
#include "glext.h"
|
||||
#endif
|
||||
#elif defined(_IRR_COMPILE_WITH_SDL_DEVICE_) && !defined(_IRR_COMPILE_WITH_X11_DEVICE_)
|
||||
@@ -48,6 +50,7 @@
|
||||
#define NO_SDL_GLEXT
|
||||
#include <SDL/SDL_video.h>
|
||||
#include <SDL/SDL_opengl.h>
|
||||
+ typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
|
||||
#include "glext.h"
|
||||
#else
|
||||
#if defined(_IRR_OPENGL_USE_EXTPOINTER_)
|
||||
@@ -60,6 +63,7 @@
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glx.h>
|
||||
#if defined(_IRR_OPENGL_USE_EXTPOINTER_)
|
||||
+ typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
|
||||
#include "glext.h"
|
||||
#undef GLX_ARB_get_proc_address // avoid problems with local glxext.h
|
||||
#include "glxext.h"
|
@ -1,46 +0,0 @@
|
||||
{ fetchsvn, stdenv, mesa, unzip, libXrandr, libX11, libXxf86vm }:
|
||||
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
# Version 3843 is required for supertuxkart
|
||||
name = "irrlicht-1.8-svn-3843";
|
||||
|
||||
src = fetchsvn {
|
||||
url = https://irrlicht.svn.sourceforge.net/svnroot/irrlicht/trunk;
|
||||
rev = 3843;
|
||||
sha256 = "0v31l3k0fzy7isdsx2sh0baaixzlml1m7vgz6cd0015d9f5n99vl";
|
||||
};
|
||||
|
||||
patches = [ ./irrlicht-1.8.1-mesa-10.x.patch ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i /stdcall-alias/d source/Irrlicht/Makefile
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
cd source/Irrlicht
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
make sharedlib NDEBUG=1
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
sed -i s,/usr/local/lib,$out/lib, Makefile
|
||||
mkdir -p $out/lib
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
ln -s libIrrlicht.so.1.8.0-SVN $out/lib/libIrrlicht.so.1.8
|
||||
ln -s libIrrlicht.so.1.8.0-SVN $out/lib/libIrrlicht.so
|
||||
'';
|
||||
|
||||
buildInputs = [ unzip mesa libXrandr libX11 libXxf86vm ];
|
||||
|
||||
meta = {
|
||||
homepage = http://irrlicht.sourceforge.net/;
|
||||
license = stdenv.lib.licenses.zlib;
|
||||
description = "Open source high performance realtime 3D engine written in C++";
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
@ -8438,7 +8438,6 @@ with pkgs;
|
||||
ip2location-c = callPackage ../development/libraries/ip2location-c { };
|
||||
|
||||
irrlicht = callPackage ../development/libraries/irrlicht { };
|
||||
irrlicht3843 = callPackage ../development/libraries/irrlicht/irrlicht3843.nix { };
|
||||
|
||||
isocodes = callPackage ../development/libraries/iso-codes { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user