[package] fix urbi compilation failure on octeon (#6987)
[openwrt/svn-archive/archive.git] / lang / urbi / Makefile
1 #
2 # Copyright (C) 2007-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:=urbi
11 PKG_VERSION:=1.0RC2-l455
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-sdk-$(PKG_VERSION)-src.zip
15 PKG_SOURCE_URL:=http://www.gostai.com/downloads/aibo/
16 PKG_MD5SUM:=02f64abb6232ddd7b0cb6dc182e2df26
17 PKG_FIXUP:=libtool-ucxx
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-sdk
20
21 include $(INCLUDE_DIR)/package.mk
22
23 TARGET_CFLAGS += $(FPIC)
24
25 define Package/urbi
26 SECTION:=lang
27 CATEGORY:=Languages
28 DEPENDS:=+uclibcxx +libpthread
29 TITLE:=URBI SDK
30 URL:=http://www.urbiforge.com
31 endef
32
33 define Package/urbi/description
34 Universal Real-Time Behavior Interface for robots.
35 endef
36
37 CONFIGURE_VARS += \
38 CXX="g++-uc" \
39 CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
40 EXAMPLES=0 \
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 $(TARGET_CONFIGURE_OPTS) \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 WARNING_CXXFLAGS="-Wall" \
47 all install
48 endef
49
50 define Build/InstallDev
51 $(INSTALL_DIR) $(1)/usr/include/urbi
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/urbi* $(1)/usr/include/urbi/
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburbi* $(1)/usr/lib/
55 endef
56
57 define Package/urbi/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
60 $(INSTALL_DIR) $(1)/usr/bin
61 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
62 $(INSTALL_DIR) $(1)/usr/gostai
63 $(CP) $(PKG_INSTALL_DIR)/usr/gostai/* $(1)/usr/gostai/
64 endef
65
66 $(eval $(call BuildPackage,urbi))