373b1fe5ad582949067852f4ce01bb9b16b7f9bb
[packages.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.7
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:=41b0a9bca945b4ae2608421afd8f606e
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/unrar
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/uclibc++.mk
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/unrar
25   SECTION:=utils
26   CATEGORY:=Utilities
27   SUBMENU:=compression
28   TITLE:=unrar application
29   URL:=http://www.rarlab.com/
30   DEPENDS:=$(CXX_DEPENDS)
31 endef
32
33 define Package/unrar/description
34    unrar is an application that can decompress files and archives created using
35    the RAR compression scheme
36 endef
37
38 define Build/Configure
39         $(call Build/Configure/Default, )
40         ln -s $(PKG_BUILD_DIR)/makefile.unix $(PKG_BUILD_DIR)/Makefile
41 endef
42
43 define Package/unrar/install
44         $(INSTALL_DIR) $(1)/usr/bin
45         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/unrar $(1)/usr/bin/
46 endef
47
48 $(eval $(call BuildPackage,unrar))