source: packages/utils/unrar/Makefile @ 24908

Last change on this file since 24908 was 24908, checked in by swalker, 6 years ago

[packages] unrar: update to 4.0.4, link against uclibcxx, use PKG_INSTALL

File size: 1.1 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=unrar
11PKG_VERSION:=4.0.4
12PKG_RELEASE:=1
13
14PKG_SOURCE:=unrarsrc-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.rarlab.com/rar
16PKG_MD5SUM:=203bc1e43935124db9635262cfd00b3f
17
18PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/unrar
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/unrar
24  SECTION:=utils
25  CATEGORY:=Utilities
26  TITLE:=unrar application
27  URL:=http://www.rarlab.com/
28  DEPENDS:=+uclibcxx
29endef
30
31define Package/unrar/description
32   unrar is an application that can decompress files and archives created using
33   the RAR compression scheme
34endef
35
36define Build/Configure
37        $(call Build/Configure/Default, )
38        ln -s $(PKG_BUILD_DIR)/makefile.unix $(PKG_BUILD_DIR)/Makefile
39endef
40
41MAKE_FLAGS += \
42        CXX="$(STAGING_DIR)/host/bin/g++-uc"
43
44define Package/unrar/install
45        $(INSTALL_DIR) $(1)/usr/bin
46        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/unrar $(1)/usr/bin/
47endef
48
49$(eval $(call BuildPackage,unrar))
Note: See TracBrowser for help on using the repository browser.