remove UninstallDev
[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 all install
45 endef
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include/urbi
49 $(CP) $(PKG_INSTALL_DIR)/usr/include/urbi* $(1)/usr/include/urbi/
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburbi* $(1)/usr/lib/
52 endef
53
54 define Package/urbi/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
57 $(INSTALL_DIR) $(1)/usr/bin
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
59 $(INSTALL_DIR) $(1)/usr/gostai
60 $(CP) $(PKG_INSTALL_DIR)/usr/gostai/* $(1)/usr/gostai/
61 endef
62
63 $(eval $(call BuildPackage,urbi))