3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=dd59483c327f1bd1356273bc5ae4dde0
10 PKG_SOURCE_URL
:=@SF
/ustl
11 PKG_SOURCE
:=$(PKG_NAME
)-0.8-0.
tar.bz2
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
21 $(eval
$(call PKG_template
,USTL
,ustl
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(PKG_BUILD_DIR
)/.configured
:
24 cp .
/files
/config.h
$(PKG_BUILD_DIR
)/
25 cp .
/files
/Common.mk
$(PKG_BUILD_DIR
)/
28 $(PKG_BUILD_DIR
)/.built
:
29 rm -rf
$(PKG_INSTALL_DIR
)
30 mkdir
-p
$(PKG_INSTALL_DIR
)
31 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
32 CROSS
="$(TARGET_CROSS)" \
33 OPTFLAGS
="$(TARGET_CFLAGS)" \
34 DESTDIR
="$(PKG_INSTALL_DIR)" \
39 install -d
-m0755
$(IDIR_USTL
)/usr
/lib
40 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libustl.so.
* $(IDIR_USTL
)/usr
/lib
/
41 $(RSTRIP
) $(IDIR_USTL
)
42 $(IPKG_BUILD
) $(IDIR_USTL
) $(PACKAGE_DIR
)
44 $(STAGING_DIR
)/usr
/lib
/libustl.so
: $(PKG_BUILD_DIR
)/.built
45 mkdir
-p
$(STAGING_DIR
)/usr
/include
46 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/ustl
* $(STAGING_DIR
)/usr
/include/
47 mkdir
-p
$(STAGING_DIR
)/usr
/lib
48 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libustl.a
$(STAGING_DIR
)/usr
/lib
/
49 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libustl.so
* $(STAGING_DIR
)/usr
/lib
/
52 install-dev
: $(STAGING_DIR
)/usr
/lib
/libustl.so
56 $(STAGING_DIR
)/usr
/include/ustl
* \
57 $(STAGING_DIR
)/usr
/lib
/libustl.a \
58 $(STAGING_DIR
)/usr
/lib
/libustl.so
* \
60 compile-targets
: install-dev
61 clean-targets
: uninstall-dev
64 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
65 rm -f
$(PKG_BUILD_DIR
)/.built