packages/scpa5xx-view: use lowercase config option, use new service functions
[openwrt/svn-archive/archive.git] / libs / orbit2 / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=orbit2
11 PKG_VERSION:=2.14.16
12 PKG_RELEASE:=1
13
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
19
20 PKG_FIXUP:=libtool
21
22 include $(INCLUDE_DIR)/host-build.mk
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/nls.mk
25
26 PKG_INSTALL:=1
27
28 HOST_BUILD_DEPENDS:=libIDL2/host
29 PKG_BUILD_DEPENDS:=orbit2/host
30
31 BIGENDIAN=no
32 ifeq ($(CONFIG_BIG_ENDIAN),y)
33 BIGENDIAN:=yes
34 endif
35
36 CONFIGURE_VARS += \
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
50
51 define Package/orbit2
52 SECTION:=xorg-libraries
53 CATEGORY:=Xorg
54 SUBMENU:=libraries
55 TITLE:=ORBit2
56 URL:=http://www.gnome.org/projects/ORBit2/
57 DEPENDS:=+glib2 +libIDL2
58 endef
59
60 define Package/orbit2/description
61 ORBit2 is a CORBA 2.4-compliant Object Request Broker (ORB).
62 endef
63
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
67 endef
68
69 define Build/InstallDev
70 $(INSTALL_DIR) $(1)/usr/{include/orbit-2.0,lib/pkgconfig}
71
72 $(CP) \
73 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
74 $(1)/usr/lib/
75
76 $(INSTALL_DATA) \
77 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
78 $(1)/usr/lib/pkgconfig/
79
80 $(CP) \
81 $(PKG_INSTALL_DIR)/usr/include/orbit-2.0/* \
82 $(1)/usr/include/orbit-2.0/
83
84 $(INSTALL_DIR) $(1)/usr/share/aclocal
85 $(INSTALL_DATA) \
86 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
87 $(1)/usr/share/aclocal/
88
89 $(INSTALL_DIR) $(1)/usr/share/idl/orbit-2.0
90 $(INSTALL_DATA) \
91 $(PKG_INSTALL_DIR)/usr/share/idl/orbit-2.0/* \
92 $(1)/usr/share/idl/orbit-2.0/
93 endef
94
95 define Package/orbit2/install
96 $(INSTALL_DIR) $(1)/usr/lib
97 $(CP) \
98 $(PKG_INSTALL_DIR)/usr/lib/libORBit*.so* \
99 $(1)/usr/lib/
100 endef
101
102 $(eval $(call HostBuild))
103 $(eval $(call BuildPackage,orbit2))