update to new upstream release (v4.1.9),
[openwrt.git] / openwrt / package / uclibc++ / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=uClibc++
6 PKG_VERSION:=0.1.11
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=8a8e0ee8fefef150c08a649fd7da04aa
9
10 PKG_SOURCE_URL:=http://cxx.uclibc.org/src/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tbz2
12 PKG_CAT:=bzcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,UCLIBCXX,uclibc++,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 UCLIBC_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \
21 -e 's/i.86/i386/' \
22 -e 's/sparc.*/sparc/' \
23 -e 's/arm.*/arm/g' \
24 -e 's/m68k.*/m68k/' \
25 -e 's/ppc/powerpc/g' \
26 -e 's/v850.*/v850/g' \
27 -e 's/sh64/sh/' \
28 -e 's/sh[234].*/sh/' \
29 -e 's/mips.*/mips/' \
30 -e 's/mipsel.*/mips/' \
31 -e 's/cris.*/cris/' \
32 )
33
34 $(PKG_BUILD_DIR)/.configured:
35 cp ./files/config.$(UCLIBC_TARGET_ARCH) $(PKG_BUILD_DIR)/.config
36 touch $@
37
38 $(PKG_BUILD_DIR)/.built:
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 TOPDIR="$(PKG_BUILD_DIR)/" \
41 $(TARGET_CONFIGURE_OPTS) \
42 ARCH_CFLAGS="$(TARGET_CFLAGS)" \
43 CROSS="$(TARGET_CROSS)" \
44 all
45 touch $@
46
47 $(IPKG_UCLIBCXX):
48 install -d -m0755 $(IDIR_UCLIBCXX)/usr/lib
49 cp -fpR $(PKG_BUILD_DIR)/src/libuClibc++*.so* $(IDIR_UCLIBCXX)/usr/lib/
50 $(STRIP) $(IDIR_UCLIBCXX)/usr/lib/*.so*
51 mkdir -p $(PACKAGE_DIR)
52 $(IPKG_BUILD) $(IDIR_UCLIBCXX) $(PACKAGE_DIR)
53
54 compile: install-dev
55 install-dev: $(PKG_BUILD_DIR)/.built
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 TOPDIR="$(PKG_BUILD_DIR)/" \
58 $(TARGET_CONFIGURE_OPTS) \
59 ARCH_CFLAGS="$(TARGET_CFLAGS)" \
60 CROSS="$(TARGET_CROSS)" \
61 DESTDIR="$(STAGING_DIR)" \
62 install
This page took 0.045468 seconds and 5 git commands to generate.