1e75f0a8d73694bb57ea6e15c93a250d48c87f28
[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 $(call Build/Compile/Default,\
42 DESTDIR="$(PKG_INSTALL_DIR)" \
43 all install \
44 )
45 endef
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(STAGING_DIR)/usr/include/urbi
49 $(CP) $(PKG_INSTALL_DIR)/usr/include/urbi* $(STAGING_DIR)/usr/include/urbi/
50 $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburbi* $(STAGING_DIR)/usr/lib/
52 endef
53
54 define Build/UninstallDev
55 rm -rf $(STAGING_DIR)/usr/include/urbi
56 endef
57
58 define Package/urbi/install
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
61 $(INSTALL_DIR) $(1)/usr/bin
62 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
63 $(INSTALL_DIR) $(1)/usr/gostai
64 $(CP) $(PKG_INSTALL_DIR)/usr/gostai/* $(1)/usr/gostai/
65 endef
66
67 $(eval $(call BuildPackage,urbi))