2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE
:=$(PKG_NAME
)-0.8-0.
tar.bz2
17 PKG_SOURCE_URL
:=@SF
/ustl
18 PKG_MD5SUM
:=dd59483c327f1bd1356273bc5ae4dde0
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
27 TITLE
:=C
++ STL for embedded systems
28 URL
:=http
://ustl.sourceforge.net
/
31 define Package
/ustl
/description
32 C
++ Standard Template Library
(STL
) for embedded systems.
\\\
33 uSTL is a partial implementation of the STL
(Standard Template
\\\
34 Library
) that reduces code size by factoring memory management
\\\
35 code into a non-template base class and deriving containers
\\\
39 define Build
/Configure
40 $(CP
) .
/files
/config.h
$(PKG_BUILD_DIR
)/
41 $(CP
) .
/files
/Common.mk
$(PKG_BUILD_DIR
)/
45 rm -rf
$(PKG_INSTALL_DIR
)
46 mkdir
-p
$(PKG_INSTALL_DIR
)
47 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
48 CROSS
="$(TARGET_CROSS)" \
49 OPTFLAGS
="$(TARGET_CFLAGS)" \
50 DESTDIR
="$(PKG_INSTALL_DIR)" \
54 define Package
/ustl
/install
55 $(INSTALL_DIR
) $(1)/usr
/lib
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libustl.so.
* $(1)/usr
/lib
/
59 define Build
/InstallDev
60 mkdir
-p
$(1)/usr
/include
61 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ustl
* $(1)/usr
/include/
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libustl.
{a
,so
*} $(1)/usr
/lib
/
66 $(eval
$(call BuildPackage
,ustl
))