copy uclibc++ package from whiterussian to head
[openwrt.git] / 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 ./uclibc++.config $(PKG_BUILD_DIR)/.config
36 $(SED) 's,^.*TARGET_ARCH.*,TARGET_ARCH="$(UCLIBC_TARGET_ARCH)",g' $(PKG_BUILD_DIR)/.config
37 $(SED) 's,^.*ARCH_CFLAGS.*,ARCH_CFLAGS="-mno-split-addresses $(TARGET_CFLAGS)",g' $(PKG_BUILD_DIR)/.config
38 touch $@
39
40 $(PKG_BUILD_DIR)/.built:
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 $(TARGET_CONFIGURE_OPTS) CROSS="$(TARGET_CROSS)" \
43 all
44 touch $@
45
46 $(IPKG_UCLIBCXX):
47 install -d -m0755 $(IDIR_UCLIBCXX)/usr/lib
48 cp -fpR $(PKG_BUILD_DIR)/src/libuClibc++*.so* $(IDIR_UCLIBCXX)/usr/lib/
49 $(STRIP) $(IDIR_UCLIBCXX)/usr/lib/*.so*
50 mkdir -p $(PACKAGE_DIR)
51 $(IPKG_BUILD) $(IDIR_UCLIBCXX) $(PACKAGE_DIR)
52
53 compile: install-dev
54 install-dev:
55 $(MAKE) -C $(PKG_BUILD_DIR) \
56 $(TARGET_CONFIGURE_OPTS) CROSS="$(TARGET_CROSS)" \
57 DESTDIR="$(STAGING_DIR)" \
58 install
This page took 0.045003 seconds and 5 git commands to generate.