[packages] net-snmp: Enable ipv6 support if defined globally
[openwrt/svn-archive/archive.git] / libs / orbit2 / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=orbit2
4 PKG_VERSION:=2.14.16
5 PKG_RELEASE:=1
6
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
12 PKG_FIXUP:=libtool
13
14 include $(INCLUDE_DIR)/host-build.mk
15 include $(INCLUDE_DIR)/package.mk
16
17 PKG_INSTALL:=1
18
19 HOST_BUILD_DEPENDS:=libIDL2/host
20 PKG_BUILD_DEPENDS:=orbit2/host
21
22 TARGET_CFLAGS+= \
23 -I$(STAGING_DIR)/usr/lib/libintl/include \
24 -I$(STAGING_DIR)/usr/libiconv/include
25
26 TARGET_LDFLAGS+= \
27 -L$(STAGING_DIR)/usr/lib/libintl/lib \
28 -L$(STAGING_DIR)/usr/lib/libiconv/lib
29
30 BIGENDIAN=no
31 ifeq ($(CONFIG_BIG_ENDIAN),y)
32 BIGENDIAN:=yes
33 endif
34
35 CONFIGURE_VARS += \
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
49
50 define Package/orbit2
51 SECTION:=xorg-libs
52 CATEGORY:=Xorg
53 SUBMENU:=libraries
54 TITLE:=ORBit2
55 URL:=http://www.gnome.org/projects/ORBit2/
56 DEPENDS:=+glib2 +libIDL2
57 endef
58
59 define Package/orbit2/description
60 ORBit2 is a CORBA 2.4-compliant Object Request Broker (ORB).
61 endef
62
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
66 endef
67
68 define Build/InstallDev
69 $(INSTALL_DIR) $(1)/usr/{include/orbit-2.0,lib/pkgconfig}
70
71 $(CP) \
72 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
73 $(1)/usr/lib/
74
75 $(INSTALL_DATA) \
76 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
77 $(1)/usr/lib/pkgconfig/
78
79 $(CP) \
80 $(PKG_INSTALL_DIR)/usr/include/orbit-2.0/* \
81 $(1)/usr/include/orbit-2.0/
82
83 $(INSTALL_DIR) $(1)/usr/share/aclocal
84 $(INSTALL_DATA) \
85 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
86 $(1)/usr/share/aclocal/
87
88 $(INSTALL_DIR) $(1)/usr/share/idl/orbit-2.0
89 $(INSTALL_DATA) \
90 $(PKG_INSTALL_DIR)/usr/share/idl/orbit-2.0/* \
91 $(1)/usr/share/idl/orbit-2.0/
92 endef
93
94 define Package/orbit2/install
95 $(INSTALL_DIR) $(1)/usr/lib
96 $(CP) \
97 $(PKG_INSTALL_DIR)/usr/lib/libORBit*.so* \
98 $(1)/usr/lib/
99 endef
100
101 $(eval $(call HostBuild))
102 $(eval $(call BuildPackage,orbit2))