2009-04-20 14:49:35 +02:00
|
|
|
{ stdenv, fetchurl, pam, python, tcsh, libxslt, perl, ArchiveZip
|
|
|
|
, CompressZlib, zlib, libjpeg, expat, pkgconfig, freetype, libwpd
|
2007-07-18 18:45:07 +02:00
|
|
|
, libxml2, db4, sablotron, curl, libXaw, fontconfig, libsndfile, neon
|
2007-09-10 16:03:01 +02:00
|
|
|
, bison, flex, zip, unzip, gtk, libmspack, getopt, file, cairo, which
|
2009-04-20 15:50:07 +02:00
|
|
|
, icu, boost, jdk, ant, libXext, libX11, libXtst, libXi, cups
|
2009-09-29 17:36:33 +02:00
|
|
|
, libXinerama, openssl, gperf, cppunit, GConf, ORBit2
|
2007-09-05 15:56:12 +02:00
|
|
|
}:
|
2005-10-25 20:01:13 +02:00
|
|
|
|
2010-11-10 17:22:29 +01:00
|
|
|
let version = "3.2.1"; in
|
2011-02-15 17:06:33 +01:00
|
|
|
|
2007-09-06 17:57:34 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2008-08-14 17:09:41 +02:00
|
|
|
name = "openoffice.org-${version}";
|
2005-10-25 20:01:13 +02:00
|
|
|
builder = ./builder.sh;
|
2007-09-05 15:56:12 +02:00
|
|
|
|
2010-11-10 17:22:29 +01:00
|
|
|
downloadRoot = "http://openoffice.mirrorbrain.org/files/stable";
|
2010-05-19 09:31:07 +02:00
|
|
|
versionDirs = true;
|
2010-04-06 19:30:51 +02:00
|
|
|
|
2009-04-20 15:50:07 +02:00
|
|
|
src = fetchurl {
|
2010-04-15 13:15:08 +02:00
|
|
|
url = "${downloadRoot}/${if versionDirs then version + "/" else ""}OOo_${version}_src_core.tar.bz2";
|
2010-11-10 17:22:29 +01:00
|
|
|
sha256 = "0gj2hinhnzkazh44k1an05x5cj7n6721f2grqrkjh31cm38r9p6i";
|
2009-04-20 15:50:07 +02:00
|
|
|
};
|
|
|
|
|
2011-02-15 17:06:33 +01:00
|
|
|
patches = [ ./oo.patch ./root-required.patch ./xlib.patch ];
|
2009-04-20 15:50:07 +02:00
|
|
|
|
2010-11-10 22:37:16 +01:00
|
|
|
postPatch =
|
|
|
|
/* Compiling with GCC 4.5 fails:
|
|
|
|
|
|
|
|
Compiling: cppu/source/AffineBridge/AffineBridge.cxx
|
|
|
|
[...]
|
|
|
|
../../inc/uno/lbnames.h:67:2: error: #error "Supported gcc majors are 2 , 3 and 4 <= 4.4. Unsupported gcc major version."
|
|
|
|
|
|
|
|
However, we can't compile with GCC 4.4 because then we'd end up with
|
|
|
|
two different versions of libstdc++ (because the deps are compiled
|
|
|
|
with 4.5), which isn't supported (link time error.)
|
|
|
|
|
|
|
|
Thus, force compilation with 4.5 and hope for the best. */
|
2010-11-11 12:02:44 +01:00
|
|
|
'' sed -i "cppu/inc/uno/lbnames.h" \
|
2010-11-10 23:43:45 +01:00
|
|
|
-e 's/#[[:blank:]]*error "Supported.*$//g'
|
2010-11-10 22:37:16 +01:00
|
|
|
'';
|
|
|
|
|
2009-04-20 15:50:07 +02:00
|
|
|
src_system = fetchurl {
|
2010-04-15 13:32:38 +02:00
|
|
|
url = "${downloadRoot}/${if versionDirs then version + "/" else ""}OOo_${version}_src_system.tar.bz2";
|
2010-11-10 17:22:29 +01:00
|
|
|
sha256 = "0giy3sza64ij19w7b06rxcrkrb5kq2fvkz486vh3mv08s8xa8zfc";
|
2007-12-03 05:16:33 +01:00
|
|
|
};
|
2007-07-18 18:45:07 +02:00
|
|
|
|
2010-05-18 22:57:00 +02:00
|
|
|
preConfigure = ''
|
|
|
|
PATH=$PATH:${icu}/sbin
|
|
|
|
'';
|
|
|
|
|
2007-09-05 15:56:12 +02:00
|
|
|
configureFlags = "
|
|
|
|
--with-package-format=native
|
|
|
|
--disable-epm
|
|
|
|
--disable-fontooo
|
|
|
|
--disable-gnome-vfs
|
|
|
|
--disable-gnome-vfs
|
|
|
|
--disable-mathmldtd
|
|
|
|
--disable-mozilla
|
|
|
|
--disable-odk
|
|
|
|
--disable-pasf
|
|
|
|
--with-cairo
|
|
|
|
--with-system-libs
|
|
|
|
--with-system-python
|
|
|
|
--with-system-boost
|
2010-05-18 22:57:00 +02:00
|
|
|
--with-system-db
|
2007-09-06 17:31:41 +02:00
|
|
|
--with-jdk-home=${jdk}
|
|
|
|
--with-ant-home=${ant}
|
2007-09-05 15:56:12 +02:00
|
|
|
--without-afms
|
|
|
|
--without-dict
|
|
|
|
--without-fonts
|
|
|
|
--without-myspell-dicts
|
|
|
|
--without-nas
|
|
|
|
--without-ppds
|
|
|
|
--without-system-agg
|
|
|
|
--without-system-beanshell
|
|
|
|
--without-system-hsqldb
|
|
|
|
--without-system-xalan
|
|
|
|
--without-system-xerces
|
|
|
|
--without-system-xml-apis
|
|
|
|
--without-system-xt
|
2009-04-20 15:50:07 +02:00
|
|
|
--without-system-jars
|
|
|
|
--without-system-hunspell
|
|
|
|
--without-system-altlinuxhyph
|
|
|
|
--without-system-lpsolve
|
2010-04-06 23:46:52 +02:00
|
|
|
--without-system-graphite
|
2007-09-05 15:56:12 +02:00
|
|
|
";
|
|
|
|
|
2007-09-07 09:08:20 +02:00
|
|
|
LD_LIBRARY_PATH = "${libXext}/lib:${libX11}/lib:${libXtst}/lib:${libXi}/lib:${libjpeg}/lib";
|
2007-09-06 17:57:34 +02:00
|
|
|
|
2007-09-06 17:31:41 +02:00
|
|
|
buildInputs = [
|
2009-04-20 14:49:35 +02:00
|
|
|
pam python tcsh libxslt perl ArchiveZip CompressZlib zlib
|
2007-09-05 15:56:12 +02:00
|
|
|
libjpeg expat pkgconfig freetype libwpd libxml2 db4 sablotron curl
|
|
|
|
libXaw fontconfig libsndfile neon bison flex zip unzip gtk libmspack
|
2007-09-06 20:51:10 +02:00
|
|
|
getopt file jdk cairo which icu boost libXext libX11 libXtst libXi
|
2009-09-29 17:36:33 +02:00
|
|
|
cups libXinerama openssl gperf GConf ORBit2
|
2007-09-05 15:56:12 +02:00
|
|
|
];
|
|
|
|
|
2007-09-10 16:03:01 +02:00
|
|
|
inherit icu fontconfig libjpeg jdk cups;
|
2007-09-06 17:00:33 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "OpenOffice.org is a multiplatform and multilingual office suite";
|
|
|
|
homepage = http://www.openoffice.org/;
|
|
|
|
license = "LGPL";
|
2010-04-06 23:46:52 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
2007-09-06 17:00:33 +02:00
|
|
|
};
|
2005-10-25 20:01:13 +02:00
|
|
|
}
|