update heyu
[openwrt.git] / package / ustl / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=ustl
6 PKG_VERSION:=0.8
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=dd59483c327f1bd1356273bc5ae4dde0
9
10 PKG_SOURCE_URL:=@SF/ustl
11 PKG_SOURCE:=$(PKG_NAME)-0.8-0.tar.bz2
12 PKG_CAT:=bzcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 BR2_PACKAGE_USTL:=m
20
21 $(eval $(call PKG_template,USTL,ustl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23 $(PKG_BUILD_DIR)/.configured:
24 $(CP) ./files/config.h $(PKG_BUILD_DIR)/
25 $(CP) ./files/Common.mk $(PKG_BUILD_DIR)/
26 touch $@
27
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)" \
35 all install
36 touch $@
37
38 $(IPKG_USTL):
39 install -d -m0755 $(IDIR_USTL)/usr/lib
40 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libustl.so.* $(IDIR_USTL)/usr/lib/
41 $(RSTRIP) $(IDIR_USTL)
42 $(IPKG_BUILD) $(IDIR_USTL) $(PACKAGE_DIR)
43
44 $(STAGING_DIR)/usr/lib/libustl.so: $(PKG_BUILD_DIR)/.built
45 mkdir -p $(STAGING_DIR)/usr/include
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/ustl* $(STAGING_DIR)/usr/include/
47 mkdir -p $(STAGING_DIR)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libustl.a $(STAGING_DIR)/usr/lib/
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libustl.so* $(STAGING_DIR)/usr/lib/
50 touch $@
51
52 install-dev: $(STAGING_DIR)/usr/lib/libustl.so
53
54 uninstall-dev:
55 rm -rf \
56 $(STAGING_DIR)/usr/include/ustl* \
57 $(STAGING_DIR)/usr/lib/libustl.a \
58 $(STAGING_DIR)/usr/lib/libustl.so* \
59
60 compile-targets: install-dev
61 clean-targets: uninstall-dev
62
63 mostlyclean:
64 -$(MAKE) -C $(PKG_BUILD_DIR) clean
65 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.086235 seconds and 5 git commands to generate.