From 29db2ca0c9457131c8bf190c4a2ac4caae5d0433 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 5 Sep 2010 23:37:54 +0000 Subject: [PATCH] Adding Ekiga svn path=/nixpkgs/trunk/; revision=23653 --- .../applications/networking/ekiga/default.nix | 71 +++++++++++++++++++ pkgs/development/libraries/opal/default.nix | 56 +++++++++++++++ pkgs/development/libraries/ptlib/default.nix | 50 +++++++++++++ pkgs/development/libraries/srtp/default.nix | 47 ++++++++++++ .../servers/evolution-data-server/default.nix | 56 +++++++++++++++ pkgs/top-level/all-packages.nix | 13 ++++ 6 files changed, 293 insertions(+) create mode 100644 pkgs/applications/networking/ekiga/default.nix create mode 100644 pkgs/development/libraries/opal/default.nix create mode 100644 pkgs/development/libraries/ptlib/default.nix create mode 100644 pkgs/development/libraries/srtp/default.nix create mode 100644 pkgs/servers/evolution-data-server/default.nix diff --git a/pkgs/applications/networking/ekiga/default.nix b/pkgs/applications/networking/ekiga/default.nix new file mode 100644 index 00000000000..46af2275c37 --- /dev/null +++ b/pkgs/applications/networking/ekiga/default.nix @@ -0,0 +1,71 @@ +x@{builderDefsPackage + , cyrus_sasl, gettext, openldap, ptlib, opal, GConf, libXv, rarian, intltool + , perl, perlXMLParser, evolution_data_server, gnome_doc_utils, avahi + , libsigcxx, gtk, dbus_glib, libnotify, libXext, xextproto, automake + , autoconf, pkgconfig, libxml2, videoproto, unixODBC, db4, nspr, nss, zlib + , libXrandr, randrproto, which, libxslt + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = rec { + baseName="ekiga"; + baseVersion="3.2"; + patchlevel="7"; + version="${baseVersion}.${patchlevel}"; + name="${baseName}-${version}"; + url="mirror://gnome/sources/${baseName}/${baseVersion}/${name}.tar.bz2"; + hash="13zxwfqhp7pisadx0hq50qwnj6d8r4dldvbs1ngydbwfnq4i6npj"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = ["setVars" "doConfigure" "doMakeInstall"]; + configureFlags = [ + "--with-ldap-dir=${openldap}" + "--with-libsasl2-dir=${cyrus_sasl}" + ]; + + setVars = a.noDepEntry ('' + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${opal}/include/opal" + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$(echo ${evolution_data_server}/include/evolution-*)" + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libxml2}/include/libxml2" + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${GConf}/include/gconf/2" + + export NIX_LDFLAGS="$NIX_LDFLAGS -lopal" + for i in ${evolution_data_server}/lib/lib*.so; do + file="$(basename "$i" .so)" + bn="''${file#lib}" + export NIX_LDFLAGS="$NIX_LDFLAGS -l$bn" + done + ''); + + meta = { + description = "Ekiga SIP client"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + }; + passthru = { + updateInfo = { + downloadPage = "mirror://gnome/sources/ekiga"; + }; + }; +}) x + diff --git a/pkgs/development/libraries/opal/default.nix b/pkgs/development/libraries/opal/default.nix new file mode 100644 index 00000000000..23615d6646d --- /dev/null +++ b/pkgs/development/libraries/opal/default.nix @@ -0,0 +1,56 @@ +x@{builderDefsPackage + , doxygen, pkgconfig, ptlib, srtp, libtheora, speex + , ffmpeg, x264, cyrus_sasl, openldap, openssl, expat, unixODBC + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = rec { + baseName="opal"; + baseVersion="3.6"; + patchlevel="8"; + version="${baseVersion}.${patchlevel}"; + name="${baseName}-${version}"; + url="mirror://gnome/sources/${baseName}/${baseVersion}/${name}.tar.bz2"; + hash="0359wqmrxqajd94sw3q2dn6n6y3caggavwdcmzyn6maw7srspgwc"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = ["setVars" "doConfigure" "doMakeInstall"]; + configureFlags = [ + "--enable-h323" + ]; + setVars = a.noDepEntry ('' + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -D__STDC_CONSTANT_MACROS=1" + ''); + + meta = { + description = "OPAL VoIP library"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + }; + passthru = { + updateInfo = { + downloadPage = "http://ftp.gnome.org/pub/GNOME/sources/opal"; + }; + }; +}) x + diff --git a/pkgs/development/libraries/ptlib/default.nix b/pkgs/development/libraries/ptlib/default.nix new file mode 100644 index 00000000000..be1e6fdb4a5 --- /dev/null +++ b/pkgs/development/libraries/ptlib/default.nix @@ -0,0 +1,50 @@ +x@{builderDefsPackage + , autoconf, automake, libtool, doxygen, pkgconfig, bison, flex, unixODBC + , openssl, openldap, cyrus_sasl, krb5, expat, SDL, libdv, libv4l, alsaLib + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = rec { + baseName="ptlib"; + baseVersion="2.6"; + patchlevel="7"; + version="${baseVersion}.${patchlevel}"; + name="${baseName}-${version}"; + url="mirror://gnome/sources/${baseName}/${baseVersion}/${name}.tar.bz2"; + hash="0zxrygl2ivbciqf97yd9n67ch9vd9gp236w96i6ia8fxzqjq5lkx"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = ["doConfigure" "doMakeInstall"]; + + meta = { + description = "Portable Tools from OPAL VoIP"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + }; + passthru = { + updateInfo = { + downloadPage = "http://ftp.gnome.org/sources/ptlib/"; + }; + }; +}) x + diff --git a/pkgs/development/libraries/srtp/default.nix b/pkgs/development/libraries/srtp/default.nix new file mode 100644 index 00000000000..887c0c7c1a3 --- /dev/null +++ b/pkgs/development/libraries/srtp/default.nix @@ -0,0 +1,47 @@ +x@{builderDefsPackage + , autoconf, automake, libtool, doxygen, procps + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = rec { + baseName="srtp"; + version="1.4.2"; + name="${baseName}-${version}"; + url="http://srtp.sourceforge.net/${name}.tgz"; + hash="1497mcxharnhiccjhny30g4wlv28ckdxhj14jrwvdnnvhl80jf43"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = ["doConfigure" "doMakeInstall"]; + + meta = { + description = "Secure RTP"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + }; + passthru = { + updateInfo = { + downloadPage = "http://srtp.sourceforge.net/download.html"; + }; + }; +}) x + diff --git a/pkgs/servers/evolution-data-server/default.nix b/pkgs/servers/evolution-data-server/default.nix new file mode 100644 index 00000000000..d313da9f2f9 --- /dev/null +++ b/pkgs/servers/evolution-data-server/default.nix @@ -0,0 +1,56 @@ +x@{builderDefsPackage + , pkgconfig, flex, bison, libtool, intltool, perl + , db4, krb5, openldap, glib, libxml2, GConf + , nss, gtk, libgnome, libsoup, gnome_keyring + , gtkdoc, sqlite, libgweather, libical, icu + , dbus_glib, gperf, nspr, gdk_pixbuf ? null + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = rec { + url = "mirror://gnome/sources/evolution-data-server/2.30/evolution-data-server-2.30.3.tar.bz2"; + hash = "147qkpiafrlq220qg2pmp9lbvh8bn339wh1699bgb7rvmdvycwrp"; + version = "2.30.3"; + name = "evolution-data-server-${version}"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = ["doConfigure" "doMakeInstall"]; + + configureFlags = [ + "--with-nspr-includes=${nspr}/include/nspr" + "--with-nss-includes=${nss}/include/nss" + ]; + + meta = { + description = "Evolution Data Server"; + maintainers = with a.lib.maintainers; + [ + /* I am only interested in it for libebook... */ + raskin + ]; + platforms = with a.lib.platforms; + linux; + }; + passthru = { + updateInfo = { + downloadPage = "http://projects.gnome.org/evolution/download.shtml"; + }; + }; +}) x + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 176c88dd5fc..3110971c8d0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3589,6 +3589,8 @@ let opensc = opensc_0_11_7; }; + opal = callPackage ../development/libraries/opal {}; + openjpeg = callPackage ../development/libraries/openjpeg { }; openssl = callPackage ../development/libraries/openssl { @@ -3640,6 +3642,8 @@ let pth = callPackage ../development/libraries/pth { }; + ptlib = callPackage ../development/libraries/ptlib {}; + qjson = callPackage ../development/libraries/qjson { }; qt3 = callPackage ../development/libraries/qt-3 { @@ -3738,6 +3742,8 @@ let speex = callPackage ../development/libraries/speex { }; + srtp = callPackage ../development/libraries/srtp {}; + sqlite = callPackage ../development/libraries/sqlite { readline = null; ncurses = null; @@ -5455,6 +5461,10 @@ let libgnomeui libglade glib gtk scrollkeeper gnome_keyring; }; + evolution_data_server = (newScope (gnome // gtkLibs)) + ../servers/evolution-data-server { + }; + exrdisplay = callPackage ../applications/graphics/exrdisplay { fltk = fltk20; }; @@ -6869,6 +6879,9 @@ let dpkg = callPackage ../tools/package-management/dpkg { }; + ekiga = lib.callPackageWith (pkgs // pkgs.xorg // pkgs.gtkLibs // pkgs.gnome) + ../applications/networking/ekiga {}; + electricsheep = callPackage ../misc/screensavers/electricsheep { }; foldingathome = callPackage ../misc/foldingathome { };