replace lots of manual install commands with INSTALL_* variables
[openwrt/svn-archive/archive.git] / libs / uclibc++ / Makefile
index b006c84..1ce9214 100644 (file)
@@ -4,37 +4,34 @@
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
 #
-# $Id: Makefile 3843 2006-05-30 18:55:52Z florian $
+# $Id$
 
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=uclibc++
-PKG_VERSION:=0.2.0
+PKG_VERSION:=0.2.1
 PKG_RELEASE:=1
-PKG_MD5SUM:=33e01302511c9a1987fb104f12d173e1
 
+PKG_BUILD_DIR:=$(BUILD_DIR)/uClibc++-$(PKG_VERSION)
+PKG_SOURCE:=uClibc++-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://cxx.uclibc.org/src/
-PKG_SOURCE:=uClibc++-$(PKG_VERSION).tbz2
+PKG_MD5SUM:=6e6032c49916b199ffe6a585552fd46b
 PKG_CAT:=bzcat
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/uClibc++-$(PKG_VERSION)
-PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
-
 include $(INCLUDE_DIR)/package.mk
 
 define Package/uclibcxx
-NAME:=uclibc++
-SECTION:=libs
-CATEGORY:=Libraries
-TITLE:=C++ library for embedded systems
-DESCRIPTION:=A standard C++ library for embedded systems
-URL:=http://cxx.uclibc.org/src/
+  NAME:=uclibc++
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=C++ library for embedded systems
+  DESCRIPTION:=A standard C++ library for embedded systems
+  URL:=http://cxx.uclibc.org/src/
 endef
 
 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' \
@@ -50,19 +47,19 @@ define Build/Configure
 endef
 
 define Build/Compile
-       rm -rf $(PKG_INSTALL_DIR)
-       mkdir -p $(PKG_INSTALL_DIR)
        $(MAKE) -C $(PKG_BUILD_DIR) \
                TOPDIR="$(PKG_BUILD_DIR)/" \
                $(TARGET_CONFIGURE_OPTS) \
                ARCH_CFLAGS="$(TARGET_CFLAGS)" \
                CROSS="$(TARGET_CROSS)" \
+               CP="$(CP)" \
                all
 endef
 
 define Package/uclibcxx/install
-       install -m0755 -d $(1)/lib
+       $(INSTALL_DIR) $(1)/lib
        $(CP) $(PKG_BUILD_DIR)/src/libuClibc++*.so.* $(1)/lib/
+       $(CP) $(PKG_BUILD_DIR)/src/libuClibc++-*.so $(1)/lib/
 endef
 
 define Build/InstallDev
@@ -77,7 +74,7 @@ define Build/InstallDev
 endef
        
 define Build/UninstallDev
-       rm -rf $(STAGING_DIR)/usr/lib/libuClibc++.{a,so*}
+       rm -rf $(STAGING_DIR)/lib/libuClibc++*.{a,so*}
 endef
 
 $(eval $(call BuildPackage,uclibcxx))