2017-09-17 20:51:15 +01:00
|
|
|
{ stdenv, fetchFromGitHub, zlib, python, cmake }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec
|
|
|
|
{
|
|
|
|
name = "ptex-${version}";
|
2018-03-29 19:34:26 +01:00
|
|
|
version = "2.1.33";
|
2017-09-17 20:51:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wdas";
|
|
|
|
repo = "ptex";
|
|
|
|
rev = "v${version}";
|
2018-03-29 19:34:26 +01:00
|
|
|
sha256 = "15ijjq3w7hwgm4mqah0x4jzjy3v2nnmmv28lbqzmxzcxjgh4sjkn";
|
2017-09-17 20:51:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "bin" "dev" "out" "lib" ];
|
|
|
|
|
|
|
|
buildInputs = [ zlib python cmake ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
|
|
|
|
make prefix=$out
|
|
|
|
|
|
|
|
mkdir -p $bin/bin
|
|
|
|
mkdir -p $dev/include
|
|
|
|
mkdir -p $lib/lib
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make install
|
|
|
|
mv $out/bin $bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Per-Face Texture Mapping for Production Rendering";
|
|
|
|
homepage = "http://ptex.us/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.guibou ];
|
|
|
|
};
|
|
|
|
}
|