3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=8a8e0ee8fefef150c08a649fd7da04aa
10 PKG_SOURCE_URL
:=http
://cxx.uclibc.org
/src
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tbz2
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
16 include $(TOPDIR
)/package
/rules.mk
18 $(eval
$(call PKG_template
,UCLIBCXX
,uclibc
++,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 UCLIBC_TARGET_ARCH
:=$(shell echo
$(ARCH
) | sed
-e s
'/-.*//' \
22 -e
's/sparc.*/sparc/' \
25 -e
's/ppc/powerpc/g' \
26 -e
's/v850.*/v850/g' \
28 -e
's/sh[234].*/sh/' \
30 -e
's/mipsel.*/mips/' \
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
40 $(PKG_BUILD_DIR
)/.built
:
41 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
42 $(TARGET_CONFIGURE_OPTS
) CROSS
="$(TARGET_CROSS)" \
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
)
55 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
56 $(TARGET_CONFIGURE_OPTS
) CROSS
="$(TARGET_CROSS)" \
57 DESTDIR
="$(STAGING_DIR)" \