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.

84 lines
2.2 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=libirecovery
  7. PKG_VERSION:=1.0.0
  8. PKG_RELEASE:=2
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  10. PKG_SOURCE_URL:=https://www.libimobiledevice.org/downloads
  11. PKG_HASH:=cda0aba10a5b6fc2e1d83946b009e3e64d0be36912a986e35ad6d34b504ad9b4
  12. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  13. PKG_LICENSE:=LGPL-2.1-or-later
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_INSTALL:=1
  16. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/libirecovery/Default
  19. URL:=https://github.com/libimobiledevice/libirecovery
  20. SUBMENU:=libimobiledevice
  21. endef
  22. define Package/libirecovery/Default/description
  23. libirecovery is a cross-platform library which implements communication
  24. to iBoot/iBSS found on Apple's iOS devices via USB.
  25. endef
  26. define Package/libirecovery
  27. $(call Package/libirecovery/Default)
  28. TITLE:=A library that talks to Apple iBoot/iBSS
  29. SECTION:=libs
  30. CATEGORY:=Libraries
  31. DEPENDS:=+libreadline +libusb-1.0
  32. endef
  33. define Package/libirecovery/description
  34. $(call Package/libirecovery/Default/description)
  35. endef
  36. define Package/irecovery
  37. $(call Package/libirecovery/Default)
  38. TITLE:=A utility that talks to Apple iBoot/iBSS
  39. SECTION:=utils
  40. CATEGORY:=Utilities
  41. DEPENDS:=+libirecovery
  42. endef
  43. define Package/irecovery/description
  44. $(call Package/libirecovery/Default/description)
  45. This package contains the libirecovery utilities.
  46. endef
  47. CONFIGURE_ARGS += \
  48. --disable-static \
  49. --without-udev
  50. define Build/InstallDev
  51. $(INSTALL_DIR) $(1)/usr/include
  52. $(CP) $(PKG_INSTALL_DIR)/usr/include/libirecovery.h $(1)/usr/include/
  53. $(INSTALL_DIR) $(1)/usr/lib
  54. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libirecovery-1.0.so* $(1)/usr/lib/
  55. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libirecovery-1.0.pc $(1)/usr/lib/pkgconfig/
  57. endef
  58. define Package/libirecovery/install
  59. $(INSTALL_DIR) $(1)/usr/lib
  60. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libirecovery-1.0.so.* $(1)/usr/lib/
  61. endef
  62. define Package/irecovery/install
  63. $(INSTALL_DIR) $(1)/usr/bin
  64. $(CP) $(PKG_INSTALL_DIR)/usr/bin/irecovery $(1)/usr/bin/
  65. endef
  66. $(eval $(call BuildPackage,libirecovery))
  67. $(eval $(call BuildPackage,irecovery))