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.

93 lines
2.6 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:=libusbmuxd
  9. PKG_SOURCE_VERSION:=2.0.1
  10. PKG_RELEASE:=2
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/libimobiledevice/libusbmuxd
  13. PKG_MIRROR_HASH:=5078125cd4fe8c7294d4f195a8adfd1fc302101daf5d53e4cc242c3097eef8b6
  14. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  15. PKG_CPE_ID:=cpe:/a:libimobiledevice:libusbmuxd
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libusbmuxd/Default
  21. TITLE:=USB multiplexing daemon
  22. URL:=https://www.libimobiledevice.org/
  23. SUBMENU:=libimobiledevice
  24. endef
  25. define Package/libusbmuxd/Default/description
  26. This daemon is in charge of multiplexing connections over USB to an iPhone or
  27. iPod touch. To users, it means you can sync your music, contacts, photos, etc.
  28. over USB. To developers, it means you can connect to any listening localhost
  29. socket on the device. usbmuxd is not used for tethering data transfer, which
  30. uses a dedicated USB interface as a virtual network device.
  31. endef
  32. define Package/libusbmuxd
  33. $(call Package/libusbmuxd/Default)
  34. SECTION:=libs
  35. CATEGORY:=Libraries
  36. TITLE+= library
  37. DEPENDS:=+libplist +libpthread +libxml2 +zlib
  38. PKG_LICENSE:=LGPL-2.1-or-later
  39. PKG_LICENSE_FILES:=COPYING
  40. endef
  41. define Package/libusbmuxd/description
  42. $(call Package/libusbmuxd/Default/description)
  43. This package contains the libusbmuxd shared library.
  44. endef
  45. define Package/libusbmuxd-utils
  46. $(call Package/libusbmuxd/Default)
  47. SECTION:=utils
  48. CATEGORY:=Utilities
  49. TITLE+= utilies
  50. DEPENDS:=+libusbmuxd
  51. LICENSE:=GPL-2.0-or-later
  52. endef
  53. define Package/libusbmuxd-utils/description
  54. $(call Package/libusbmuxd/Default/description)
  55. This package contains the libusbmuxd utilities.
  56. endef
  57. TARGET_CFLAGS += $(FPIC)
  58. define Build/InstallDev
  59. $(INSTALL_DIR) $(1)/usr/include
  60. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  61. $(INSTALL_DIR) $(1)/usr/lib
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbmuxd.so* $(1)/usr/lib/
  63. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  64. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libusbmuxd.pc $(1)/usr/lib/pkgconfig/
  65. endef
  66. define Package/libusbmuxd/install
  67. $(INSTALL_DIR) $(1)/usr/lib
  68. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbmuxd.so.* $(1)/usr/lib/
  69. endef
  70. define Package/libusbmuxd-utils/install
  71. $(INSTALL_DIR) $(1)/usr/bin
  72. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/iproxy $(1)/usr/bin/
  73. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/inetcat $(1)/usr/bin/
  74. endef
  75. $(eval $(call BuildPackage,libusbmuxd))
  76. $(eval $(call BuildPackage,libusbmuxd-utils))