You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=unrar
  9. PKG_VERSION:=5.3.6
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=unrarsrc-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.rarlab.com/rar
  13. PKG_MD5SUM:=3c58a7e9e6bdf34dee7db72f299b05e8
  14. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  15. PKG_LICENSE:=UnRAR
  16. PKG_LICENSE_FILES:=license.txt
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/unrar
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/uclibc++.mk
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/unrar/Default
  22. TITLE:=UnRAR
  23. SUBMENU:=Compression
  24. URL:=http://www.rarlab.com/
  25. DEPENDS:=$(CXX_DEPENDS) +libpthread
  26. endef
  27. define Package/unrar
  28. $(call Package/unrar/Default)
  29. SECTION:=utils
  30. CATEGORY:=Utilities
  31. TITLE+= (application)
  32. endef
  33. define Package/libunrar
  34. $(call Package/unrar/Default)
  35. SECTION:=libs
  36. CATEGORY:=Libraries
  37. TITLE+= (library)
  38. endef
  39. define Package/unrar/description
  40. UnRAR is an application that can decompress files and archives created using
  41. the RAR compression scheme
  42. endef
  43. define Package/libunrar/description
  44. UnRAR library is a shared library that provides file extraction from RAR
  45. archives
  46. endef
  47. define Build/Compile
  48. $(call Build/Compile/Default,unrar)
  49. $(call Build/Compile/Default,lib)
  50. endef
  51. define Package/unrar/install
  52. $(INSTALL_DIR) $(1)/usr/bin
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/unrar $(1)/usr/bin/
  54. endef
  55. define Package/libunrar/install
  56. $(INSTALL_DIR) $(1)/usr/lib
  57. $(CP) $(PKG_BUILD_DIR)/libunrar.so $(1)/usr/lib/
  58. endef
  59. $(eval $(call BuildPackage,unrar))
  60. $(eval $(call BuildPackage,libunrar))