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.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_VERSION:=1.3.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://www.libimobiledevice.org/downloads
  13. PKG_HASH:=53f2640c6365cd9f302a6248f531822dc94a6cced3f17128d4479a77bd75b0f6
  14. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  15. PKG_LICENSE:=LGPL-2.1-or-later
  16. PKG_LICENSE_FILES:=COPYING.LESSER
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libimobiledevice/Default
  21. TITLE:=A library that talks to Apple devices.
  22. URL:=https://www.libimobiledevice.org/
  23. SUBMENU:=libimobiledevice
  24. endef
  25. define Package/libimobiledevice/Default/description
  26. libimobiledevice is a software library that talks the protocols to support
  27. iPhone®, iPod Touch®, iPad® and Apple TV® devices.
  28. endef
  29. define Package/libimobiledevice
  30. $(call Package/libimobiledevice/Default)
  31. SECTION:=libs
  32. CATEGORY:=Libraries
  33. DEPENDS:=+libplist +libusbmuxd +libopenssl
  34. LICENSE:=LGPL-2.1-or-later
  35. LICENSE_FILES:=COPYING.LESSER
  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. LICENSE:=GPL-2.0-or-later
  46. ICENSE_FILES:=COPYING
  47. endef
  48. define Package/libimobiledevice-utils/description
  49. $(call Package/libimobiledevice/Default/description)
  50. This package contains the libimobiledevice utilities.
  51. endef
  52. CONFIGURE_ARGS += \
  53. --disable-static \
  54. --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-1.0.so* $(1)/usr/lib/
  60. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libimobiledevice-1.0.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-1.0.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))