xref: /OK3568_Linux_fs/buildroot/package/omniorb/omniorb.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# omniorb
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunOMNIORB_VERSION = 4.2.4
8*4882a593SmuzhiyunOMNIORB_SITE = http://downloads.sourceforge.net/project/omniorb/omniORB/omniORB-$(OMNIORB_VERSION)
9*4882a593SmuzhiyunOMNIORB_SOURCE = omniORB-$(OMNIORB_VERSION).tar.bz2
10*4882a593SmuzhiyunOMNIORB_INSTALL_STAGING = YES
11*4882a593SmuzhiyunOMNIORB_LICENSE = GPL2+, LGPL-2.1+
12*4882a593SmuzhiyunOMNIORB_LICENSE_FILES = COPYING COPYING.LIB
13*4882a593SmuzhiyunOMNIORB_DEPENDENCIES = host-omniorb
14*4882a593SmuzhiyunHOST_OMNIORB_DEPENDENCIES = host-python
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun# omniorb is not python3 friendly, so force the python interpreter
17*4882a593SmuzhiyunOMNIORB_CONF_OPTS = ac_cv_path_PYTHON=$(HOST_DIR)/bin/python2
18*4882a593SmuzhiyunHOST_OMNIORB_CONF_OPTS = ac_cv_path_PYTHON=$(HOST_DIR)/bin/python2
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun# Defaulting long double support to a safe option for the
21*4882a593Smuzhiyun# mix of embedded targets, this could later be automated
22*4882a593Smuzhiyun# based on checking the capability of the cross toolchain
23*4882a593Smuzhiyun# for "__LONG_DOUBLE_128__".  Currently the host and target
24*4882a593Smuzhiyun# need to match because of the code generation done by the
25*4882a593Smuzhiyun# host tools during the target compile (ie headers generated
26*4882a593Smuzhiyun# on host are used in target build).
27*4882a593SmuzhiyunOMNIORB_CONF_OPTS += --disable-longdouble
28*4882a593SmuzhiyunHOST_OMNIORB_CONF_OPTS += --disable-longdouble
29*4882a593Smuzhiyun
30*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OPENSSL),y)
31*4882a593SmuzhiyunOMNIORB_CONF_OPTS += --with-openssl
32*4882a593SmuzhiyunOMNIORB_DEPENDENCIES += openssl
33*4882a593Smuzhiyunelse
34*4882a593SmuzhiyunOMNIORB_CONF_OPTS += --without-openssl
35*4882a593Smuzhiyunendif
36*4882a593Smuzhiyun
37*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_ZLIB),y)
38*4882a593SmuzhiyunOMNIORB_DEPENDENCIES += zlib
39*4882a593Smuzhiyunendif
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun# The EmbeddedSystem define (set below in OMNIORB_ADJUST_TOOLDIR)
42*4882a593Smuzhiyun# enables building of just the lib and disables building of
43*4882a593Smuzhiyun# tools/apps/services.  In some cases the apps/services are still
44*4882a593Smuzhiyun# required.  The tools however are host related and should never
45*4882a593Smuzhiyun# be required on target.
46*4882a593Smuzhiyundefine OMNIORB_ENABLE_EXTRA_APPS
47*4882a593Smuzhiyun	$(SED) 's:SUBDIRS += lib:SUBDIRS += lib appl services:g' $(@D)/src/dir.mk
48*4882a593Smuzhiyunendef
49*4882a593Smuzhiyun
50*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OMNIORB_WITH_APPS),y)
51*4882a593SmuzhiyunOMNIORB_POST_PATCH_HOOKS += OMNIORB_ENABLE_EXTRA_APPS
52*4882a593Smuzhiyunendif
53*4882a593Smuzhiyun
54*4882a593Smuzhiyunifeq ($(BR2_STATIC_LIBS),y)
55*4882a593Smuzhiyundefine OMNIORB_DISABLE_SHARED
56*4882a593Smuzhiyun	echo "BuildSharedLibrary =" >> $(@D)/mk/beforeauto.mk
57*4882a593Smuzhiyunendef
58*4882a593SmuzhiyunOMNIORB_POST_CONFIGURE_HOOKS += OMNIORB_DISABLE_SHARED
59*4882a593Smuzhiyunendif
60*4882a593Smuzhiyun
61*4882a593Smuzhiyun# omniORB is not completely cross-compile friendly and has some
62*4882a593Smuzhiyun# assumptions where a couple host tools must be built and then
63*4882a593Smuzhiyun# used by the target build.  The host tools generate code from
64*4882a593Smuzhiyun# the IDL description language, which is then built into the
65*4882a593Smuzhiyun# cross compiled target OMNIORB application.
66*4882a593Smuzhiyundefine OMNIORB_ADJUST_TOOLDIR
67*4882a593Smuzhiyun	# Point to the host folder to get HOST_OMNIORB tools
68*4882a593Smuzhiyun	$(SED) 's:TOOLBINDIR = $$(TOP)/$$(BINDIR):TOOLBINDIR = $(HOST_DIR)/bin:g' $(@D)/mk/beforeauto.mk
69*4882a593Smuzhiyun	# Disables OMNIORB app/service/tool building
70*4882a593Smuzhiyun	echo "EmbeddedSystem=1" >> $(@D)/mk/beforeauto.mk
71*4882a593Smuzhiyunendef
72*4882a593SmuzhiyunOMNIORB_POST_CONFIGURE_HOOKS += OMNIORB_ADJUST_TOOLDIR
73*4882a593Smuzhiyun
74*4882a593Smuzhiyun$(eval $(autotools-package))
75*4882a593Smuzhiyun$(eval $(host-autotools-package))
76