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.

87 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:=2019-02-16
  10. PKG_SOURCE_VERSION:=0584aa90c93ff6ce46927b8d67887cb987ab9545
  11. PKG_RELEASE:=2
  12. PKG_MAINTAINER:=
  13. PKG_LICENSE:=LGPL-2.1-or-later
  14. PKG_LICENSE_FILES:=COPYING.LESSER
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz
  16. PKG_SOURCE_URL:=https://codeload.github.com/libimobiledevice/libimobiledevice/tar.gz/$(PKG_SOURCE_VERSION)?
  17. PKG_HASH:=286e294aad60ef04a39ce70512a0e816415167c982f3e6c2988d9a6b8c5ee29b
  18. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. PKG_BUILD_PARALLEL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. include $(INCLUDE_DIR)/nls.mk
  24. define Package/libimobiledevice/Default
  25. TITLE:=A library that talks to Apple devices.
  26. URL:=https://www.libimobiledevice.org/
  27. endef
  28. define Package/libimobiledevice/Default/description
  29. libimobiledevice is a software library that talks the protocols to support
  30. iPhone®, iPod Touch®, iPad® and Apple TV® devices.
  31. endef
  32. define Package/libimobiledevice
  33. $(call Package/libimobiledevice/Default)
  34. SECTION:=libs
  35. CATEGORY:=Libraries
  36. DEPENDS:=$(ICONV_DEPENDS) +libplist +libusbmuxd +libopenssl
  37. endef
  38. define Package/libimobiledevice/description
  39. $(call Package/libimobiledevice/Default/description)
  40. endef
  41. define Package/libimobiledevice-utils
  42. $(call Package/libimobiledevice/Default)
  43. SECTION:=utils
  44. CATEGORY:=Utilities
  45. DEPENDS:=+libimobiledevice
  46. endef
  47. define Package/libimobiledevice-utils/description
  48. $(call Package/libimobiledevice/Default/description)
  49. This package contains the libimobiledevice utilities.
  50. endef
  51. CONFIGURE_VARS += ac_cv_sys_file_offset_bits=64
  52. CONFIGURE_ARGS += --without-cython
  53. define Build/InstallDev
  54. $(INSTALL_DIR) $(1)/usr/include
  55. $(CP) $(PKG_INSTALL_DIR)/usr/include/libimobiledevice $(1)/usr/include/
  56. $(INSTALL_DIR) $(1)/usr/lib
  57. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libimobiledevice.{a,la,so*} $(1)/usr/lib/
  58. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  59. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libimobiledevice-*.pc $(1)/usr/lib/pkgconfig/
  60. endef
  61. define Package/libimobiledevice/install
  62. $(INSTALL_DIR) $(1)/usr/lib
  63. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libimobiledevice.so.* $(1)/usr/lib/
  64. endef
  65. define Package/libimobiledevice-utils/install
  66. $(INSTALL_DIR) $(1)/usr/bin
  67. $(CP) $(PKG_INSTALL_DIR)/usr/bin/idevice* $(1)/usr/bin/
  68. endef
  69. $(eval $(call BuildPackage,libimobiledevice))
  70. $(eval $(call BuildPackage,libimobiledevice-utils))