2017-12-31 11:26:57 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, cmake, pkgconfig, ois, ogre, libX11, boost }:
|
2012-02-24 21:13:14 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ogre-paged";
|
2016-04-18 11:29:09 +01:00
|
|
|
version = "1.2.0";
|
2012-02-24 21:13:14 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-04-18 11:29:09 +01:00
|
|
|
url = "https://github.com/RigsOfRods/ogre-pagedgeometry/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "17j7rw9wbkynxbhm2lay3qgjnnagb2vd5jn9iijnn2lf8qzbgy82";
|
2012-02-24 21:13:14 +00:00
|
|
|
};
|
|
|
|
|
2017-12-31 11:26:57 +00:00
|
|
|
patches = [
|
|
|
|
# These patches come from https://github.com/RigsOfRods/ogre-pagedgeometry/pull/6
|
|
|
|
# and make ogre-paged build with ogre-1.10.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/RigsOfRods/ogre-pagedgeometry/commit/2d4df577decba37ec3cdafc965deae0f6d31fe45.patch";
|
|
|
|
sha256 = "0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/RigsOfRods/ogre-pagedgeometry/commit/4d81789ec6f55e294a5ad040ea7abe2b415cbc92.patch";
|
|
|
|
sha256 = "17q8djdz2y3g46azxc3idhyvi6vf0sqkxld4bbyp3l9zn7dq76rp";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/RigsOfRods/ogre-pagedgeometry/commit/10f7c5ce5b422e9cbac59d466f3567a24c8831a4.patch";
|
|
|
|
sha256 = "1kk0dbadzg73ai99l3w04q51sil36vzbkaqc79mdwy0vjrn4ardb";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2012-02-24 21:13:14 +00:00
|
|
|
buildInputs = [ ois ogre libX11 boost ];
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2012-02-24 21:13:14 +00:00
|
|
|
|
2016-04-11 14:28:03 +01:00
|
|
|
cmakeFlags = [ "-DPAGEDGEOMETRY_BUILD_SAMPLES=OFF" ];
|
2012-02-24 21:13:14 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Paged Geometry for Ogre3D";
|
2017-10-27 00:44:19 +01:00
|
|
|
homepage = https://github.com/RigsOfRods/ogre-paged;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2012-02-24 21:13:14 +00:00
|
|
|
};
|
|
|
|
}
|