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.

86 lines
2.4 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:=2019-11-29
  10. PKG_SOURCE_VERSION:=9f79242a441ce37c28db2b84d49621d26418dc53
  11. PKG_RELEASE:=1
  12. PKG_MAINTAINER:=
  13. PKG_LICENSE:=LGPL-2.1-or-later
  14. PKG_LICENSE_FILES:=COPYING.LESSER
  15. PKG_SOURCE_PROTO:=git
  16. PKG_SOURCE_URL:=https://github.com/libimobiledevice/libimobiledevice
  17. PKG_MIRROR_HASH:=709a3f8632930be272020a2ff5109aab5a6dddda39580d60e4f5eacace857e08
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/nls.mk
  23. define Package/libimobiledevice/Default
  24. TITLE:=A library that talks to Apple devices.
  25. URL:=https://www.libimobiledevice.org/
  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:=$(ICONV_DEPENDS) +libplist +libusbmuxd +libopenssl
  36. endef
  37. define Package/libimobiledevice/description
  38. $(call Package/libimobiledevice/Default/description)
  39. endef
  40. define Package/libimobiledevice-utils
  41. $(call Package/libimobiledevice/Default)
  42. SECTION:=utils
  43. CATEGORY:=Utilities
  44. DEPENDS:=+libimobiledevice
  45. endef
  46. define Package/libimobiledevice-utils/description
  47. $(call Package/libimobiledevice/Default/description)
  48. This package contains the libimobiledevice utilities.
  49. endef
  50. CONFIGURE_VARS += ac_cv_sys_file_offset_bits=64
  51. CONFIGURE_ARGS += --without-cython
  52. define Build/InstallDev
  53. $(INSTALL_DIR) $(1)/usr/include
  54. $(CP) $(PKG_INSTALL_DIR)/usr/include/libimobiledevice $(1)/usr/include/
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libimobiledevice.{a,la,so*} $(1)/usr/lib/
  57. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  58. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libimobiledevice-*.pc $(1)/usr/lib/pkgconfig/
  59. endef
  60. define Package/libimobiledevice/install
  61. $(INSTALL_DIR) $(1)/usr/lib
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libimobiledevice.so.* $(1)/usr/lib/
  63. endef
  64. define Package/libimobiledevice-utils/install
  65. $(INSTALL_DIR) $(1)/usr/bin
  66. $(CP) $(PKG_INSTALL_DIR)/usr/bin/idevice* $(1)/usr/bin/
  67. endef
  68. $(eval $(call BuildPackage,libimobiledevice))
  69. $(eval $(call BuildPackage,libimobiledevice-utils))