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.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-0.8-0.
tar.bz2
15 PKG_SOURCE_URL
:=@SF
/ustl
16 PKG_MD5SUM
:=dd59483c327f1bd1356273bc5ae4dde0
18 include $(INCLUDE_DIR
)/package.mk
23 TITLE
:=C
++ STL for embedded systems
24 DEPENDS
:=@
!TARGET_avr32
25 URL
:=http
://ustl.sourceforge.net
/
28 define Package
/ustl
/description
29 C
++ Standard Template Library
(STL
) for embedded systems.
\\\
30 uSTL is a partial implementation of the STL
(Standard Template
\\\
31 Library
) that reduces code size by factoring memory management
\\\
32 code into a non-template base class and deriving containers
\\\
36 define Build
/Configure
37 $(CP
) .
/files
/config.h
$(PKG_BUILD_DIR
)/
38 $(CP
) .
/files
/Common.mk
$(PKG_BUILD_DIR
)/
41 TARGET_CFLAGS
+= $(FPIC
)
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
45 CROSS
="$(TARGET_CROSS)" \
46 OPTFLAGS
="$(TARGET_CFLAGS)" \
47 DESTDIR
="$(PKG_INSTALL_DIR)" \
51 define Package
/ustl
/install
52 $(INSTALL_DIR
) $(1)/usr
/lib
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libustl.so.
* $(1)/usr
/lib
/
56 define Build
/InstallDev
57 $(INSTALL_DIR
) $(1)/usr
/include
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ustl
* $(1)/usr
/include/
59 $(INSTALL_DIR
) $(1)/usr
/lib
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libustl.
{a
,so
*} $(1)/usr
/lib
/
63 $(eval
$(call BuildPackage
,ustl
))