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.

89 lines
2.5 KiB

  1. #
  2. # Copyright (C) 2012-2014 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:=libimobiledevice
  9. PKG_SOURCE_DATE:=2020-02-19
  10. PKG_SOURCE_VERSION:=3d8d13f0a70cefc1b12571b7f6aa2d1d4c58cffb
  11. PKG_RELEASE:=1
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/libimobiledevice/libimobiledevice
  14. PKG_MIRROR_HASH:=4239f90c68ecd250a900b5256eafc364c658dcb8cc7767c58bd59b6d6b249d4e
  15. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  16. PKG_LICENSE:=LGPL-2.1-or-later
  17. PKG_LICENSE_FILES:=COPYING.LESSER
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/libimobiledevice/Default
  23. TITLE:=A library that talks to Apple devices.
  24. URL:=https://www.libimobiledevice.org/
  25. SUBMENU:=libimobiledevice
  26. endef
  27. define Package/libimobiledevice/Default/description
  28. libimobiledevice is a software library that talks the protocols to support
  29. iPhone®, iPod Touch®, iPad® and Apple TV® devices.
  30. endef
  31. define Package/libimobiledevice
  32. $(call Package/libimobiledevice/Default)
  33. SECTION:=libs
  34. CATEGORY:=Libraries
  35. DEPENDS:=+libplist +libusbmuxd +libopenssl
  36. LICENSE:=LGPL-2.1-or-later
  37. LICENSE_FILES:=COPYING.LESSER
  38. endef
  39. define Package/libimobiledevice/description
  40. $(call Package/libimobiledevice/Default/description)
  41. endef
  42. define Package/libimobiledevice-utils
  43. $(call Package/libimobiledevice/Default)
  44. SECTION:=utils
  45. CATEGORY:=Utilities
  46. DEPENDS:=+libimobiledevice
  47. LICENSE:=GPL-2.0-or-later
  48. ICENSE_FILES:=COPYING
  49. endef
  50. define Package/libimobiledevice-utils/description
  51. $(call Package/libimobiledevice/Default/description)
  52. This package contains the libimobiledevice utilities.
  53. endef
  54. CONFIGURE_ARGS += --without-cython
  55. define Build/InstallDev
  56. $(INSTALL_DIR) $(1)/usr/include
  57. $(CP) $(PKG_INSTALL_DIR)/usr/include/libimobiledevice $(1)/usr/include/
  58. $(INSTALL_DIR) $(1)/usr/lib
  59. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libimobiledevice.{a,la,so*} $(1)/usr/lib/
  60. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libimobiledevice-*.pc $(1)/usr/lib/pkgconfig/
  62. endef
  63. define Package/libimobiledevice/install
  64. $(INSTALL_DIR) $(1)/usr/lib
  65. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libimobiledevice.so.* $(1)/usr/lib/
  66. endef
  67. define Package/libimobiledevice-utils/install
  68. $(INSTALL_DIR) $(1)/usr/bin
  69. $(CP) $(PKG_INSTALL_DIR)/usr/bin/idevice* $(1)/usr/bin/
  70. endef
  71. $(eval $(call BuildPackage,libimobiledevice))
  72. $(eval $(call BuildPackage,libimobiledevice-utils))