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.

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