summaryrefslogtreecommitdiff
path: root/package/orbit2
diff options
context:
space:
mode:
Diffstat (limited to 'package/orbit2')
-rw-r--r--package/orbit2/Makefile45
-rw-r--r--package/orbit2/patches/patch-ORBit-2_0_pc_in11
-rw-r--r--package/orbit2/patches/patch-configure11
-rw-r--r--package/orbit2/patches/patch-src_idl-compiler_Makefile_in54
4 files changed, 121 insertions, 0 deletions
diff --git a/package/orbit2/Makefile b/package/orbit2/Makefile
new file mode 100644
index 000000000..db64efe10
--- /dev/null
+++ b/package/orbit2/Makefile
@@ -0,0 +1,45 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= ORBit2
+PKG_VERSION:= 2.14.19
+PKG_EXTRAVER:= 2.14
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 87c69c56c6d0bdafa4de5e18ae115cc9
+PKG_DESCR:= a CORBA 2.4-compliant Object Request Broker
+PKG_SECTION:= libs
+PKG_BUILDDEP:= libIDL
+PKG_URL:= http://projects.gnome.org/ORBit2/
+PKG_SITES:= ftp://ftp.gnome.org//pub/gnome/sources/ORBit2/${PKG_EXTRAVER}/
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,ORBIT2,orbit2,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CFLAGS_FOR_BUILD+= $(shell ${BUILD_LIBIDL_CONFIG} --cflags)
+LDFLAGS_FOR_BUILD+= $(shell ${BUILD_LIBIDL_CONFIG} --libs)
+LDFLAGS_FOR_BUILD+= -lgmodule-2.0
+CONFIGURE_ENV+= ac_cv_alignof_CORBA_octet=1 \
+ ac_cv_alignof_CORBA_boolean=1 \
+ ac_cv_alignof_CORBA_char=1 \
+ ac_cv_alignof_CORBA_wchar=2 \
+ ac_cv_alignof_CORBA_short=2 \
+ ac_cv_alignof_CORBA_long=4 \
+ ac_cv_alignof_CORBA_long_long=4 \
+ ac_cv_alignof_CORBA_float=4 \
+ ac_cv_alignof_CORBA_double=4 \
+ ac_cv_alignof_CORBA_long_double=4 \
+ ac_cv_alignof_CORBA_struct=1 \
+ ac_cv_alignof_CORBA_pointer=4
+
+orbit2-install:
+ $(INSTALL_DIR) $(IDIR_ORBIT2)/usr/lib
+ $(INSTALL_BIN) $(WRKINST)/usr/lib/libORBit*.so* \
+ $(IDIR_ORBIT2)/usr/lib
+ $(INSTALL_DIR) $(STAGING_DIR)/usr/bin
+ $(CP) $(WRKINST)/usr/bin/orbit-idl-2 \
+ $(STAGING_DIR)/usr/bin
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/orbit2/patches/patch-ORBit-2_0_pc_in b/package/orbit2/patches/patch-ORBit-2_0_pc_in
new file mode 100644
index 000000000..394e62a0c
--- /dev/null
+++ b/package/orbit2/patches/patch-ORBit-2_0_pc_in
@@ -0,0 +1,11 @@
+--- ORBit2-2.14.19.orig/ORBit-2.0.pc.in 2010-02-09 13:05:35.000000000 +0100
++++ ORBit2-2.14.19/ORBit-2.0.pc.in 2011-03-25 21:11:02.000000000 +0100
+@@ -2,7 +2,7 @@ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+ libdir=@libdir@
+ includedir=@includedir@
+-orbit_idl=@bindir@/orbit-idl-2@EXEEXT@
++orbit_idl=${prefix}/../@bindir@/orbit-idl-2@EXEEXT@
+
+
+ Name: ORBit-2.0
diff --git a/package/orbit2/patches/patch-configure b/package/orbit2/patches/patch-configure
new file mode 100644
index 000000000..e2a4d02c9
--- /dev/null
+++ b/package/orbit2/patches/patch-configure
@@ -0,0 +1,11 @@
+--- ORBit2-2.14.19.orig/configure 2010-09-28 11:39:37.000000000 +0200
++++ ORBit2-2.14.19/configure 2011-03-25 19:39:53.000000000 +0100
+@@ -8373,7 +8373,7 @@ $as_echo_n "checking whether the $compil
+ # here allows them to be overridden if necessary.
+ runpath_var=LD_RUN_PATH
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+- export_dynamic_flag_spec='${wl}--export-dynamic'
++ #export_dynamic_flag_spec='${wl}--export-dynamic'
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
+ whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
diff --git a/package/orbit2/patches/patch-src_idl-compiler_Makefile_in b/package/orbit2/patches/patch-src_idl-compiler_Makefile_in
new file mode 100644
index 000000000..2053d9f29
--- /dev/null
+++ b/package/orbit2/patches/patch-src_idl-compiler_Makefile_in
@@ -0,0 +1,54 @@
+--- ORBit2-2.14.19.orig/src/idl-compiler/Makefile.in 2010-09-28 11:39:39.000000000 +0200
++++ ORBit2-2.14.19/src/idl-compiler/Makefile.in 2011-03-25 20:28:46.000000000 +0100
+@@ -66,15 +66,13 @@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top
+ depcomp = $(SHELL) $(top_srcdir)/depcomp
+ am__depfiles_maybe = depfiles
+ am__mv = mv -f
+-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++COMPILE = $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
++ $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD)
+ LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+- --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+-CCLD = $(CC)
+-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+- --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+- $(LDFLAGS) -o $@
++ --mode=compile $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
++ $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD)
++CCLD = $(CC_FOR_BUILD)
++LINK = $(CCLD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@
+ SOURCES = $(orbit_idl_2_SOURCES)
+ DIST_SOURCES = $(orbit_idl_2_SOURCES)
+ am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+@@ -178,8 +176,8 @@ ORBIT_ALIGNOF_CORBA_SHORT = @ORBIT_ALIGN
+ ORBIT_ALIGNOF_CORBA_STRUCT = @ORBIT_ALIGNOF_CORBA_STRUCT@
+ ORBIT_ALIGNOF_CORBA_WCHAR = @ORBIT_ALIGNOF_CORBA_WCHAR@
+ ORBIT_CFLAGS = @ORBIT_CFLAGS@
+-ORBIT_IDL_CFLAGS = @ORBIT_IDL_CFLAGS@
+-ORBIT_IDL_LIBS = @ORBIT_IDL_LIBS@
++ORBIT_IDL_CFLAGS =
++ORBIT_IDL_LIBS =
+ ORBIT_LIBS = @ORBIT_LIBS@
+ ORBIT_MAJOR_VERSION = @ORBIT_MAJOR_VERSION@
+ ORBIT_MICRO_VERSION = @ORBIT_MICRO_VERSION@
+@@ -199,7 +197,7 @@ PACKAGE_URL = @PACKAGE_URL@
+ PACKAGE_VERSION = @PACKAGE_VERSION@
+ PATH_SEPARATOR = @PATH_SEPARATOR@
+ PKG_CONFIG = @PKG_CONFIG@
+-PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
++PKG_CONFIG_LIBDIR = $(PKG_HOSTLIB_DIR)
+ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+ RANLIB = @RANLIB@
+ SED = @SED@
+@@ -270,8 +268,7 @@ INCLUDES = \
+ -DVERSION=\"$(ORBIT_VERSION)\" \
+ -DORBIT2_INTERNAL_API \
+ $(WARN_CFLAGS) \
+- $(DISABLE_DEPRECATED_CFLAGS) \
+- $(ORBIT_IDL_CFLAGS)
++ $(DISABLE_DEPRECATED_CFLAGS)
+
+ orbit_idl_2_LDADD = \
+ $(ORBIT_IDL_LIBS) \