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
) .
/files
/config.
$(UCLIBC_TARGET_ARCH
) $(PKG_BUILD_DIR
)/.config
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)" \
48 install -d
-m0755
$(IDIR_UCLIBCXX
)/usr
/lib
49 $(CP
) $(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
)
54 compile-targets
: 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)" \