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.3 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:=1
  9. PKG_SOURCE_PROTO:=git
  10. PKG_SOURCE_URL:=https://github.com/libimobiledevice/libirecovery
  11. PKG_SOURCE_VERSION:=db36196d8d9db5a1f92e6934cf931cd00a6ead2d
  12. PKG_MIRROR_HASH:=eff43fbb0140ba653b514ef5c0a6ecc715dd05d8a61d405775573ae5f78995d7
  13. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  14. PKG_LICENSE:=LGPL-2.1-or-later
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libirecovery/Default
  21. URL:=https://github.com/libimobiledevice/libirecovery
  22. SUBMENU:=libimobiledevice
  23. endef
  24. define Package/libirecovery/Default/description
  25. libirecovery is a cross-platform library which implements communication
  26. to iBoot/iBSS found on Apple's iOS devices via USB.
  27. endef
  28. define Package/libirecovery
  29. $(call Package/libirecovery/Default)
  30. TITLE:=A library that talks to Apple iBoot/iBSS
  31. SECTION:=libs
  32. CATEGORY:=Libraries
  33. DEPENDS:=+libreadline +libusb-1.0
  34. endef
  35. define Package/libirecovery/description
  36. $(call Package/libirecovery/Default/description)
  37. endef
  38. define Package/irecovery
  39. $(call Package/libirecovery/Default)
  40. TITLE:=A utility that talks to Apple iBoot/iBSS
  41. SECTION:=utils
  42. CATEGORY:=Utilities
  43. DEPENDS:=+libirecovery
  44. endef
  45. define Package/irecovery/description
  46. $(call Package/libirecovery/Default/description)
  47. This package contains the libirecovery utilities.
  48. endef
  49. CONFIGURE_ARGS += --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.{a,la,so*} $(1)/usr/lib/
  55. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libirecovery.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.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))