[packages] unrar: update to 4.0.4, link against uclibcxx, use PKG_INSTALL
[openwrt/svn-archive/archive.git] / utils / unrar / Makefile
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=unrar
11 PKG_VERSION:=4.0.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=unrarsrc-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.rarlab.com/rar
16 PKG_MD5SUM:=203bc1e43935124db9635262cfd00b3f
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/unrar
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/unrar
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=unrar application
27 URL:=http://www.rarlab.com/
28 DEPENDS:=+uclibcxx
29 endef
30
31 define Package/unrar/description
32 unrar is an application that can decompress files and archives created using
33 the RAR compression scheme
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default, )
38 ln -s $(PKG_BUILD_DIR)/makefile.unix $(PKG_BUILD_DIR)/Makefile
39 endef
40
41 MAKE_FLAGS += \
42 CXX="$(STAGING_DIR)/host/bin/g++-uc"
43
44 define Package/unrar/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/unrar $(1)/usr/bin/
47 endef
48
49 $(eval $(call BuildPackage,unrar))