[packages] unrar: update to 4.0.4, link against uclibcxx, use PKG_INSTALL
authorStephen Walker <stephendwalker@gmail.com>
Wed, 5 Jan 2011 11:28:33 +0000 (11:28 +0000)
committerStephen Walker <stephendwalker@gmail.com>
Wed, 5 Jan 2011 11:28:33 +0000 (11:28 +0000)
SVN-Revision: 24908

utils/unrar/Makefile

index 05be1c9e8b933f12a566f849f7f6fd999db19e5c..292a80c8700b376854c311723b567fdc3ac77db5 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2006-2009 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,14 +8,15 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=unrar
-PKG_VERSION:=3.8.5
+PKG_VERSION:=4.0.4
 PKG_RELEASE:=1
 
 PKG_SOURCE:=unrarsrc-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.rarlab.com/rar
-PKG_MD5SUM:=875688e6a144a3f75d2a6a0da3e43f8b
+PKG_MD5SUM:=203bc1e43935124db9635262cfd00b3f
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/unrar
+PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -24,11 +25,12 @@ define Package/unrar
   CATEGORY:=Utilities
   TITLE:=unrar application
   URL:=http://www.rarlab.com/
-  DEPENDS:=+libstdcpp
+  DEPENDS:=+uclibcxx
 endef
 
 define Package/unrar/description
-   unrar is an application that can decompress files and archives created using the RAR compression scheme
+   unrar is an application that can decompress files and archives created using
+   the RAR compression scheme
 endef
 
 define Build/Configure
@@ -36,9 +38,12 @@ define Build/Configure
        ln -s $(PKG_BUILD_DIR)/makefile.unix $(PKG_BUILD_DIR)/Makefile
 endef
 
+MAKE_FLAGS += \
+       CXX="$(STAGING_DIR)/host/bin/g++-uc"
+
 define Package/unrar/install
        $(INSTALL_DIR) $(1)/usr/bin
-       $(INSTALL_BIN) $(PKG_BUILD_DIR)/unrar $(1)/usr/bin/
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/unrar $(1)/usr/bin/
 endef
+
 $(eval $(call BuildPackage,unrar))