Adding xercesc, the references to coin3d and soqt, and trying to add

freecad (that still does not build).

svn path=/nixpkgs/trunk/; revision=26135
This commit is contained in:
Lluís Batlle i Rossell 2011-03-02 17:18:30 +00:00
parent f58e7158e0
commit d11c00e5a5
3 changed files with 70 additions and 0 deletions

View file

@ -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" ];
}

View file

@ -0,0 +1,17 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "xerces-c-${version}";
version = "3.1.1";
src = fetchurl {
url = "mirror://apache/xerces/c/3/sources/${name}.tar.gz";
sha256 = "0dl7jr26vlh5p3hps86xrwyafq6f21schc9q4zyxb48b3vvqa9x4";
};
meta = {
homepage = http://xerces.apache.org/xerces-c/;
description = "Validating XML parser written in a portable subset of C++";
license = "ASL2.0";
};
}

View file

@ -2875,6 +2875,8 @@ let
inherit (gnome) gtk;
};
coin3d = callPackage ../development/libraries/coin3d { };
commoncpp2 = callPackage ../development/libraries/commoncpp2 { };
confuse = callPackage ../development/libraries/confuse { };
@ -4091,6 +4093,8 @@ let
# optional
};
soqt = callPackage ../development/libraries/soqt { };
speechd = callPackage ../development/libraries/speechd { };
speex = callPackage ../development/libraries/speex { };
@ -4214,6 +4218,8 @@ let
xautolock = callPackage ../misc/screensavers/xautolock { };
xercesc = callPackage ../development/libraries/xercesc {};
xercesJava = callPackage ../development/libraries/java/xerces {
ant = apacheAntGcj; # for bootstrap purposes
javac = gcj;
@ -6021,6 +6027,8 @@ let
flite = callPackage ../applications/misc/flite { };
freecad = callPackage ../applications/graphics/freecad { };
freemind = callPackage ../applications/misc/freemind {
jdk = jdk;
jre = jdk;