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.

96 lines
2.7 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.2.1
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=Lukasz Baj <l.baj@radytek.com>
  12. PKG_LICENSE:=LGPL-2.1+
  13. PKG_LICENSE_FILES:=COPYING.LESSER
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_URL:=https://github.com/libimobiledevice/libimobiledevice.git
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_VERSION:=13bf235cac2201747de11652cf14fe2714ca0718
  18. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/nls.mk
  23. $(call include_mk, python-package.mk)
  24. define Package/libimobiledevice/Default
  25. TITLE:=A library that talks to Apple devices.
  26. URL:=http://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 += \
  52. libusbmuxd_CFLAGS="-I$(STAGING_DIR)/usr/include" \
  53. libusbmuxd_LIBS="-L$(STAGING_DIR)/usr/lib -lusbmuxd" \
  54. openssl_CFLAGS=" " \
  55. openssl_LIBS="-L$(STAGING_DIR)/usr/lib -lssl -lcrypto"
  56. CONFIGURE_ARGS += \
  57. --without-cython \
  58. --disable-largefile
  59. TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
  60. define Build/InstallDev
  61. $(INSTALL_DIR) $(1)/usr/include
  62. $(CP) $(PKG_INSTALL_DIR)/usr/include/libimobiledevice $(1)/usr/include/
  63. $(INSTALL_DIR) $(1)/usr/lib
  64. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libimobiledevice.{a,la,so*} $(1)/usr/lib/
  65. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  66. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libimobiledevice-*.pc $(1)/usr/lib/pkgconfig/
  67. endef
  68. define Package/libimobiledevice/install
  69. $(INSTALL_DIR) $(1)/usr/lib
  70. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libimobiledevice.so.* $(1)/usr/lib/
  71. endef
  72. define Package/libimobiledevice-utils/install
  73. $(INSTALL_DIR) $(1)/usr/bin
  74. $(CP) $(PKG_INSTALL_DIR)/usr/bin/idevice* $(1)/usr/bin/
  75. endef
  76. $(eval $(call BuildPackage,libimobiledevice))
  77. $(eval $(call BuildPackage,libimobiledevice-utils))