summary refs log tree commit diff
path: root/pkgs/applications/graphics/freecad
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-03-02 17:18:30 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-03-02 17:18:30 +0000
commitd11c00e5a5ea121f218501931ccc9195c696bf7e (patch)
treea258dc6deafc81a8c58cf941d4a9d8f97bc8df26 /pkgs/applications/graphics/freecad
parentf58e7158e04657ef089164882461e726fa6b5642 (diff)
downloadnixpkgs-d11c00e5a5ea121f218501931ccc9195c696bf7e.tar
nixpkgs-d11c00e5a5ea121f218501931ccc9195c696bf7e.tar.gz
nixpkgs-d11c00e5a5ea121f218501931ccc9195c696bf7e.tar.bz2
nixpkgs-d11c00e5a5ea121f218501931ccc9195c696bf7e.tar.lz
nixpkgs-d11c00e5a5ea121f218501931ccc9195c696bf7e.tar.xz
nixpkgs-d11c00e5a5ea121f218501931ccc9195c696bf7e.tar.zst
nixpkgs-d11c00e5a5ea121f218501931ccc9195c696bf7e.zip
Adding xercesc, the references to coin3d and soqt, and trying to add
freecad (that still does not build).

svn path=/nixpkgs/trunk/; revision=26135
Diffstat (limited to 'pkgs/applications/graphics/freecad')
-rw-r--r--pkgs/applications/graphics/freecad/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/freecad/default.nix b/pkgs/applications/graphics/freecad/default.nix
new file mode 100644
index 00000000000..0dc942c202d
--- /dev/null
+++ b/pkgs/applications/graphics/freecad/default.nix
@@ -0,0 +1,45 @@
+{ fetchurl, stdenv, cmake, coin3d, xercesc, ode, eigen, qt4, opencascade, gts,
+boost, zlib,
+python, swig, gfortran, soqt, autoconf, automake, libtool }:
+
+throw "It does not build still"
+
+stdenv.mkDerivation rec {
+  name = "freecad-${version}";
+  version = "0.11.3729";
+
+  src = fetchurl {
+/*
+    url = "mirror://sourceforge/free-cad/freecad-${version}.tar.gz";
+    sha256 = "0q9jhnhkjsq9iy4kqi4xh2ljack4b2jj4pjm4dylv4z2d9gg5p4l";
+*/
+    url = "mirror://sourceforge/free-cad/freecad-${version}.dfsg.tar.gz";
+    sha256 = "0sjcbadzzgdjr5bk51nr3nq0siyvfdq0913dqlhv9xr42vha3j8r";
+  };
+
+  buildInputs = [ cmake coin3d xercesc ode eigen qt4 opencascade gts boost
+    zlib python swig gfortran soqt /*autoconf automake libtool*/ ];
+
+/*
+  # Using autotools
+  patchPhase = ''
+    sed -i -e 's/boost_\([a-z_]\+\)-mt/boost_\1/' \
+      configure
+  '';
+
+  configureFlags = [ "--with-eigen2-include=${eigen}/include/eigen2"
+    "--with-boost-include=${boost}/include"
+    "--with-boost-lib=${boost}/lib"
+    "--with-qt4-dir=${qt4}"
+  ];
+*/
+
+  # Using cmake
+
+  patchPhase = ''
+    sed -i -e '/Idf/d' -e '/Start/d' src/Mod/CMakeLists.txt
+  '';
+
+  cmakeFlags = [ "-Wno-dev" ];
+
+}