unrar: add libunrar support
Closes https://github.com/openwrt/packages/pull/1882 Signed-off-by: Nikolay Podoprigora volzhanin@gmail.com Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
parent
7c05f9b4de
commit
6cb3979f21
1 changed files with 34 additions and 9 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=unrar
|
PKG_NAME:=unrar
|
||||||
PKG_VERSION:=5.3.5
|
PKG_VERSION:=5.3.5
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=unrarsrc-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=unrarsrc-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://www.rarlab.com/rar
|
PKG_SOURCE_URL:=http://www.rarlab.com/rar
|
||||||
|
@ -25,21 +25,40 @@ PKG_INSTALL:=1
|
||||||
include $(INCLUDE_DIR)/uclibc++.mk
|
include $(INCLUDE_DIR)/uclibc++.mk
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/unrar
|
define Package/unrar/Default
|
||||||
SECTION:=utils
|
TITLE:=UnRAR
|
||||||
CATEGORY:=Utilities
|
|
||||||
SUBMENU:=Compression
|
SUBMENU:=Compression
|
||||||
TITLE:=UnRAR application
|
|
||||||
URL:=http://www.rarlab.com/
|
URL:=http://www.rarlab.com/
|
||||||
DEPENDS:=$(CXX_DEPENDS) +libpthread
|
DEPENDS:=$(CXX_DEPENDS) +libpthread
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/unrar
|
||||||
|
$(call Package/unrar/Default)
|
||||||
|
SECTION:=utils
|
||||||
|
CATEGORY:=Utilities
|
||||||
|
TITLE+= (application)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libunrar
|
||||||
|
$(call Package/unrar/Default)
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
TITLE+= (library)
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/unrar/description
|
define Package/unrar/description
|
||||||
UnRAR is an application that can decompress files and archives created using
|
UnRAR is an application that can decompress files and archives created using
|
||||||
the RAR compression scheme
|
the RAR compression scheme
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
define Package/libunrar/description
|
||||||
|
UnRAR library is a shared library that provides file extraction from RAR
|
||||||
|
archives
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Compile
|
||||||
|
$(call Build/Compile/Default,unrar)
|
||||||
|
$(call Build/Compile/Default,lib)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/unrar/install
|
define Package/unrar/install
|
||||||
|
@ -47,4 +66,10 @@ define Package/unrar/install
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/unrar $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/unrar $(1)/usr/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/libunrar/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/libunrar.so $(1)/usr/lib/
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,unrar))
|
$(eval $(call BuildPackage,unrar))
|
||||||
|
$(eval $(call BuildPackage,libunrar))
|
||||||
|
|
Loading…
Reference in a new issue