omniorb.mk 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. ################################################################################
  2. #
  3. # omniorb
  4. #
  5. ################################################################################
  6. OMNIORB_VERSION = 4.3.1
  7. OMNIORB_SITE = http://downloads.sourceforge.net/project/omniorb/omniORB/omniORB-$(OMNIORB_VERSION)
  8. OMNIORB_SOURCE = omniORB-$(OMNIORB_VERSION).tar.bz2
  9. OMNIORB_INSTALL_STAGING = YES
  10. OMNIORB_LICENSE = GPL2+, LGPL-2.1+
  11. OMNIORB_LICENSE_FILES = COPYING COPYING.LIB
  12. OMNIORB_DEPENDENCIES = host-omniorb
  13. HOST_OMNIORB_DEPENDENCIES = host-python3
  14. # Defaulting long double support to a safe option for the
  15. # mix of embedded targets, this could later be automated
  16. # based on checking the capability of the cross toolchain
  17. # for "__LONG_DOUBLE_128__". Currently the host and target
  18. # need to match because of the code generation done by the
  19. # host tools during the target compile (ie headers generated
  20. # on host are used in target build).
  21. OMNIORB_CONF_OPTS += --disable-longdouble
  22. HOST_OMNIORB_CONF_OPTS += --disable-longdouble
  23. ifeq ($(BR2_PACKAGE_OPENSSL),y)
  24. OMNIORB_CONF_OPTS += --with-openssl
  25. OMNIORB_DEPENDENCIES += host-pkgconf openssl
  26. else
  27. OMNIORB_CONF_OPTS += --without-openssl
  28. endif
  29. ifeq ($(BR2_PACKAGE_ZLIB),y)
  30. OMNIORB_DEPENDENCIES += zlib
  31. endif
  32. # The EmbeddedSystem define (set below in OMNIORB_ADJUST_TOOLDIR)
  33. # enables building of just the lib and disables building of
  34. # tools/apps/services. In some cases the apps/services are still
  35. # required. The tools however are host related and should never
  36. # be required on target.
  37. define OMNIORB_ENABLE_EXTRA_APPS
  38. $(SED) 's:SUBDIRS += lib:SUBDIRS += lib appl services:g' $(@D)/src/dir.mk
  39. endef
  40. ifeq ($(BR2_PACKAGE_OMNIORB_WITH_APPS),y)
  41. OMNIORB_POST_PATCH_HOOKS += OMNIORB_ENABLE_EXTRA_APPS
  42. endif
  43. ifeq ($(BR2_STATIC_LIBS),y)
  44. define OMNIORB_DISABLE_SHARED
  45. echo "BuildSharedLibrary =" >> $(@D)/mk/beforeauto.mk
  46. endef
  47. OMNIORB_POST_CONFIGURE_HOOKS += OMNIORB_DISABLE_SHARED
  48. endif
  49. # omniORB is not completely cross-compile friendly and has some
  50. # assumptions where a couple host tools must be built and then
  51. # used by the target build. The host tools generate code from
  52. # the IDL description language, which is then built into the
  53. # cross compiled target OMNIORB application.
  54. define OMNIORB_ADJUST_TOOLDIR
  55. # Point to the host folder to get HOST_OMNIORB tools
  56. $(SED) 's:TOOLBINDIR = $$(TOP)/$$(BINDIR):TOOLBINDIR = $(HOST_DIR)/bin:g' $(@D)/mk/beforeauto.mk
  57. # Disables OMNIORB app/service/tool building
  58. echo "EmbeddedSystem=1" >> $(@D)/mk/beforeauto.mk
  59. endef
  60. OMNIORB_POST_CONFIGURE_HOOKS += OMNIORB_ADJUST_TOOLDIR
  61. $(eval $(autotools-package))
  62. $(eval $(host-autotools-package))