2024-12-10 19:26:33 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
pkg-config,
|
|
|
|
glib,
|
|
|
|
libIDL,
|
|
|
|
libintl,
|
|
|
|
buildPackages,
|
|
|
|
}:
|
2009-09-30 05:27:34 +00:00
|
|
|
|
2011-10-09 07:11:28 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-03-07 00:02:11 +00:00
|
|
|
pname = "ORBit2";
|
|
|
|
version = "2.14.19";
|
2015-04-05 05:22:12 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-03-07 00:02:11 +00:00
|
|
|
url = "mirror://gnome/sources/ORBit2/${lib.versions.majorMinor version}/ORBit2-${version}.tar.bz2";
|
2011-10-09 07:11:28 +00:00
|
|
|
sha256 = "0l3mhpyym9m5iz09fz0rgiqxl2ym6kpkwpsp1xrr4aa80nlh1jam";
|
2009-09-30 05:27:34 +00:00
|
|
|
};
|
2011-10-09 07:11:28 +00:00
|
|
|
|
2023-11-08 17:55:05 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
# Processing file orbit-interface.idl
|
|
|
|
# sh: gcc: not found
|
|
|
|
# output does not contain binaries for build
|
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
2024-12-10 19:26:33 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
libintl
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
libIDL
|
|
|
|
];
|
2016-04-26 19:19:25 +00:00
|
|
|
|
2024-12-10 19:26:33 +00:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"dev"
|
|
|
|
];
|
2016-04-26 19:19:25 +00:00
|
|
|
|
2023-11-08 17:55:05 +00:00
|
|
|
configureFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
|
|
|
"--with-idl-compiler=${lib.getExe' buildPackages.gnome2.ORBit2 "orbit-idl-2"}"
|
|
|
|
# https://github.com/void-linux/void-packages/blob/e5856e02aa6ef7e4f2725afbff2915f89d39024b/srcpkgs/ORBit2/template#L17-L35
|
|
|
|
"ac_cv_alignof_CORBA_boolean=1"
|
|
|
|
"ac_cv_alignof_CORBA_char=1"
|
|
|
|
"ac_cv_alignof_CORBA_double=8"
|
|
|
|
"ac_cv_alignof_CORBA_float=4"
|
|
|
|
"ac_cv_alignof_CORBA_long=4"
|
|
|
|
"ac_cv_alignof_CORBA_long_double=8"
|
|
|
|
"ac_cv_alignof_CORBA_long_long=8"
|
|
|
|
"ac_cv_alignof_CORBA_octet=1"
|
|
|
|
"ac_cv_alignof_CORBA_short=2"
|
|
|
|
"ac_cv_alignof_CORBA_struct=1"
|
|
|
|
"ac_cv_alignof_CORBA_wchar=2"
|
|
|
|
"ac_cv_alignof_CORBA_pointer=${if stdenv.hostPlatform.is64bit then "8" else "4"}"
|
|
|
|
];
|
|
|
|
|
2013-04-08 12:50:10 +00:00
|
|
|
preBuild = ''
|
|
|
|
sed 's/-DG_DISABLE_DEPRECATED//' -i linc2/src/Makefile
|
|
|
|
'';
|
|
|
|
|
2016-04-26 19:19:25 +00:00
|
|
|
preFixup = ''
|
|
|
|
moveToOutput "bin/orbit2-config" "$dev"
|
|
|
|
'';
|
2013-07-03 10:09:27 +00:00
|
|
|
|
2021-10-22 21:35:09 +00:00
|
|
|
# Parallel build fails due to missing internal library dependency:
|
|
|
|
# libtool --tag=CC --mode=link gcc ... -o orbit-name-server-2 ...
|
|
|
|
# ld: cannot find libname-server-2.a: No such file or directory
|
|
|
|
# It happens because orbit-name-server-2 should have libname-server-2.a
|
|
|
|
# in _DEPENDENCIES but does not. Instead of fixing it and regenerating
|
|
|
|
# Makefile.in let's just disable parallel build.
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2024-12-10 19:26:33 +00:00
|
|
|
homepage = "https://developer-old.gnome.org/ORBit2/";
|
2016-04-26 19:19:25 +00:00
|
|
|
description = "CORBA 2.4-compliant Object Request Broker";
|
2024-12-10 19:26:33 +00:00
|
|
|
platforms = platforms.unix;
|
2013-07-03 10:09:27 +00:00
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
ORBit2 is a CORBA 2.4-compliant Object Request Broker (ORB) featuring
|
|
|
|
mature C, C++ and Python bindings. Bindings (in various degrees of
|
|
|
|
completeness) are also available for Perl, Lisp, Pascal, Ruby, and TCL;
|
|
|
|
others are in-progress. It supports POA, DII, DSI, TypeCode, Any, IR and
|
|
|
|
IIOP. Optional features including INS and threading are available. ORBit2
|
|
|
|
is engineered for the desktop workstation environment, with a focus on
|
|
|
|
performance, low resource usage, and security. The core ORB is written in
|
|
|
|
C, and runs under Linux, UNIX (BSD, Solaris, HP-UX, ...), and Windows.
|
|
|
|
ORBit2 is developed and released as open source software under GPL/LGPL.
|
|
|
|
'';
|
|
|
|
};
|
2009-09-30 05:27:34 +00:00
|
|
|
}
|