2005-04-26 01:59:52 +03:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=uClibc++
|
2005-07-04 22:37:44 +03:00
|
|
|
PKG_VERSION:=0.1.11
|
2005-04-26 01:59:52 +03:00
|
|
|
PKG_RELEASE:=1
|
2005-07-04 22:37:44 +03:00
|
|
|
PKG_MD5SUM:=8a8e0ee8fefef150c08a649fd7da04aa
|
2005-04-26 01:59:52 +03:00
|
|
|
|
|
|
|
PKG_SOURCE_URL:=http://cxx.uclibc.org/src/
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tbz2
|
|
|
|
PKG_CAT:=bzcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
|
2005-07-15 19:19:36 +03:00
|
|
|
include $(TOPDIR)/package/rules.mk
|
|
|
|
|
|
|
|
$(eval $(call PKG_template,UCLIBCXX,uclibc++,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
2005-04-26 01:59:52 +03:00
|
|
|
|
|
|
|
UCLIBC_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \
|
|
|
|
-e 's/i.86/i386/' \
|
|
|
|
-e 's/sparc.*/sparc/' \
|
|
|
|
-e 's/arm.*/arm/g' \
|
|
|
|
-e 's/m68k.*/m68k/' \
|
|
|
|
-e 's/ppc/powerpc/g' \
|
|
|
|
-e 's/v850.*/v850/g' \
|
|
|
|
-e 's/sh64/sh/' \
|
|
|
|
-e 's/sh[234].*/sh/' \
|
|
|
|
-e 's/mips.*/mips/' \
|
|
|
|
-e 's/mipsel.*/mips/' \
|
|
|
|
-e 's/cris.*/cris/' \
|
|
|
|
)
|
|
|
|
|
2005-07-15 19:19:36 +03:00
|
|
|
$(PKG_BUILD_DIR)/.configured:
|
2005-08-10 06:02:06 +03:00
|
|
|
cp ./files/config.$(UCLIBC_TARGET_ARCH) $(PKG_BUILD_DIR)/.config
|
2005-07-15 19:19:36 +03:00
|
|
|
touch $@
|
2005-04-26 01:59:52 +03:00
|
|
|
|
2005-07-15 19:19:36 +03:00
|
|
|
$(PKG_BUILD_DIR)/.built:
|
2005-04-26 01:59:52 +03:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2005-08-10 06:02:06 +03:00
|
|
|
TOPDIR="$(PKG_BUILD_DIR)/" \
|
2005-07-25 09:28:41 +03:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2005-08-10 06:02:06 +03:00
|
|
|
ARCH_CFLAGS="$(TARGET_CFLAGS)" \
|
2005-07-25 09:28:41 +03:00
|
|
|
CROSS="$(TARGET_CROSS)" \
|
2005-07-15 19:19:36 +03:00
|
|
|
all
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(IPKG_UCLIBCXX):
|
|
|
|
install -d -m0755 $(IDIR_UCLIBCXX)/usr/lib
|
|
|
|
cp -fpR $(PKG_BUILD_DIR)/src/libuClibc++*.so* $(IDIR_UCLIBCXX)/usr/lib/
|
|
|
|
$(STRIP) $(IDIR_UCLIBCXX)/usr/lib/*.so*
|
|
|
|
mkdir -p $(PACKAGE_DIR)
|
|
|
|
$(IPKG_BUILD) $(IDIR_UCLIBCXX) $(PACKAGE_DIR)
|
2005-04-26 01:59:52 +03:00
|
|
|
|
2005-10-22 15:12:59 +03:00
|
|
|
compile-targets: install-dev
|
2005-07-25 09:28:41 +03:00
|
|
|
install-dev: $(PKG_BUILD_DIR)/.built
|
2005-04-26 01:59:52 +03:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2005-08-10 06:02:06 +03:00
|
|
|
TOPDIR="$(PKG_BUILD_DIR)/" \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
ARCH_CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
CROSS="$(TARGET_CROSS)" \
|
2005-04-26 01:59:52 +03:00
|
|
|
DESTDIR="$(STAGING_DIR)" \
|
|
|
|
install
|