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_VERSION:=2.0.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://www.libimobiledevice.org/downloads
  13. PKG_HASH:=cc6a808553da4efa9fa5638be256d5ae020498795d9d260d280b87074e799b20
  14. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  15. PKG_CPE_ID:=cpe:/a:libimobiledevice:libusbmuxd
  16. PKG_INSTALL:=1
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libusbmuxd/Default
  20. TITLE:=USB multiplexing daemon
  21. URL:=https://www.libimobiledevice.org/
  22. SUBMENU:=libimobiledevice
  23. endef
  24. define Package/libusbmuxd/Default/description
  25. This daemon is in charge of multiplexing connections over USB to an iPhone or
  26. iPod touch. To users, it means you can sync your music, contacts, photos, etc.
  27. over USB. To developers, it means you can connect to any listening localhost
  28. socket on the device. usbmuxd is not used for tethering data transfer, which
  29. uses a dedicated USB interface as a virtual network device.
  30. endef
  31. define Package/libusbmuxd
  32. $(call Package/libusbmuxd/Default)
  33. SECTION:=libs
  34. CATEGORY:=Libraries
  35. TITLE+= library
  36. DEPENDS:=+libplist +libpthread +libxml2 +zlib
  37. PKG_LICENSE:=LGPL-2.1-or-later
  38. PKG_LICENSE_FILES:=COPYING
  39. endef
  40. define Package/libusbmuxd/description
  41. $(call Package/libusbmuxd/Default/description)
  42. This package contains the libusbmuxd shared library.
  43. endef
  44. define Package/libusbmuxd-utils
  45. $(call Package/libusbmuxd/Default)
  46. SECTION:=utils
  47. CATEGORY:=Utilities
  48. TITLE+= utilies
  49. DEPENDS:=+libusbmuxd
  50. LICENSE:=GPL-2.0-or-later
  51. endef
  52. define Package/libusbmuxd-utils/description
  53. $(call Package/libusbmuxd/Default/description)
  54. This package contains the libusbmuxd utilities.
  55. endef
  56. CONFIGURE_ARGS += \
  57. --disable-static
  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-2.0.so* $(1)/usr/lib/
  63. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  64. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libusbmuxd-2.0.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-2.0.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))