Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33225 from LumiGuide/opencv-3.4.0
opencv: 3.3.1 -> 3.4.0
- Loading branch information
Showing
6 changed files
with
143 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ fetchFromGitHub, stdenv, lib | ||
, cmake, mesa | ||
, freetype, freeimage, zziplib, randrproto, libXrandr | ||
, libXaw, freeglut, libXt, libpng, boost, ois | ||
, xproto, libX11, libXmu, libSM, pkgconfig | ||
, libXxf86vm, xf86vidmodeproto, libICE | ||
, renderproto, libXrender | ||
, withNvidiaCg ? false, nvidia_cg_toolkit | ||
, withSamples ? false }: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "ogre"; | ||
version = "1.9.1"; | ||
name = "${pname}-${version}"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "OGRECave"; | ||
repo = "ogre"; | ||
rev = "v${version}"; | ||
sha256 = "11lfgzqaps3728dswrq3cbwk7aicigyz08q4hfyy6ikc6m35r4wg"; | ||
}; | ||
|
||
cmakeFlags = [ "-DOGRE_BUILD_SAMPLES=${toString withSamples}" ] | ||
++ map (x: "-DOGRE_BUILD_PLUGIN_${x}=on") | ||
([ "BSP" "OCTREE" "PCZ" "PFX" ] ++ lib.optional withNvidiaCg "CG") | ||
++ map (x: "-DOGRE_BUILD_RENDERSYSTEM_${x}=on") [ "GL" ]; | ||
|
||
enableParallelBuilding = true; | ||
|
||
buildInputs = | ||
[ cmake mesa | ||
freetype freeimage zziplib randrproto libXrandr | ||
libXaw freeglut libXt libpng boost ois | ||
xproto libX11 libXmu libSM pkgconfig | ||
libXxf86vm xf86vidmodeproto libICE | ||
renderproto libXrender | ||
] ++ lib.optional withNvidiaCg nvidia_cg_toolkit; | ||
|
||
meta = { | ||
description = "A 3D engine"; | ||
homepage = http://www.ogre3d.org/; | ||
maintainers = [ stdenv.lib.maintainers.raskin ]; | ||
platforms = stdenv.lib.platforms.linux; | ||
license = stdenv.lib.licenses.mit; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters