1 include $(TOPDIR
)/rules.mk
7 PKG_BUILD_DIR
:=$(BUILD_DIR
)/ORBit2-
$(PKG_VERSION
)
8 HOST_BUILD_DIR
:=$(BUILD_DIR_HOST
)/ORBit2-
$(PKG_VERSION
)
9 PKG_SOURCE
:=ORBit2-
$(PKG_VERSION
).
tar.bz2
10 PKG_SOURCE_URL
:=@GNOME
/ORBit2
/2.14
11 #PKG_MD5SUM:=d7fb9eb41e8196f1aacf2f08375ae555
14 include $(INCLUDE_DIR
)/host-build.mk
15 include $(INCLUDE_DIR
)/package.mk
19 HOST_BUILD_DEPENDS
:=libIDL2
/host
20 PKG_BUILD_DEPENDS
:=orbit2
/host
23 -I
$(STAGING_DIR
)/usr
/lib
/libintl
/include \
24 -I
$(STAGING_DIR
)/usr
/libiconv
/include
27 -L
$(STAGING_DIR
)/usr
/lib
/libintl
/lib \
28 -L
$(STAGING_DIR
)/usr
/lib
/libiconv
/lib
31 ifeq ($(CONFIG_BIG_ENDIAN
),y
)
36 ac_cv_c_bigendian
=$(BIGENDIAN
) \
37 ac_cv_alignof_CORBA_octet
=1 \
38 ac_cv_alignof_CORBA_boolean
=1 \
39 ac_cv_alignof_CORBA_char
=1 \
40 ac_cv_alignof_CORBA_wchar
=2 \
41 ac_cv_alignof_CORBA_short
=2 \
42 ac_cv_alignof_CORBA_long
=4 \
43 ac_cv_alignof_CORBA_long_long
=4 \
44 ac_cv_alignof_CORBA_float
=4 \
45 ac_cv_alignof_CORBA_double
=4 \
46 ac_cv_alignof_CORBA_long_double
=4 \
47 ac_cv_alignof_CORBA_struct
=1 \
48 ac_cv_alignof_CORBA_pointer
=4
55 URL
:=http
://www.gnome.org
/projects
/ORBit2
/
56 DEPENDS
:=+glib2
+libIDL2
59 define Package
/orbit2
/description
60 ORBit2 is a CORBA
2.4-compliant Object Request Broker
(ORB
).
63 define Build
/Configure
64 $(call Build
/Configure
/Default
)
65 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
68 define Build
/InstallDev
69 $(INSTALL_DIR
) $(1)/usr
/{include/orbit-2.0
,lib
/pkgconfig
}
72 $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{so
*,a
,la
} \
76 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
77 $(1)/usr
/lib
/pkgconfig
/
80 $(PKG_INSTALL_DIR
)/usr
/include/orbit-2.0
/* \
81 $(1)/usr
/include/orbit-2.0
/
83 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
85 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
86 $(1)/usr
/share
/aclocal
/
88 $(INSTALL_DIR
) $(1)/usr
/share
/idl
/orbit-2.0
90 $(PKG_INSTALL_DIR
)/usr
/share
/idl
/orbit-2.0
/* \
91 $(1)/usr
/share
/idl
/orbit-2.0
/
94 define Package
/orbit2
/install
95 $(INSTALL_DIR
) $(1)/usr
/lib
97 $(PKG_INSTALL_DIR
)/usr
/lib
/libORBit
*.so
* \
101 $(eval
$(call HostBuild
))
102 $(eval
$(call BuildPackage
,orbit2
))