128b85859229b80f8b73ef85dbd6b50ff2ac8d6a
[openwrt/svn-archive/archive.git] / lang / urbi / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=urbi
12 PKG_VERSION:=1.0RC2-l455
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-sdk-$(PKG_VERSION)-src.zip
16 PKG_SOURCE_URL:=http://www.gostai.com/downloads/aibo/
17 PKG_MD5SUM:=02f64abb6232ddd7b0cb6dc182e2df26
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-sdk
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/urbi
24 SECTION:=lang
25 CATEGORY:=Languages
26 DEPENDS:=+uclibcxx +libpthread
27 TITLE:=URBI SDK
28 URL:=http://www.urbiforge.com
29 endef
30
31 define Package/urbi/description
32 Universal Real-Time Behavior Interface for robots.
33 endef
34
35 CONFIGURE_VARS += \
36 CXX="g++-uc" \
37 CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
38 EXAMPLES=0 \
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 $(TARGET_CONFIGURE_OPTS) \
43 DESTDIR="$(PKG_INSTALL_DIR)" \
44 WARNING_CXXFLAGS="-Wall" \
45 all install
46 endef
47
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)/usr/include/urbi
50 $(CP) $(PKG_INSTALL_DIR)/usr/include/urbi* $(1)/usr/include/urbi/
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburbi* $(1)/usr/lib/
53 endef
54
55 define Package/urbi/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
58 $(INSTALL_DIR) $(1)/usr/bin
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
60 $(INSTALL_DIR) $(1)/usr/gostai
61 $(CP) $(PKG_INSTALL_DIR)/usr/gostai/* $(1)/usr/gostai/
62 endef
63
64 $(eval $(call BuildPackage,urbi))