2 # Copyright (C) 2009-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/ORBit2-
$(PKG_VERSION
)
15 HOST_BUILD_DIR
:=$(BUILD_DIR_HOST
)/ORBit2-
$(PKG_VERSION
)
16 PKG_SOURCE
:=ORBit2-
$(PKG_VERSION
).
tar.bz2
17 PKG_SOURCE_URL
:=@GNOME
/ORBit2
/2.14
18 #PKG_MD5SUM:=d7fb9eb41e8196f1aacf2f08375ae555
22 include $(INCLUDE_DIR
)/host-build.mk
23 include $(INCLUDE_DIR
)/package.mk
24 include $(INCLUDE_DIR
)/nls.mk
28 HOST_BUILD_DEPENDS
:=libIDL2
/host
29 PKG_BUILD_DEPENDS
:=orbit2
/host
32 ifeq ($(CONFIG_BIG_ENDIAN
),y
)
37 ac_cv_c_bigendian
=$(BIGENDIAN
) \
38 ac_cv_alignof_CORBA_octet
=1 \
39 ac_cv_alignof_CORBA_boolean
=1 \
40 ac_cv_alignof_CORBA_char
=1 \
41 ac_cv_alignof_CORBA_wchar
=2 \
42 ac_cv_alignof_CORBA_short
=2 \
43 ac_cv_alignof_CORBA_long
=4 \
44 ac_cv_alignof_CORBA_long_long
=4 \
45 ac_cv_alignof_CORBA_float
=4 \
46 ac_cv_alignof_CORBA_double
=4 \
47 ac_cv_alignof_CORBA_long_double
=4 \
48 ac_cv_alignof_CORBA_struct
=1 \
49 ac_cv_alignof_CORBA_pointer
=4
52 SECTION
:=xorg-libraries
56 URL
:=http
://www.gnome.org
/projects
/ORBit2
/
57 DEPENDS
:=+glib2
+libIDL2
60 define Package
/orbit2
/description
61 ORBit2 is a CORBA
2.4-compliant Object Request Broker
(ORB
).
64 define Build
/Configure
65 $(call Build
/Configure
/Default
)
66 find
$(PKG_BUILD_DIR
) -name Makefile
-exec sed
-i
's,IDL_COMPILER.*orbit-idl-2,IDL_COMPILER = $(STAGING_DIR_HOST)/bin/orbit-idl-2,g' {} \
; # tell orbit2 to use the host-built idl-compiler
69 define Build
/InstallDev
70 $(INSTALL_DIR
) $(1)/usr
/{include/orbit-2.0
,lib
/pkgconfig
}
73 $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{so
*,a
,la
} \
77 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
78 $(1)/usr
/lib
/pkgconfig
/
81 $(PKG_INSTALL_DIR
)/usr
/include/orbit-2.0
/* \
82 $(1)/usr
/include/orbit-2.0
/
84 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
86 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
87 $(1)/usr
/share
/aclocal
/
89 $(INSTALL_DIR
) $(1)/usr
/share
/idl
/orbit-2.0
91 $(PKG_INSTALL_DIR
)/usr
/share
/idl
/orbit-2.0
/* \
92 $(1)/usr
/share
/idl
/orbit-2.0
/
95 define Package
/orbit2
/install
96 $(INSTALL_DIR
) $(1)/usr
/lib
98 $(PKG_INSTALL_DIR
)/usr
/lib
/libORBit
*.so
* \
102 $(eval
$(call HostBuild
))
103 $(eval
$(call BuildPackage
,orbit2
))