Merge pull request #36158 from guibou/guibou_bump_partio
partio: 1.1.0 -> 2018-03-01
This commit is contained in:
commit
ce82ae17a9
@ -3,28 +3,26 @@
|
|||||||
stdenv.mkDerivation rec
|
stdenv.mkDerivation rec
|
||||||
{
|
{
|
||||||
name = "partio-${version}";
|
name = "partio-${version}";
|
||||||
version = "1.1.0";
|
version = "2018-03-01";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "wdas";
|
owner = "wdas";
|
||||||
repo = "partio";
|
repo = "partio";
|
||||||
rev = "v${version}";
|
rev = "8b6ea0d20f1ab77cd7f18390999251e60932de4a";
|
||||||
sha256 = "0z7n5ay21ca7g7xb80v6jmr96x9k7vm7zawawvmx71yj32rg1n34";
|
sha256 = "16sdj103v02l2dgq9y9cna9jakafabz9jxzdxsd737ir6wn10ksb";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "dev" "out" "lib" ];
|
outputs = [ "dev" "out" "lib" ];
|
||||||
|
|
||||||
buildInputs = [ unzip cmake freeglut mesa zlib swig python doxygen xorg.libXi xorg.libXmu ];
|
nativeBuildInputs = [ unzip cmake doxygen ];
|
||||||
|
buildInputs = [ freeglut mesa zlib swig python xorg.libXi xorg.libXmu ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
sed 's/ADD_LIBRARY (partio /ADD_LIBRARY (partio SHARED /' -i ../src/lib/CMakeLists.txt
|
|
||||||
CXXFLAGS="-std=c++11" cmake .
|
|
||||||
make partio
|
make partio
|
||||||
|
|
||||||
mkdir $dev
|
mkdir $dev
|
||||||
mkdir -p $lib/lib
|
|
||||||
mkdir $out
|
mkdir $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -32,19 +30,16 @@ stdenv.mkDerivation rec
|
|||||||
# Sexpr support
|
# Sexpr support
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir $dev/lib
|
make install prefix=$out
|
||||||
mkdir -p $dev/include/partio
|
mkdir $dev/include/partio
|
||||||
|
mv $dev/include/*.h $dev/include/partio
|
||||||
mv lib/libpartio.so $lib/lib
|
|
||||||
|
|
||||||
mv ../src/lib/* $dev/include/partio
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "C++ (with python bindings) library for easily reading/writing/manipulating common animation particle formats such as PDB, BGEO, PTC";
|
description = "C++ (with python bindings) library for easily reading/writing/manipulating common animation particle formats such as PDB, BGEO, PTC";
|
||||||
homepage = "https://www.disneyanimation.com/technology/partio.html";
|
homepage = "https://www.disneyanimation.com/technology/partio.html";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
platforms = platforms.all;
|
platforms = platforms.linux;
|
||||||
maintainers = [ maintainers.guibou ];
|
maintainers = [ maintainers.guibou ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user